com.fruitioninc.jwc
Class DefaultListBoxModel
java.lang.Object
|
+--com.fruitioninc.jwc.AbstractModel
|
+--com.fruitioninc.jwc.AbstractListBoxModel
|
+--com.fruitioninc.jwc.DefaultListBoxModel
- All Implemented Interfaces:
- ListBoxModel, Model
- public class DefaultListBoxModel
- extends AbstractListBoxModel
A ListBoxModel that stores it's state in member variables.
Method Summary |
protected java.lang.Object[] |
_getElements()
Returns the elements in this list box. |
protected void |
_setElements(java.lang.Object[] elements)
Sets the elements in this list box. |
int[] |
getSelectedIndices()
Returns the indices of the elements are are selected. |
void |
setSelectedIndices(int[] indices)
Sets the indices of the elements are are selected. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultListBoxModel
public DefaultListBoxModel()
DefaultListBoxModel
public DefaultListBoxModel(boolean statefull)
DefaultListBoxModel
public DefaultListBoxModel(java.lang.Object[] elements)
DefaultListBoxModel
public DefaultListBoxModel(java.lang.Object[] elements,
boolean statefull)
getSelectedIndices
public int[] getSelectedIndices()
- Description copied from class:
AbstractListBoxModel
- Returns the indices of the elements are are selected.
- Specified by:
getSelectedIndices
in interface ListBoxModel
- Specified by:
getSelectedIndices
in class AbstractListBoxModel
setSelectedIndices
public void setSelectedIndices(int[] indices)
- Description copied from class:
AbstractListBoxModel
- Sets the indices of the elements are are selected.
- Specified by:
setSelectedIndices
in interface ListBoxModel
- Specified by:
setSelectedIndices
in class AbstractListBoxModel
_getElements
protected java.lang.Object[] _getElements()
- Description copied from class:
AbstractListBoxModel
- Returns the elements in this list box.
- Specified by:
_getElements
in class AbstractListBoxModel
_setElements
protected void _setElements(java.lang.Object[] elements)
- Description copied from class:
AbstractListBoxModel
- Sets the elements in this list box.
- Specified by:
_setElements
in class AbstractListBoxModel