|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.commands.remotefileselector.ifileservice.RenameCommand
public class RenameCommand
This class implements the rename command.
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
the resource key |
Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface |
---|
COMMAND_NAME_PREFIX |
Constructor Summary | |
---|---|
RenameCommand()
Default constructor |
|
RenameCommand(java.lang.String name)
Constructor that accepts a command name. |
|
RenameCommand(java.lang.String name,
java.lang.String actionClass)
Constructor that accepts a command name and an action class type. |
Method Summary | |
---|---|
void |
execute(java.lang.Object o)
Performs the rename operation on the model. |
java.util.HashMap |
getEventInfo()
Returns information about the command. |
java.lang.Object |
getEventSource()
Returns the event source item "path". |
RemoteFileServerModelInterface |
getModel()
Returns the model attribute. |
java.lang.String |
getNewName()
Returns the newName attribute value. |
java.lang.String |
getOldName()
Returns the oldName attribute value. |
java.lang.String |
getPath()
Returns the command's path attribute value. |
boolean |
isContentsChanged()
Tests whether the contents are changed. |
boolean |
isSupported(ActionSupportFilter actionFilter)
Returns a boolean indicating whether the command is supported for the area specified on the ActionSupportFilter argument. |
void |
setEventSource(java.lang.Object eventSource)
Allows setting of the event source. |
void |
setModel(RemoteFileServerModelInterface model)
Sets the model attribute. |
void |
setNewName(java.lang.String newName)
Sets the command's newName attribute. |
void |
setOldName(java.lang.String oldName)
Sets the command's oldName attribute. |
void |
setPath(java.lang.String path)
Sets the command's path attribute. |
Methods inherited from class com.sas.commands.BaseCommand |
---|
getLocale, getName, getNextCommandName, getText, isExecutable, isUndoable, setLocale, setName, setText, undo |
Methods inherited from class com.sas.entities.BaseEntity |
---|
clone, containsAttributeNamed, equals, equals, getAttribute, getAttribute, getAttributeCount, getAttributes, getEntityKey, getPropertyDescriptors, getStringAttribute, listAttributeNames, removeAllAttributes, removeAttribute, reset, sameEntity, setAttribute, setAttributes, setEntityKey, toString |
Methods inherited from interface com.sas.entities.BaseEntityValueInterface |
---|
getAttribute, setAttribute |
Methods inherited from interface com.sas.util.Command |
---|
clone |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public RenameCommand()
public RenameCommand(java.lang.String name)
name
- the command namepublic RenameCommand(java.lang.String name, java.lang.String actionClass)
name
- the command nameactionClass
- the action class typeMethod Detail |
---|
public void execute(java.lang.Object o) throws java.lang.IllegalArgumentException
execute
in interface com.sas.util.SimpleCommand
execute
in class BaseCommand
o
- the object where the command is executed.
java.lang.IllegalArgumentException
public boolean isContentsChanged()
isContentsChanged
in interface ContentsChangedInterface
public java.util.HashMap getEventInfo()
getEventInfo
in interface ContentsChangedInterface
public java.lang.Object getEventSource()
getEventSource
in interface ContentsChangedInterface
setEventSource(Object)
public void setEventSource(java.lang.Object eventSource)
eventSource
- the item to set as the event sourcegetEventSource()
public boolean isSupported(ActionSupportFilter actionFilter)
actionFilter
- The object that describes the current area.
public void setPath(java.lang.String path)
path
- the file system pathgetPath()
public java.lang.String getPath()
setPath(String)
public void setOldName(java.lang.String oldName)
oldName
- the previous namegetOldName()
public java.lang.String getOldName()
setOldName(String)
public void setNewName(java.lang.String newName)
newName
- the item's new namegetNewName()
public java.lang.String getNewName()
setNewName(String)
public void setModel(RemoteFileServerModelInterface model)
model
- the model objectgetModel()
public RemoteFileServerModelInterface getModel()
setModel(RemoteFileServerModelInterface)
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |