| Constructor and Description |
|---|
TreeField(javax.swing.tree.TreeModel model) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void setModel(javax.swing.tree.TreeModel newModel)
public T getValue()
GUIFieldpublic void setValue(T newItem)
GUIFieldpublic javax.swing.JTree getJTree()
public void refreshContents()
public javax.swing.JComponent getGUI()
GUIFieldpublic 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>