public class HierarchicalTreeCollapseAllCommandHandler extends Object implements ILayerCommandHandler<TreeCollapseAllCommand>
Will search over the whole tree structure in the associated TreeLayer to identify collapsible nodes and collapse them one after the other.
HierarchicalTreeLayer,
TreeCollapseAllCommand| Constructor and Description |
|---|
HierarchicalTreeCollapseAllCommandHandler(HierarchicalTreeLayer treeLayer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doCommand(ILayer targetLayer,
TreeCollapseAllCommand command) |
Class<TreeCollapseAllCommand> |
getCommandClass() |
public HierarchicalTreeCollapseAllCommandHandler(HierarchicalTreeLayer treeLayer)
treeLayer - The HierarchicalTreeLayer to which this command handler should
be connected.public boolean doCommand(ILayer targetLayer, TreeCollapseAllCommand command)
doCommand in interface ILayerCommandHandler<TreeCollapseAllCommand>targetLayer - the target layercommand - the commandpublic Class<TreeCollapseAllCommand> getCommandClass()
getCommandClass in interface ILayerCommandHandler<TreeCollapseAllCommand>Copyright © 2019. All rights reserved.