|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.qswing.list.AbstractListModel
yu.ac.bg.etf.javaqx.qswing.DefaultComboBoxModel
Default ComboBox Model.
Field Summary | |
protected java.util.ArrayList |
items
|
protected java.lang.Object |
selectedItem
|
Fields inherited from class yu.ac.bg.etf.javaqx.qswing.list.AbstractListModel |
listenerList |
Constructor Summary | |
DefaultComboBoxModel()
Constructs new DefaultComboBoxModel object. |
|
DefaultComboBoxModel(java.util.ArrayList items)
Constructs new DefaultComboBoxModel object. |
|
DefaultComboBoxModel(java.lang.Object[] objects)
Constructs new DefaultComboBoxModel object. |
|
DefaultComboBoxModel(java.util.Vector vector)
Constructs new DefaultComboBoxModel object. |
Method Summary | |
void |
addElement(java.lang.Object object)
Adds specified object to the model. |
java.lang.Object |
getElementAt(int index)
Returns the element at the specified index. |
int |
getIndexOf(java.lang.Object object)
Returns the index of the specified element. |
java.lang.Object |
getSelectedItem()
Returns selected item. |
int |
getSize()
Returns the size of the list. |
void |
insertElementAt(java.lang.Object object,
int index)
Inserts specified object at the specified index. |
void |
removeAllElements()
Removes all elements. |
void |
removeElement(java.lang.Object object)
Removes specified object from the model. |
void |
removeElementAt(int index)
Removes object specified by index. |
void |
setSelectedItem(java.lang.Object item)
Selects item. |
Methods inherited from class yu.ac.bg.etf.javaqx.qswing.list.AbstractListModel |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface yu.ac.bg.etf.javaqx.qswing.list.ListModel |
addListDataListener, removeListDataListener |
Field Detail |
protected java.util.ArrayList items
protected java.lang.Object selectedItem
Constructor Detail |
public DefaultComboBoxModel(java.lang.Object[] objects)
objects
- the objectspublic DefaultComboBoxModel(java.util.Vector vector)
vector
- the vectorpublic DefaultComboBoxModel(java.util.ArrayList items)
items
- the itemspublic DefaultComboBoxModel()
Method Detail |
public int getIndexOf(java.lang.Object object)
object
- the element
public void removeAllElements()
public int getSize()
getSize
in interface ListModel
public java.lang.Object getElementAt(int index)
getElementAt
in interface ListModel
index
- the element index
public void addElement(java.lang.Object object)
addElement
in interface MutableComboBoxModel
object
- the object to be addedpublic void insertElementAt(java.lang.Object object, int index)
insertElementAt
in interface MutableComboBoxModel
object
- the object to insertindex
- the object indexpublic void removeElementAt(int index)
removeElementAt
in interface MutableComboBoxModel
index
- the object indexpublic void removeElement(java.lang.Object object)
removeElement
in interface MutableComboBoxModel
object
- the object to be removedpublic java.lang.Object getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public void setSelectedItem(java.lang.Object item)
setSelectedItem
in interface ComboBoxModel
item
- the item
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |