|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.AbstractListModel | +--net.openai.ai.nn.gui.properties.ClassSelectorModel
Model for a Class-selector DropDown Displays the values of a list of SelectionEntries
Field Summary |
Fields inherited from class javax.swing.AbstractListModel |
listenerList |
Constructor Summary | |
ClassSelectorModel()
Creates a new instance of a ClassSelectorModel without entries |
|
ClassSelectorModel(java.util.Vector entries)
Creates a new instance of a ClassSelectorModel. |
Method Summary | |
java.lang.Object |
getElementAt(int row)
Returns the SelectionEntry at a specific row. |
java.lang.Object |
getSelectedItem()
Returns the name of the currently selected SelectEntry |
int |
getSize()
Returns the number of entries in the internal list. |
void |
setEntries(java.util.Vector entries)
Sets internal list of SelectionEntries |
void |
setSelectedItem(java.lang.Object obj)
Selects a specific DropDown-entry. |
Methods inherited from class javax.swing.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, removeListDataListener |
Constructor Detail |
public ClassSelectorModel()
public ClassSelectorModel(java.util.Vector entries)
entries
- Vector of SelectionEntries to be displayed in the DropDown-listMethod Detail |
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItem(java.lang.Object obj)
setSelectedItem
in interface javax.swing.ComboBoxModel
obj
- Name of the SelectEntry to be selected.public java.lang.Object getElementAt(int row)
getElementAt
in interface javax.swing.ListModel
row
-
public int getSize()
getSize
in interface javax.swing.ListModel
public void setEntries(java.util.Vector entries)
entries
- Vector of SelectionEntries to be used in the DropDown-box
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |