|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Command com.ibm.etools.systems.application.visual.editor.commands.SetConnectionLayerRouterCommand
public class SetConnectionLayerRouterCommand
Command to set router in connection layer level.
Field Summary | |
---|---|
protected ConnectionLayer |
connectionLayer
|
static String |
copyright
|
protected ConnectionRouter |
newRouter
|
protected ConnectionRouter |
oldRouter
|
Constructor Summary | |
---|---|
SetConnectionLayerRouterCommand(ConnectionLayer connectionLayer,
ConnectionRouter newRouter,
String label)
|
Method Summary | |
---|---|
boolean |
canExecute()
|
boolean |
canUndo()
|
void |
execute()
executes the Command. |
ConnectionRouter |
getNewRouter()
Get old ruter |
ConnectionRouter |
getOldRouter()
Get old ruter |
protected boolean |
isDifferentRouter()
Return true if the new router is different with the existing router. |
void |
redo()
Re-executes the Command. |
void |
undo()
Undoes the changes performed during execute() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String copyright
protected ConnectionLayer connectionLayer
protected ConnectionRouter oldRouter
protected ConnectionRouter newRouter
Constructor Detail |
---|
public SetConnectionLayerRouterCommand(ConnectionLayer connectionLayer, ConnectionRouter newRouter, String label)
Method Detail |
---|
public void execute()
protected boolean isDifferentRouter()
public ConnectionRouter getOldRouter()
public ConnectionRouter getNewRouter()
public boolean canExecute()
true
if the command can be executedpublic boolean canUndo()
true
if the command can be undone. This method should only be
called after execute()
or redo()
has been called.public void undo()
execute()
. This method should only be
called after execute
has been called, and only when canUndo()
returns true
.
canUndo()
public void redo()
undo()
has been called.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |