com.ontimize.dms.client.gui.conf
Class InternalConfigModel
java.lang.Object
com.ontimize.dms.client.gui.conf.InternalConfigModel
- All Implemented Interfaces:
- java.io.Serializable
public class InternalConfigModel
- extends java.lang.Object
- implements java.io.Serializable
Inmutable tree model. Saves information over tree nodes configuration.
Warning: Save a model for each component instance.
- Since:
- 23/06/2009, 24/06/2009 Creates the tree nodes., 01/03/2010 Starts without icons.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE_ROOT
public static final int TYPE_ROOT
- See Also:
- Constant Field Values
TYPE_PLAIN
public static final int TYPE_PLAIN
- See Also:
- Constant Field Values
TYPE_EMPTY
public static final int TYPE_EMPTY
- See Also:
- Constant Field Values
TAG_NODE_ROOT
protected static final java.lang.String TAG_NODE_ROOT
- See Also:
- Constant Field Values
ROOT_ICON
protected static final javax.swing.ImageIcon ROOT_ICON
root
protected InternalConfigNode root
context
protected java.util.Map context
InternalConfigModel
public InternalConfigModel()
InternalConfigModel
public InternalConfigModel(InternalConfigNode root)
getContext
public java.util.Map getContext()
isEmpty
public boolean isEmpty()
getLevel
public int getLevel()
calculateMaxLevel
protected int calculateMaxLevel(InternalConfigNode node)
getNode
public InternalConfigNode getNode(java.lang.String path)
create
public TreeNode[] create(TreeNode parent)
Creates and returns the childs for the given parent node.
- Parameters:
parent -
- Returns:
create
public TreeNode create(TreeNode parent,
java.util.Map data,
int type)
setContext
public void setContext(java.util.Map context)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object