kiwi.ui.model
Interface LinearDataSource


public abstract interface LinearDataSource

This interface defines the behavior of a linear data source, such as a list.

Version:
1.1 (10/98)
Author:
Mark Lindner, PING Software Group

Method Summary
 Object getItemAt(int index)
          Get the item at the specified index in the list.
 Object[] getItems()
          Get all of the items from the data source.
 Object getValueForProperty(Object item, String property)
          Get the value of an arbitrary property for a given item.
 

Method Detail

getItems

public Object[] getItems()
Get all of the items from the data source.
Returns:
An array of objects.

getValueForProperty

public Object getValueForProperty(Object item,
                                  String property)
Get the value of an arbitrary property for a given item.
Parameters:
item - The item.
property - The name of the property.
Returns:
The value of the specified property, or null if there is no value for this property.

getItemAt

public Object getItemAt(int index)
                 throws IllegalArgumentException
Get the item at the specified index in the list.
Parameters:
index - The index (cardinality) of the item to retrieve.
Returns:
The desired object.