org.eclipse.nebula.widgets.nattable.tree.command
Class TreeExpandAllCommandHandler

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.tree.command.TreeExpandAllCommandHandler
All Implemented Interfaces:
ILayerCommandHandler<TreeExpandAllCommand>

public class TreeExpandAllCommandHandler
extends Object
implements ILayerCommandHandler<TreeExpandAllCommand>

Command handler for the TreeExpandAllCommand.

Will search over the whole tree structure in the associated TreeLayer to identify expandable nodes and expand them one after the other.

Author:
Dirk Fauth
See Also:
TreeLayer, TreeExpandAllCommand

Constructor Summary
TreeExpandAllCommandHandler(TreeLayer treeLayer)
           
 
Method Summary
 boolean doCommand(ILayer targetLayer, TreeExpandAllCommand command)
           
 Class<TreeExpandAllCommand> getCommandClass()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeExpandAllCommandHandler

public TreeExpandAllCommandHandler(TreeLayer treeLayer)
Parameters:
treeLayer - The TreeLayer to which this command handler should be connected.
Method Detail

doCommand

public boolean doCommand(ILayer targetLayer,
                         TreeExpandAllCommand command)
Specified by:
doCommand in interface ILayerCommandHandler<TreeExpandAllCommand>
Parameters:
targetLayer - the target layer
command - the command
Returns:
true if the command has been handled, false otherwise

getCommandClass

public Class<TreeExpandAllCommand> getCommandClass()
Specified by:
getCommandClass in interface ILayerCommandHandler<TreeExpandAllCommand>


Copyright © 2015. All rights reserved.