public static class MDISettingsNode.Single extends java.lang.Object implements MDISettingsNode
MDISettingsNode.Multiple, MDISettingsNode.Single
Constructor and Description |
---|
Single(javax.swing.JComponent comp)
Constructor.
|
Single(javax.swing.JComponent comp,
javax.swing.Icon icon)
Constructor.
|
Single(javax.swing.JComponent comp,
java.lang.String label)
Constructor.
|
Single(javax.swing.JComponent comp,
java.lang.String label,
javax.swing.Icon icon)
Constructor.
|
Single(javax.swing.JComponent comp,
java.lang.String label,
java.lang.String desc)
Constructor.
|
Single(javax.swing.JComponent comp,
java.lang.String label,
java.lang.String desc,
javax.swing.Icon icon)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JComponent |
getComponent()
Return the component used in the node
|
java.lang.String |
getDescription()
Return the description to put in front of the component
|
javax.swing.Icon |
getIcon()
Return the icon to put on the tree node
|
java.lang.String |
getLabel()
Return the label to put on the tree node
|
void |
updateUI() |
public Single(javax.swing.JComponent comp)
comp
- the component used in the nodepublic Single(javax.swing.JComponent comp, java.lang.String label)
comp
- the component used in the nodelabel
- the label to put in front of the componentpublic Single(javax.swing.JComponent comp, java.lang.String label, java.lang.String desc)
comp
- the component used in the nodelabel
- the label to put on the tree nodedesc
- the description to put in front of the componentpublic Single(javax.swing.JComponent comp, javax.swing.Icon icon)
comp
- the component used in the nodeicon
- the icon to put on the tree nodepublic Single(javax.swing.JComponent comp, java.lang.String label, javax.swing.Icon icon)
comp
- the component used in the nodelabel
- the label to put in front of the componenticon
- the icon to put on the tree nodepublic Single(javax.swing.JComponent comp, java.lang.String label, java.lang.String desc, javax.swing.Icon icon)
comp
- the component used in the nodelabel
- the label to put on the tree nodedesc
- the description to put in front of the componenticon
- the icon to put on the tree nodepublic javax.swing.JComponent getComponent()
public void updateUI()
public java.lang.String getLabel()
getLabel
in interface MDISettingsNode
public java.lang.String getDescription()
public javax.swing.Icon getIcon()
getIcon
in interface MDISettingsNode