|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.opengrok.search.scope.ConfigurationComboModel
public class ConfigurationComboModel
Constructor Summary | |
---|---|
ConfigurationComboModel()
Creates a new instance of ConfigurationComboModel |
Method Summary | |
---|---|
void |
addListDataListener(javax.swing.event.ListDataListener l)
Adds a listener to the list that's notified each time a change to the data model occurs. |
java.lang.Object |
getElementAt(int index)
Returns the value at the specified index. |
java.lang.Object |
getSelectedItem()
Returns the selected item |
int |
getSize()
Returns the length of the list. |
void |
refresh()
|
void |
removeListDataListener(javax.swing.event.ListDataListener l)
Removes a listener from the list that's notified each time a change to the data model occurs. |
void |
setSelectedItem(java.lang.Object anItem)
Set the selected item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationComboModel()
Method Detail |
---|
public void refresh()
public void setSelectedItem(java.lang.Object anItem)
ListDataListener
s that the contents
have changed.
setSelectedItem
in interface javax.swing.ComboBoxModel
anItem
- the list object to select or null
to clear the selectionpublic java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
index
- the requested index
index
public void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener
in interface javax.swing.ListModel
l
- the ListDataListener
to be removedpublic void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener
in interface javax.swing.ListModel
l
- the ListDataListener
to be addedpublic int getSize()
getSize
in interface javax.swing.ListModel
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
null
if there is no selection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |