Class HierarchicalTreeCollapseAllCommandHandler
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.hierarchical.command.HierarchicalTreeCollapseAllCommandHandler
-
- All Implemented Interfaces:
ILayerCommandHandler<TreeCollapseAllCommand>
public class HierarchicalTreeCollapseAllCommandHandler extends Object implements ILayerCommandHandler<TreeCollapseAllCommand>
Command handler for the TreeCollapseAllCommand.Will search over the whole tree structure in the associated TreeLayer to identify collapsible nodes and collapse them one after the other.
- Since:
- 1.6
- See Also:
HierarchicalTreeLayer
,TreeCollapseAllCommand
-
-
Constructor Summary
Constructors Constructor Description HierarchicalTreeCollapseAllCommandHandler(HierarchicalTreeLayer treeLayer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
doCommand(ILayer targetLayer, TreeCollapseAllCommand command)
Class<TreeCollapseAllCommand>
getCommandClass()
-
-
-
Constructor Detail
-
HierarchicalTreeCollapseAllCommandHandler
public HierarchicalTreeCollapseAllCommandHandler(HierarchicalTreeLayer treeLayer)
- Parameters:
treeLayer
- The HierarchicalTreeLayer to which this command handler should be connected.
-
-
Method Detail
-
doCommand
public boolean doCommand(ILayer targetLayer, TreeCollapseAllCommand command)
- Specified by:
doCommand
in interfaceILayerCommandHandler<TreeCollapseAllCommand>
- Parameters:
targetLayer
- the target layercommand
- the command- Returns:
- true if the command has been handled, false otherwise
-
getCommandClass
public Class<TreeCollapseAllCommand> getCommandClass()
- Specified by:
getCommandClass
in interfaceILayerCommandHandler<TreeCollapseAllCommand>
-
-