public class DefaultSettingsAction extends AbstractSettingsAction
Modifier and Type | Class and Description |
---|---|
class |
DefaultSettingsAction.DefaultSettingsPanel
The panel for the defaults settings.
|
protected class |
DefaultSettingsAction.DefaultSettingsTreeRenderer
This internal class is responsible for nodes rendering.
|
protected static class |
DefaultSettingsAction.NodeRep |
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
emptyPanel |
protected javax.swing.tree.DefaultTreeModel |
model
The Settings tree model.
|
protected java.util.List<DefaultSettingsAction.NodeRep> |
nodesList |
protected DefaultSettingsAction.DefaultSettingsPanel |
panel
The Settings panel.
|
protected java.util.Map<java.lang.String,javax.swing.tree.DefaultMutableTreeNode> |
propMap
The Settings properties map.
|
protected DefaultSettingsAction.DefaultSettingsTreeRenderer |
renderer
The Settings tree renderer.
|
protected javax.swing.JSplitPane |
split
The Settings SplitPane.
|
protected javax.swing.JTree |
tree
The Settings tree.
|
app
Constructor and Description |
---|
DefaultSettingsAction(GUIApplication app,
java.lang.String name)
Constructor.
|
DefaultSettingsAction(GUIApplication app,
java.lang.String name,
javax.swing.Icon icon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
javax.swing.tree.DefaultMutableTreeNode |
addNode(java.lang.String parentName,
java.lang.String childName,
javax.swing.tree.DefaultMutableTreeNode childNode,
javax.swing.Icon icon)
Add a tree node to the settings component.
|
javax.swing.tree.DefaultMutableTreeNode |
addNode(java.lang.String parentName,
java.lang.String childName,
javax.swing.JComponent comp,
javax.swing.Icon icon)
Add a tree node with a component as user Object to the settings component.
|
javax.swing.tree.DefaultMutableTreeNode |
addNode(java.lang.String parentName,
java.lang.String childName,
MDISettingsNode node)
Add a tree node with a component as user Object to the settings component.
|
void |
collapseAll()
Collapse the settings tree.
|
void |
expandAll()
Expand the settings tree.
|
java.awt.Dimension |
getDimension()
Return the settings dimension.
|
javax.swing.JComponent |
getSettingsComponent()
Return the component associated with the settings.
|
void |
hideTreeRoot()
Specify that the tree root of the settings lust be hidden.
|
void |
initialize()
Initialize the settings menu, after all components have been added.
|
void |
setApplication(GUIApplication appli)
Set the application.
|
void |
setDimension(java.awt.Dimension dim)
Set the settings dimension.
|
void |
showSettings()
Show the Settings.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected javax.swing.JTree tree
protected javax.swing.tree.DefaultTreeModel model
protected javax.swing.JPanel emptyPanel
protected java.util.Map<java.lang.String,javax.swing.tree.DefaultMutableTreeNode> propMap
protected java.util.List<DefaultSettingsAction.NodeRep> nodesList
protected DefaultSettingsAction.DefaultSettingsTreeRenderer renderer
protected javax.swing.JSplitPane split
protected DefaultSettingsAction.DefaultSettingsPanel panel
public DefaultSettingsAction(GUIApplication app, java.lang.String name)
app
- the Applicationname
- the name of the settingspublic DefaultSettingsAction(GUIApplication app, java.lang.String name, javax.swing.Icon icon)
app
- the Applicationname
- the name of the settingsicon
- the iconpublic void hideTreeRoot()
public void setApplication(GUIApplication appli)
appli
- the applicationpublic void initialize()
public void expandAll()
public void collapseAll()
public javax.swing.JComponent getSettingsComponent()
public javax.swing.tree.DefaultMutableTreeNode addNode(java.lang.String parentName, java.lang.String childName, javax.swing.JComponent comp, javax.swing.Icon icon)
parentName
- the name of the parent of the nodechildName
- the name of the child node to addcomp
- the component associated with the child node. It will be added as the user object of a new child nodeicon
- the icon associaed with the node, or null if there is no iconpublic javax.swing.tree.DefaultMutableTreeNode addNode(java.lang.String parentName, java.lang.String childName, MDISettingsNode node)
parentName
- the name of the parent of the nodechildName
- the name of the child node to addnode
- the settings nodepublic javax.swing.tree.DefaultMutableTreeNode addNode(java.lang.String parentName, java.lang.String childName, javax.swing.tree.DefaultMutableTreeNode childNode, javax.swing.Icon icon)
parentName
- the name of the parent of the nodechildName
- the name of the child node to addchildNode
- the child nodeicon
- the icon associated with the node, or null if there is no iconpublic void setDimension(java.awt.Dimension dim)
dim
- the dimensionpublic java.awt.Dimension getDimension()
public void showSettings()
showSettings
in interface MDISettings
showSettings
in class AbstractSettingsAction
public void actionPerformed(java.awt.event.ActionEvent e)