jcreek.cke.command
Class SubModelCommand

java.lang.Object
  extended byjcreek.cke.command.CreekCommand
      extended byjcreek.cke.command.SubModelCommand
All Implemented Interfaces:
javax.swing.undo.UndoableEdit

public class SubModelCommand
extends CreekCommand


Field Summary
protected  SubModel activateSubModel
           
protected  SubModel activeSubModel
           
protected  Entity[] cd
           
protected  Entity ed
           
protected  TreeLayout talgd
           
protected  TreeLayout talgl
           
 
Fields inherited from class jcreek.cke.command.CreekCommand
canUndoRedo, document
 
Constructor Summary
SubModelCommand(CreekDocument doc, Entity ed, Entity[] cd)
           
 
Method Summary
 void activateEntity(SubModel sb)
           
 void activateRelation(SubModel sb)
           
 boolean addEdit(javax.swing.undo.UndoableEdit parm1)
           
protected  void createSubModel()
           
 void deActivate(SubModel sb)
           
 void die()
           
 java.lang.String getPresentationName()
           
 java.lang.String getRedoPresentationName()
           
 java.lang.String getUndoPresentationName()
           
 boolean isSignificant()
           
 boolean perform()
          Do the command for the first time.
 void redo()
           
 boolean replaceEdit(javax.swing.undo.UndoableEdit parm1)
           
 void undo()
           
 
Methods inherited from class jcreek.cke.command.CreekCommand
canRedo, canUndo, getDocument, replaced, setDocument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ed

protected Entity ed

cd

protected Entity[] cd

activateSubModel

protected SubModel activateSubModel

activeSubModel

protected SubModel activeSubModel

talgl

protected TreeLayout talgl

talgd

protected TreeLayout talgd
Constructor Detail

SubModelCommand

public SubModelCommand(CreekDocument doc,
                       Entity ed,
                       Entity[] cd)
Method Detail

getUndoPresentationName

public java.lang.String getUndoPresentationName()

perform

public boolean perform()
Description copied from class: CreekCommand
Do the command for the first time. The arguments are given in the constructor for the particular implementation of the command.

Specified by:
perform in class CreekCommand
Returns:
true if command executed, false if error

die

public void die()

isSignificant

public boolean isSignificant()

redo

public void redo()
          throws javax.swing.undo.CannotRedoException
Throws:
javax.swing.undo.CannotRedoException

undo

public void undo()
          throws javax.swing.undo.CannotUndoException
Throws:
javax.swing.undo.CannotUndoException

addEdit

public boolean addEdit(javax.swing.undo.UndoableEdit parm1)

getRedoPresentationName

public java.lang.String getRedoPresentationName()

replaceEdit

public boolean replaceEdit(javax.swing.undo.UndoableEdit parm1)

getPresentationName

public java.lang.String getPresentationName()

createSubModel

protected void createSubModel()

deActivate

public void deActivate(SubModel sb)

activateEntity

public void activateEntity(SubModel sb)

activateRelation

public void activateRelation(SubModel sb)


Created at IDI, NTNU by the Artificial Intelligence and Learning group