|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTree
com.threerings.config.swing.ConfigTree
public class ConfigTree
Displays a tree of configurations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTree |
|---|
JTree.DropLocation, JTree.DynamicUtilTreeNode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ConfigTree(ConfigGroup... groups)
Creates a new config tree to display the configurations in the specified groups. |
|
ConfigTree(ConfigGroup group,
boolean editable)
Creates a new config tree to display the configurations in the specified group. |
|
| Method Summary | |
|---|---|
void |
configAdded(ConfigEvent<ManagedConfig> event)
Called when a configuration has been added to the group. |
void |
configRemoved(ConfigEvent<ManagedConfig> event)
Called when a configuration has been removed from the group. |
void |
configUpdated(ConfigEvent<ManagedConfig> event)
Called when a configuration has been updated. |
Transferable |
createClipboardTransferable()
Creates a Transferable containing the selected node for the clipboard. |
void |
dispose()
Releases the resources held by this tree. |
ConfigTreeNode |
getSelectedNode()
Returns the selected node, or null for none. |
void |
selectedConfigChanged()
Notes that the selected node's configuration has changed. |
void |
setSelectedNode(String name)
Selects a node by name (if it exists). |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigTree(ConfigGroup... groups)
public ConfigTree(ConfigGroup group,
boolean editable)
editable - if true, the tree will allow editing the configurations.| Method Detail |
|---|
public void dispose()
public Transferable createClipboardTransferable()
Transferable containing the selected node for the clipboard.
public ConfigTreeNode getSelectedNode()
null for none.
public void setSelectedNode(String name)
public void selectedConfigChanged()
public void configAdded(ConfigEvent<ManagedConfig> event)
ConfigGroupListener
configAdded in interface ConfigGroupListener<ManagedConfig>public void configRemoved(ConfigEvent<ManagedConfig> event)
ConfigGroupListener
configRemoved in interface ConfigGroupListener<ManagedConfig>public void configUpdated(ConfigEvent<ManagedConfig> event)
ConfigUpdateListener
configUpdated in interface ConfigUpdateListener<ManagedConfig>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||