|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.fruitioninc.jwc.AbstractModel
|
+--com.fruitioninc.jwc.AbstractListBoxModel
Partial implementation of the ListBoxModel interface. Delegates the storage of state to its subclass via the Template Method Pattern.
| Constructor Summary | |
AbstractListBoxModel()
|
|
AbstractListBoxModel(boolean statefull)
|
|
AbstractListBoxModel(java.lang.Object[] elements)
|
|
AbstractListBoxModel(java.lang.Object[] elements,
boolean statefull)
|
|
| Method Summary | |
java.lang.Object |
_getElementAt(int index)
Returns the index'th element in this list box. |
protected abstract java.lang.Object[] |
_getElements()
Returns the elements in this list box. |
int |
_getSize()
Returns the number of elements in this list box. |
void |
_setElementAt(int index,
java.lang.Object value)
Sets the index'th element in this list box. |
protected abstract void |
_setElements(java.lang.Object[] elements)
Sets the elements in this list box. |
abstract int[] |
getSelectedIndices()
Returns the indices of the elements are are selected. |
abstract void |
setSelectedIndices(int[] indices)
Sets the indices of the elements are are selected. |
| Methods inherited from class com.fruitioninc.jwc.AbstractModel |
_getStatefull, _setStatefull |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.fruitioninc.jwc.Model |
_getStatefull, _setStatefull |
| Constructor Detail |
public AbstractListBoxModel()
public AbstractListBoxModel(boolean statefull)
public AbstractListBoxModel(java.lang.Object[] elements)
public AbstractListBoxModel(java.lang.Object[] elements,
boolean statefull)
| Method Detail |
public java.lang.Object _getElementAt(int index)
_getElementAt in interface ListBoxModel
public void _setElementAt(int index,
java.lang.Object value)
_setElementAt in interface ListBoxModelpublic int _getSize()
_getSize in interface ListBoxModelpublic abstract int[] getSelectedIndices()
getSelectedIndices in interface ListBoxModelpublic abstract void setSelectedIndices(int[] indices)
setSelectedIndices in interface ListBoxModelprotected abstract java.lang.Object[] _getElements()
protected abstract void _setElements(java.lang.Object[] elements)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||