com.iplanet.jato.view
Class SimpleTreeViewStateData
java.lang.Object
|
+--com.iplanet.jato.view.SimpleTreeViewStateData
- All Implemented Interfaces:
- java.io.Serializable, TreeViewStateData
- public class SimpleTreeViewStateData
- extends java.lang.Object
- implements TreeViewStateData
Bare minimum implementation of TreeViewStateData
. This object
simply stores a map of node IDs that are in the expanded state. Because
the storage of this information is so primitive, there is no provision for
user navigation that results in a different position in the application from
the one assumed by this state information.
- Version:
- JATO/1.2.2 $Id: SimpleTreeViewStateData.java,v 1.4 2002/03/16 03:26:41 todd Exp $
- See Also:
- Serialized Form
Method Summary |
boolean |
hasNodeData(java.lang.String nodeID)
/
public TreeViewStateData(BitSet bitmap, Map nodeIDMap)
{
super();
this.bitmap=bitmap;
this.nodeIDMap=nodeIDMap;
}
/** |
boolean |
isNodeExpanded(java.lang.String nodeID)
/
public int getBitLocation(String nodeID)
{
Integer result=nodeIDMap.get(nodeID);
if (result!=null)
return result.intValue();
else
return -1;
}
/** |
void |
setNodeExpanded(java.lang.String nodeID,
boolean value)
Sets the specified node to the specified expanded state |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleTreeViewStateData
public SimpleTreeViewStateData(java.util.Map nodeIDMap)
hasNodeData
public boolean hasNodeData(java.lang.String nodeID)
- /
public TreeViewStateData(BitSet bitmap, Map nodeIDMap)
{
super();
this.bitmap=bitmap;
this.nodeIDMap=nodeIDMap;
}
/**
isNodeExpanded
public boolean isNodeExpanded(java.lang.String nodeID)
- /
public int getBitLocation(String nodeID)
{
Integer result=nodeIDMap.get(nodeID);
if (result!=null)
return result.intValue();
else
return -1;
}
/**
- Specified by:
isNodeExpanded
in interface TreeViewStateData
setNodeExpanded
public void setNodeExpanded(java.lang.String nodeID,
boolean value)
- Description copied from interface:
TreeViewStateData
- Sets the specified node to the specified expanded state
- Specified by:
setNodeExpanded
in interface TreeViewStateData