com.cc.framework.ui.model
Interface OptionListDataModel

All Superinterfaces:
DataModel

public interface OptionListDataModel
extends DataModel

This interface specifies the methods which are necessary for the elements of an option list. An Option list is used within the select tag to display the available values.

Since:
1.0
Version:
$Revision: 1.8 $
Author:
Harald Schulz

Method Summary
 java.lang.Object getKey(int index)
          Returns the key for the specified index
 java.lang.String getTooltip(int index)
          Returns the tooltip for the specified index
 java.lang.Object getValue(int index)
          Returns the value for the specified index
 int size()
          Returns the number of items in the OptionList
 

Method Detail

getKey

public java.lang.Object getKey(int index)
Returns the key for the specified index

Parameters:
index - The index
Returns:
Object

getValue

public java.lang.Object getValue(int index)
Returns the value for the specified index

Parameters:
index - The index
Returns:
String

getTooltip

public java.lang.String getTooltip(int index)
Returns the tooltip for the specified index

Parameters:
index - The index
Returns:
String

size

public int size()
Returns the number of items in the OptionList

Returns:
The number of items


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.