|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.commands.remotefileselector.FilterTypeCommand
public class FilterTypeCommand
This class provides the calls to the RemoteServerModel for changing the file type to filter views by.
| Field Summary | |
|---|---|
static java.lang.String |
RB_KEY
the resource key |
| Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface |
|---|
COMMAND_NAME_PREFIX |
| Constructor Summary | |
|---|---|
FilterTypeCommand()
Constructor |
|
FilterTypeCommand(java.lang.String name)
Constructor that accepts a command name |
|
FilterTypeCommand(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)
Filters the view based on the type of file selected. |
java.util.HashMap |
getEventInfo()
Returns information about the command. |
java.lang.Object |
getEventSource()
Returns the event source item "path". |
java.util.HashMap |
getFilterTypes()
Returns the attribute value containing the map of keys to file types. |
RemoteFileServerModelInterface |
getModel()
Returns the model attribute value. |
java.lang.String |
getPath()
Returns the currently viewed file path attribute. |
java.lang.String |
getSelectedKey()
Returns the currently selected key attribute. |
boolean |
isContentsChanged()
Tests whether the contents are changed. |
void |
setEventSource(java.lang.Object eventSource)
Allows setting of the event source. |
void |
setFilterTypes(java.util.HashMap filterTypes)
Sets the attribute containing the map of keys to file types. |
void |
setModel(RemoteFileServerModelInterface model)
Sets the model attribute value. |
void |
setPath(java.lang.String path)
Sets the currently viewed file path attribute. |
void |
setSelectedKey(java.lang.String selectedKey)
Sets the value of the currently selected file type key 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 FilterTypeCommand()
public FilterTypeCommand(java.lang.String name)
name - the command name
public FilterTypeCommand(java.lang.String name,
java.lang.String actionClass)
name - the command nameactionClass - the action class type| Method Detail |
|---|
public void execute(java.lang.Object o)
execute in interface com.sas.util.SimpleCommandexecute in class BaseCommando - the object where the command is executed.public void setSelectedKey(java.lang.String selectedKey)
selectedKey - the key into the fileTypes map.getSelectedKey()public java.lang.String getSelectedKey()
setSelectedKey(String)public void setPath(java.lang.String path)
path - the current file pathgetPath()public java.lang.String getPath()
setPath(String)public void setFilterTypes(java.util.HashMap filterTypes)
filterTypes - a map containing the keys and file typesgetFilterTypes()public java.util.HashMap getFilterTypes()
setFilterTypes(HashMap)public void setModel(RemoteFileServerModelInterface model)
model - the model used by the commandgetModel()public RemoteFileServerModelInterface getModel()
setModel(RemoteFileServerModelInterface)public boolean isContentsChanged()
isContentsChanged in interface ContentsChangedInterfacepublic java.util.HashMap getEventInfo()
getEventInfo in interface ContentsChangedInterfacepublic java.lang.Object getEventSource()
getEventSource in interface ContentsChangedInterfacesetEventSource(Object)public void setEventSource(java.lang.Object eventSource)
eventSource - the item to set as the event sourcegetEventSource()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||