|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.threerings.swing.PrefsTreeNode
public class PrefsTreeNode
A node in a PrefsTree. Nodes are either internal nodes with null values
(representing Preferences nodes) or leaf nodes with non-null values (representing
properties set in the parent Preferences node).
| Field Summary |
|---|
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
EMPTY_ENUMERATION |
| Constructor Summary | |
|---|---|
PrefsTreeNode()
No-arg constructor for deserialization. |
|
PrefsTreeNode(Preferences prefs)
Creates a new preferences node from the supplied preferences. |
|
PrefsTreeNode(String name,
Object value)
Creates a new preferences node. |
|
| Method Summary | |
|---|---|
void |
addToPreferences(Preferences prefs)
Adds the contents of this node to the supplied preferences. |
void |
expandPaths(JTree tree)
Expands paths according to the _expanded field. |
String |
findNameForChild(String base)
Finds a unique name for a new child node derived from the supplied base. |
PrefsTreeNode |
getChild(String name)
Returns the child with the supplied name, if it exists. |
int |
getInsertionIndex(PrefsTreeNode child)
Returns the index at which the specified child should be inserted. |
Object |
getValue()
Returns a reference to the decoded value of this node. |
void |
readFields(Importer in)
Custom field read method. |
void |
removeFromPreferences(Preferences prefs)
Removes the contents of this node from the supplied preferences. |
void |
setExpanded(JTree tree,
Preferences prefs,
boolean expanded)
Sets whether or not this node is expanded in the tree. |
void |
writeFields(Exporter out)
Custom field write method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrefsTreeNode(Preferences prefs)
public PrefsTreeNode(String name,
Object value)
public PrefsTreeNode()
| Method Detail |
|---|
public Object getValue()
public PrefsTreeNode getChild(String name)
public void setExpanded(JTree tree,
Preferences prefs,
boolean expanded)
public String findNameForChild(String base)
public void addToPreferences(Preferences prefs)
public void removeFromPreferences(Preferences prefs)
public int getInsertionIndex(PrefsTreeNode child)
public void expandPaths(JTree tree)
_expanded field.
public void writeFields(Exporter out)
throws IOException
IOException
public void readFields(Importer in)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||