y.view.hierarchy
Class GroupNodeRealizer.StateChangeListener

java.lang.Object
  extended by y.view.hierarchy.GroupNodeRealizer.StateChangeListener
All Implemented Interfaces:
EventListener, HierarchyListener
Enclosing class:
GroupNodeRealizer

public static class GroupNodeRealizer.StateChangeListener
extends Object
implements HierarchyListener

This static inner class can be used to automatically adjust the groupClosed property of GroupFeature instances. Add this HierarchyListener implementation to the respective HierarchyManager instances and changes of the group nodes' states will be automatically reflected by the groupClosed property. This implementation works together with all GroupFeature implementations (e.g. GroupNodeRealizer and GenericGroupNodeRealizer) implementations as well as proxy node realizer instances that contain an open (index 0) and a closed (index 1) variant at the same time.

See Also:
ProxyShapeNodeRealizer
 
Your browser does not support SVG content.

Constructor Summary
GroupNodeRealizer.StateChangeListener()
          Creates a new (unbound) instance of StateChangeListener.
 
Method Summary
 void hierarchyChange(HierarchyEvent e)
          adjusts the corresponding realizer (GroupFeature instance), if the group state of a node changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupNodeRealizer.StateChangeListener

public GroupNodeRealizer.StateChangeListener()
Creates a new (unbound) instance of StateChangeListener.

Method Detail

hierarchyChange

public void hierarchyChange(HierarchyEvent e)
adjusts the corresponding realizer (GroupFeature instance), if the group state of a node changes.

Specified by:
hierarchyChange in interface HierarchyListener
Parameters:
e - a hierarchy event

© Copyright 2000-2008,
yWorks GmbH.
All rights reserved.