com.fg.ftreenodes
Class CommonSettings
java.lang.Object
com.fg.ftreenodes.CommonSettings
- All Implemented Interfaces:
- java.lang.Cloneable
- public class CommonSettings
- extends java.lang.Object
- implements java.lang.Cloneable
A CommonSettings instance is passed as a parameter
to some constructors of classes, descendant from the
FAbstractToggleNode).
This approach significantly simplifies property settings
and allows to share some property values among multiple
toggle-node instances.
- Version:
- 1.0
- Author:
- Felix Golubov
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommonSettings
public CommonSettings()
setAllowsChildren
public CommonSettings setAllowsChildren(boolean allowsChildren)
getAllowsChildren
public boolean getAllowsChildren()
setEditable
public void setEditable(boolean editable)
isEditable
public boolean isEditable()
setAllowsFlattening
public CommonSettings setAllowsFlattening(boolean flattening)
getAllowsFlattening
public boolean getAllowsFlattening()
setFolderBarDecorated
public CommonSettings setFolderBarDecorated(boolean decorated)
isFolderBarDecorated
public boolean isFolderBarDecorated()
setToggleRadio
public CommonSettings setToggleRadio(boolean toggleRadio)
isToggleRadio
public boolean isToggleRadio()
setToggleVisible
public CommonSettings setToggleVisible(boolean toggleVisible)
isToggleVisible
public boolean isToggleVisible()
setToggleEnabled
public CommonSettings setToggleEnabled(boolean toggleEnabled)
isToggleEnabled
public boolean isToggleEnabled()
setToggleSelected
public CommonSettings setToggleSelected(boolean toggleSelected)
isToggleSelected
public boolean isToggleSelected()
setRadioUnselectable
public CommonSettings setRadioUnselectable(boolean radioUnselectable)
isRadioUnselectable
public boolean isRadioUnselectable()
setNodeValidity
public CommonSettings setNodeValidity(boolean nodeValidity)
getNodeValidity
public boolean getNodeValidity()
setLabelImage
public CommonSettings setLabelImage(java.awt.Image labelImage)
getLabelImage
public java.awt.Image getLabelImage()
setLabelText
public CommonSettings setLabelText(java.lang.String labelText)
getLabelText
public java.lang.String getLabelText()
setFolderBackground
public CommonSettings setFolderBackground(java.awt.Color color)
getFolderBackground
public java.awt.Color getFolderBackground()
copy
public CommonSettings copy()