com.klg.jclass.higrid
Class AutoTraverseCallbackAdapter
java.lang.Object
|
+--com.klg.jclass.higrid.AutoTraverseCallbackAdapter
- All Implemented Interfaces:
- AutoTraverseCallback
- public abstract class AutoTraverseCallbackAdapter
- extends Object
- implements AutoTraverseCallback
The adapter which receives AutoTraverseCallback
events.
The methods in this class are empty; this class is provided as a
convenience for easily creating listeners by extending this class
and overriding only the methods of interest.
- See Also:
AutoTraverseCallback
Method Summary |
byte |
getState(com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode)
Return the new state of this rowNode, after its creation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AutoTraverseCallbackAdapter
public AutoTraverseCallbackAdapter()
getState
public byte getState(com.klg.jclass.higrid.HiGrid grid,
com.klg.jclass.higrid.RowNode rowNode)
- Return the new state of this rowNode, after its creation.
Valid states are found in the NodeStatus class, and are
NodeStatus.FOLDER_CLOSED (don't expand the node)
NodeStatus.FOLDER_OPEN (expand the node to show its children)
NodeStatus.FOLDER_NONE (the node has no children).
- Specified by:
getState
in interface AutoTraverseCallback
- Parameters:
grid
- The current instance of HiGridrowNode
- The rowNode currently being created/traversed.
- Returns:
- The new rowNode state.
The adapter returns NodeStatus.FOLDER_CLOSED by default.