camera3d.action
Class VcObjectRenameAction

java.lang.Object
  extended bycamera3d.action.VcAction
      extended bycamera3d.action.VcObjectChangeAction
          extended bycamera3d.action.VcObjectRenameAction

public class VcObjectRenameAction
extends VcObjectChangeAction

Action that replaces a VcObject's name.

Version:
1.0
Author:
Fábio Roberto de Miranda

Field Summary
 
Fields inherited from class camera3d.action.VcAction
MULTIPLE_OBJECT_ACTION, SINGLE_OBJECT_ACTION
 
Constructor Summary
VcObjectRenameAction(VcObject vcObj, java.lang.String name)
          Creates the action given VcObject whose name will be changed and a String containing the new name.
 
Method Summary
 void doAction(ActionExecutor executor)
          Does the name change.
 java.lang.String getNewName()
          Returns new name of the VcObject.
 java.lang.String getOldName()
          Returns old name of the VcObject.
 VcObject getVcObject()
          Returns VcObject affected by this action.
 void undoAction(ActionExecutor executor)
          Undoes the name change.
 
Methods inherited from class camera3d.action.VcAction
debugln, getMultiplicityType, isUndoable, setMultiplicityType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcObjectRenameAction

public VcObjectRenameAction(VcObject vcObj,
                            java.lang.String name)
Creates the action given VcObject whose name will be changed and a String containing the new name.

Method Detail

getVcObject

public VcObject getVcObject()
Returns VcObject affected by this action.


getNewName

public java.lang.String getNewName()
Returns new name of the VcObject.


getOldName

public java.lang.String getOldName()
Returns old name of the VcObject.


doAction

public void doAction(ActionExecutor executor)
Does the name change.

Specified by:
doAction in class VcAction
Parameters:
executor - provides any auxiliary resource for performing the action.

undoAction

public void undoAction(ActionExecutor executor)
Undoes the name change.

Overrides:
undoAction in class VcAction
Parameters:
executor - provides any auxiliary resource for performing the action.


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.