|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.commands.dataselectors.FilterAndRankSelectorCommand
public class FilterAndRankSelectorCommand
This class provides command support for the "Filter and Rank" Selector. Ideally, the command class will perform all the modifications to the Selector model. The selector should react to the ContentsChangedEvents fired off after the model changes.
| Field Summary | |
|---|---|
protected java.util.Map |
actionInfo
The action map |
static java.lang.String |
mode
|
static java.lang.String |
RB_KEY
RB key for internationalization |
protected TupleElementInterface |
tupleElement
Tuple Element for this command |
| Fields inherited from class com.sas.commands.dataselectors.BaseSelectorCommand |
|---|
actionClass, CANCEL_MODE, COMMIT_MODE, complete, contentsChanged, eventInfo, eventSource, modal, model, PROCESS_MODE, selector, selectorModel, SHOW_MODE |
| Fields inherited from interface com.sas.actionprovider.CommandStatusInterface |
|---|
DISABLED, ENABLED, IS_CURRENT_STATE_DISABLED, MODEL_MEMBER_DISABLED, MODEL_STATE_DISABLED, MODEL_TYPE_DISABLED |
| Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface |
|---|
COMMAND_NAME_PREFIX |
| Constructor Summary | |
|---|---|
FilterAndRankSelectorCommand()
The default constructor for this command. |
|
FilterAndRankSelectorCommand(java.lang.String name)
Constructor that accepts a command name. |
|
FilterAndRankSelectorCommand(java.lang.String name,
java.lang.String actionClass)
Constructor that accepts a command name and an action class type. |
|
| Method Summary | |
|---|---|
void |
cancel(java.lang.Object o)
The cancel method resets the model to its original state and hides or destroys the selector visual. |
protected void |
cleanUp()
|
protected void |
commit(java.lang.Object o)
The commit method alters the original model to reflect any changes made by the user and hides or destroys the selector visual. |
void |
execute(java.lang.Object o)
This method implements the execute method on the CommandInterface, which is not implemented by the abstract BaseCommand class. |
java.lang.String |
getAction()
Returns the current action of the selector command. |
java.lang.String |
getClearCol()
|
java.lang.String |
getClearRow()
|
int |
getCommandStatus(ActionSupportFilter filter)
Returns a int value indicating whether the command is enabled for the given area as specified by the current area information encapsulate in the ActionSupportFilter. |
java.lang.String |
getFilterCondition()
|
java.lang.String |
getFilterType()
|
java.lang.String |
getFilterValue()
|
protected static java.lang.String |
getID(java.lang.Object object)
|
java.lang.String |
getRankOption()
|
java.lang.String |
getRankOrder()
|
java.lang.String |
getRankType()
|
java.lang.String |
getRankValue()
|
TupleElementInterface |
getTupleElement()
Get the tupleElement set on the command. |
boolean |
isSupported(ActionSupportFilter actionFilter)
Returns TRUE if the command is supported given the contents of the support filter. |
protected boolean |
isSwing()
|
protected void |
process(java.lang.Object o)
Processes the request object to manipulate the model. |
void |
setAction(java.lang.String value)
Sets the current action of the selector command. |
void |
setClearCol(java.lang.String clearCol)
|
void |
setClearRow(java.lang.String clearRow)
|
void |
setFilterCondition(FilterOperatorEnum filterCondition)
|
void |
setFilterCondition(java.lang.String name)
|
void |
setFilterType(FilterTypeEnum filterType)
|
void |
setFilterType(java.lang.String typeText)
|
void |
setFilterValue(java.lang.String filterValue)
|
void |
setModel(java.lang.Object model)
Sets the data model being viewed or manipulated by the selector. |
void |
setRankOption(java.lang.String rankOption)
|
void |
setRankOrder(RankOrderEnum order)
|
void |
setRankOrder(java.lang.String text)
|
void |
setRankType(RankTypeEnum rankType)
|
void |
setRankType(java.lang.String text)
|
void |
setRankValue(java.lang.String rankValue)
|
void |
setTupleElement(TupleElementInterface tupleElement)
set the tupleElement set on the command |
protected void |
show(java.lang.Object o)
Creates the initial selector model from the stored data model and supplies it to the associated selector. |
| Methods inherited from class com.sas.commands.dataselectors.BaseSelectorCommand |
|---|
cancel, closeSelector, getEventInfo, getEventSource, getMode, getModel, getSelector, getSelectorModel, isComplete, isContentsChanged, isModal, setComplete, setModal, setMode, setSelector, setSelectorModel |
| 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
protected java.util.Map actionInfo
public static java.lang.String mode
protected TupleElementInterface tupleElement
| Constructor Detail |
|---|
public FilterAndRankSelectorCommand()
public FilterAndRankSelectorCommand(java.lang.String name)
name - the name of this command
public FilterAndRankSelectorCommand(java.lang.String name,
java.lang.String actionClass)
name - the name of this commandactionClass - the class name for the appropriate action| Method Detail |
|---|
protected void show(java.lang.Object o)
show in class BaseSelectorCommando - ignored in this implementationprotected void cleanUp()
protected boolean isSwing()
protected void process(java.lang.Object o)
process in class BaseSelectorCommando - ignored in this implementationpublic void cancel(java.lang.Object o)
cancel in class BaseSelectorCommando - ignored in this implementation
protected void commit(java.lang.Object o)
throws java.io.IOException
commit in class BaseSelectorCommando - ignored in this implementation
java.io.IOExceptionpublic java.lang.String getFilterCondition()
public void setFilterCondition(FilterOperatorEnum filterCondition)
public void setFilterCondition(java.lang.String name)
public void setAction(java.lang.String value)
value - the action being executedpublic java.lang.String getAction()
protected static java.lang.String getID(java.lang.Object object)
public int getCommandStatus(ActionSupportFilter filter)
getCommandStatus in interface CommandStatusInterfacefilter - The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.
BaseAction.setReturnStatus(int)public boolean isSupported(ActionSupportFilter actionFilter)
isSupported in interface CommandSupportedInterfaceactionFilter - The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.
BaseAction.setReturnStatus(int)public void execute(java.lang.Object o)
BaseSelectorCommand
execute in interface DataSelectorCommandInterfaceexecute in interface com.sas.util.SimpleCommandexecute in class BaseSelectorCommando - ignored by the default implementationpublic void setTupleElement(TupleElementInterface tupleElement)
tupleElement - set the element on the commandpublic TupleElementInterface getTupleElement()
public void setModel(java.lang.Object model)
BaseSelectorCommand
setModel in interface DataSelectorCommandInterfacesetModel in class BaseSelectorCommandmodel - the modelpublic java.lang.String getFilterType()
public void setFilterType(FilterTypeEnum filterType)
filterType - public void setFilterType(java.lang.String typeText)
public java.lang.String getFilterValue()
public void setFilterValue(java.lang.String filterValue)
filterValue - public java.lang.String getRankType()
public void setRankType(RankTypeEnum rankType)
rankOperator - public void setRankType(java.lang.String text)
public java.lang.String getRankOrder()
public void setRankOrder(RankOrderEnum order)
order - public void setRankOrder(java.lang.String text)
public java.lang.String getRankValue()
public void setRankValue(java.lang.String rankValue)
rankValue - public java.lang.String getRankOption()
public void setRankOption(java.lang.String rankOption)
rankOption - public java.lang.String getClearCol()
public void setClearCol(java.lang.String clearCol)
clearCol - public java.lang.String getClearRow()
public void setClearRow(java.lang.String clearRow)
clearRow -
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||