|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractListModel
javax.swing.DefaultComboBoxModel
net.sf.jguiraffe.gui.platform.swing.builder.components.SwingListModel
class SwingListModel
A specialized list model used internally by list-like components.
This class is a hybrid: It is both a Swing list model and a form builder list model.
| Field Summary |
|---|
| Fields inherited from class javax.swing.AbstractListModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
SwingListModel(ListModel model)
|
|
| Method Summary | |
|---|---|
protected net.sf.jguiraffe.gui.platform.swing.builder.components.SwingListModel.Item |
createModelObject(java.lang.Object display,
java.lang.Object value)
Creates an item object from the passed in arguments. |
java.lang.Object |
getDisplayObject(int index)
Returns the display object with the given index. |
java.lang.Class |
getType()
Returns the data object of this list model. |
java.lang.Object |
getValueObject(int index)
Returns the value object with the given index. |
protected void |
initFromModel(ListModel model)
Fills this model with the data from the passed in original object. |
void |
insertItem(int index,
java.lang.Object display,
java.lang.Object value)
Inserts the given data at the specified index. |
protected net.sf.jguiraffe.gui.platform.swing.builder.components.SwingListModel.Item |
itemAt(int index)
Returns the item object at the specified index. |
int |
size()
Returns the number of entries in this model. |
| Methods inherited from class javax.swing.DefaultComboBoxModel |
|---|
addElement, getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItem |
| 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 SwingListModel(ListModel model)
| Method Detail |
|---|
public java.lang.Object getDisplayObject(int index)
index - the index (0 based)
public java.lang.Class getType()
public java.lang.Object getValueObject(int index)
index - the index (0 based)
public int size()
public void insertItem(int index,
java.lang.Object display,
java.lang.Object value)
index - the indexdisplay - the display objectvalue - the value objectprotected void initFromModel(ListModel model)
model - the original model
protected net.sf.jguiraffe.gui.platform.swing.builder.components.SwingListModel.Item createModelObject(java.lang.Object display,
java.lang.Object value)
display - the display objectvalue - the value object
protected net.sf.jguiraffe.gui.platform.swing.builder.components.SwingListModel.Item itemAt(int index)
index - the index
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||