org.yasl.componentlist
Interface YASLComponentListModel

All Known Subinterfaces:
YASLMutableComponentListModel
All Known Implementing Classes:
YASLDefaultComponentListModel

public interface YASLComponentListModel

Version:
1.0
Author:
Jeff Chapman

Method Summary
 void addListDataListener(ListDataListener listener)
          Adds the passed ListDataListener from the list of ListDataListeners.
 JComponent[] getComponents()
          Returns an array of the components.
 JComponent getElementAt(int index)
          Returns the component located at position index in the component list.
 int getSize()
          Returns the number of elements in the list.
 void removeListDataListener(ListDataListener listener)
          Removes the passed ListDataListener from the list of ListDataListeners.
 

Method Detail

getElementAt

public JComponent getElementAt(int index)
Returns the component located at position index in the component list.

This method will throw an IndexOutOfBoundsException if the index is larger than the last index in the list, i.e. ComponentListModel.getSize() - 1.

Parameters:
index - int
Returns:
JComponent

getSize

public int getSize()
Returns the number of elements in the list.

Returns:
int

getComponents

public JComponent[] getComponents()
Returns an array of the components.

Returns:
JComponent[]

addListDataListener

public void addListDataListener(ListDataListener listener)
Adds the passed ListDataListener from the list of ListDataListeners.

Parameters:
listener - ListDataListener

removeListDataListener

public void removeListDataListener(ListDataListener listener)
Removes the passed ListDataListener from the list of ListDataListeners.

Parameters:
listener - ListDataListener