|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.gui.TreeField<T>
public class TreeField<T>
A Field implemented with a JTree.
Copyright 2007 Partner Software, Inc.
| Constructor Summary | |
|---|---|
TreeField(javax.swing.tree.TreeModel model)
|
|
| Method Summary | |
|---|---|
void |
doAction()
Subclasses should override this to take action whenever an action should occur (generally when the user hits return in the field). |
javax.swing.JComponent |
getGUI()
Returns the GUI component for this field. |
javax.swing.JTree |
getJTree()
|
T |
getValue()
Returns the current value for this field. |
void |
managePreferences(java.lang.String path)
Manages the expanded/contracted and other user state in user preferences, using the given named path to distinguish this from other TreeFields. |
void |
refreshContents()
|
void |
setModel(javax.swing.tree.TreeModel newModel)
|
void |
setValue(T newItem)
Sets the current value for this field. |
void |
unmanagePreferences()
Unmanages the preference tracking of expanded/contracted and other user state. |
void |
valueChanged(T newValue)
Subclasses should override this to take action whenever the selection changes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TreeField(javax.swing.tree.TreeModel model)
| Method Detail |
|---|
public void setModel(javax.swing.tree.TreeModel newModel)
public T getValue()
GUIField
getValue in interface GUIField<T>public void setValue(T newItem)
GUIField
setValue in interface GUIField<T>public javax.swing.JTree getJTree()
public void refreshContents()
public javax.swing.JComponent getGUI()
GUIField
getGUI in interface GUIField<T>public void managePreferences(java.lang.String path)
path - preference node path for this particular TreeFieldpublic void unmanagePreferences()
Use this before modifying the tree or its expansion or selection programmatically.
public void valueChanged(T newValue)
valueChanged in interface GUIField<T>public void doAction()
doAction in interface GUIField<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||