|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeStateChangeHandler
Interface that allows to adjust a group/folder node state before/after group open/close operation. This interface contains two methods that should be called before and after the actual open/close action, i.e.:
import y.view.NodeStateChangeHandler; Node groupNode = ...; NodeStateChangeHandler nsh = ...; //Actions to perform before closing the node nsh.preNodeStateChange(groupNode); HierarchyManager.getInstance(graph).closeGroup(groupNode); //or HierarchyManager.getInstance(graph).openFolder(groupNode); //Actions to perform before after the node nsh.postNodeStateChange(groupNode);
Method Summary | |
---|---|
void |
postNodeStateChange(Node groupNode)
Performs actions before after the node state. |
void |
preNodeStateChange(Node groupNode)
Performs actions before changing the node state. |
Method Detail |
---|
void preNodeStateChange(Node groupNode)
groupNode
- The group or folder node whose state is about to change.void postNodeStateChange(Node groupNode)
preNodeStateChange(y.base.Node)
has been called
to change state related properties of the groupNode and/or its edges, as well as to clean up state that may have been
stored by preNodeStateChange(y.base.Node)
.
groupNode
- The group or folder node whose state has just changed.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |