com.mindfusion.diagramming
Class FoldContainerCmd

java.lang.Object
  extended by com.mindfusion.diagramming.Command
      extended by com.mindfusion.diagramming.FoldContainerCmd

public class FoldContainerCmd
extends Command


Constructor Summary
FoldContainerCmd(ContainerNode container)
          Initializes a new instance of the ScrollTableCmd class.
 
Method Summary
 void execute(boolean undoEnabled)
          Carries out the command action.
 ContainerNode getContainer()
          Gets the table associated with the command.
 void redo()
          Redoes the command action.
 void undo()
          Undoes the command.
 
Methods inherited from class com.mindfusion.diagramming.Command
addSubCmd, adopt, getContext, getSubCommands, getTitle, isContainerOf, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FoldContainerCmd

public FoldContainerCmd(ContainerNode container)
Initializes a new instance of the ScrollTableCmd class.

Method Detail

execute

public void execute(boolean undoEnabled)
Carries out the command action.

Specified by:
execute in class Command
Parameters:
undoEnabled - true if the undo manager is enabled at this time, otherwise false.

undo

public void undo()
Undoes the command.

Overrides:
undo in class Command

redo

public void redo()
Redoes the command action.

Overrides:
redo in class Command

getContainer

public ContainerNode getContainer()
Gets the table associated with the command.