|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractListModel
org.openide.explorer.view.NodeListModel
Model for displaying the nodes in list and choice.
| Field Summary |
| Fields inherited from class javax.swing.AbstractListModel |
listenerList |
| Constructor Summary | |
NodeListModel()
Creates new NodeTreeModel |
|
NodeListModel(Node root)
Creates new NodeTreeModel |
|
| Method Summary | |
int |
getDepth()
Getter for depth. |
Object |
getElementAt(int i)
Child at given index. |
int |
getIndex(Object o)
Finds index of given object. |
Object |
getSelectedItem()
|
int |
getSize()
Number of elements in the model. |
void |
setDepth(int depth)
Depth of nodes to display. |
void |
setNode(Node root)
Changes the root of the model. |
void |
setSelectedItem(Object anObject)
Currently selected item. |
| 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 NodeListModel()
public NodeListModel(Node root)
root - the root of the model| Method Detail |
public void setNode(Node root)
root - the root of the modelpublic void setDepth(int depth)
depth - the depthpublic int getDepth()
public int getSize()
public Object getElementAt(int i)
getElementAt in interface ListModelpublic int getIndex(Object o)
o - object produced by this model
public void setSelectedItem(Object anObject)
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 | ||||||||||