|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
com.ccg.swing.LookupINIComboBoxModel
public class LookupINIComboBoxModel
A swing style "model wrapper" around the LookupINI class.
This object provides the standard swing style "model wrapper"
for the LookupINI class. This allows one to pass
LookupINI objects to JComboBox
style swing components (probably list style components as well).
This then allows the user to select from the sections available
in the associated LookupINI object.
This implementation also provides support for adding and removing sections (though the remove sections needs to be worked on a bit).
LookupINISectionEditor,
Serialized Form| Field Summary | |
|---|---|
(package private) Vector |
_SectionNames
|
(package private) int |
_SelectedIndex
|
(package private) String |
_SelectedObject
|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
LookupINIComboBoxModel(LookupINI ini)
Construct the object with an associated LookupINI object. |
|
| Method Summary | |
|---|---|
void |
addElement(Object o)
|
Object |
getElementAt(int i)
|
LookupINI |
getLookupINI()
Get the LookupINI object we are providing a model of |
Object |
getSelectedItem()
|
int |
getSize()
|
void |
insertElementAt(Object o,
int i)
|
void |
removeElement(Object o)
|
void |
removeElementAt(int i)
|
void |
removeRange(int i0,
int i1)
|
void |
setLookupINI(LookupINI ini)
Reload with the contents of a new LookupINI object. |
void |
setSelectedItem(Object o)
|
| 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 |
| Field Detail |
|---|
Vector _SectionNames
int _SelectedIndex
String _SelectedObject
| Constructor Detail |
|---|
public LookupINIComboBoxModel(LookupINI ini)
LookupINI object.
This method is used to construct the model with an associated
LookupINI object.
ini - The LookupINI object to associate with this
object - must NOT be null.JComboBox| Method Detail |
|---|
public LookupINI getLookupINI()
LookupINI object we are providing a model of
public void setLookupINI(LookupINI ini)
This method is used to load the model with an associated
LookupINI object.
ini - The LookupINI object to associate with this
object - must NOT be null.JComboBoxpublic Object getElementAt(int i)
getElementAt in interface ListModelpublic int getSize()
getSize in interface ListModelpublic void addElement(Object o)
addElement in interface MutableComboBoxModelpublic void removeElement(Object o)
removeElement in interface MutableComboBoxModel
public void removeRange(int i0,
int i1)
public void insertElementAt(Object o,
int i)
insertElementAt in interface MutableComboBoxModelpublic void removeElementAt(int i)
removeElementAt in interface MutableComboBoxModelpublic void setSelectedItem(Object o)
setSelectedItem in interface ComboBoxModelpublic Object getSelectedItem()
getSelectedItem in interface ComboBoxModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||