|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.commands.dataselectors.RankingCommand
public class RankingCommand
This class handles the ranking of a data model in conjunction with the Ranking Selector.
The command processes actions, via the Action Provider Framework, as they are initiated by the visual in response to user input. Actions include show, process, commit, and cancel. Each action causes a corresponding method on this command to be invoked.
The show action creates an instance of RankingSelectorInterface
to provide to the visual
so that the Ranking Selector can be displayed to the user.
The commit action is invoked when the user leaves the selector visual by pressing the OK button. Depending on the selected options, rankings are applied to the data model.
The cancel action is invoked when the user leaves the selector visual by pressing the Cancel button. There is no specific processing by this command for the cancel action.
The process action keeps the user interface (UI) of the Ranking Selector up to date when the user interact with the UI.
Field Summary | |
---|---|
java.lang.String |
basedOn
|
int |
bottomN
|
java.lang.String |
bottomPercent
|
protected java.lang.String[] |
dataItem
|
java.lang.String |
of
|
protected java.lang.String |
rankProperties
|
protected java.lang.String |
remoteAction
|
protected java.lang.String |
remoteBasedOn
|
protected java.lang.String |
remoteBasedOnDesc
|
protected java.lang.String |
remoteButtonRowId
|
protected java.lang.String |
remoteDataItemId
|
protected java.lang.String |
remoteIncludeTies
|
protected java.lang.String |
remoteRankOrder
|
protected int |
remoteRankType
|
protected int |
remoteRankValue
|
protected java.lang.String |
remoteWhereClause
|
protected java.lang.String |
remoteWhereValue
|
java.lang.String |
show
|
int |
topN
|
java.lang.String |
topPercent
|
protected java.lang.String[] |
whereClause
|
Fields inherited from class com.sas.commands.dataselectors.BaseSelectorCommand |
---|
actionClass, CANCEL_MODE, COMMIT_MODE, complete, contentsChanged, eventInfo, eventSource, modal, mode, model, PROCESS_MODE, selector, selectorModel, SHOW_MODE |
Fields inherited from interface com.sas.commands.DynamicAttributeCommandInterface |
---|
COMMAND_NAME_PREFIX |
Constructor Summary | |
---|---|
RankingCommand()
Default Constructor. |
|
RankingCommand(java.lang.String name)
Constructor that accepts a command name. |
|
RankingCommand(java.lang.String name,
java.lang.String actionClass)
Constructor that accepts a command name and an action class type. |
Methods inherited from class com.sas.commands.dataselectors.BaseSelectorCommand |
---|
cancel, cancel, closeSelector, execute, getEventInfo, getEventSource, getMode, getModel, getSelector, getSelectorModel, isComplete, isContentsChanged, isModal, setComplete, setModal, setMode, setModel, 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 |
---|
protected java.lang.String[] dataItem
protected java.lang.String rankProperties
protected java.lang.String[] whereClause
protected java.lang.String remoteRankOrder
protected int remoteRankValue
protected int remoteRankType
protected java.lang.String remoteIncludeTies
protected java.lang.String remoteBasedOn
protected java.lang.String remoteBasedOnDesc
protected java.lang.String remoteAction
protected java.lang.String remoteDataItemId
protected java.lang.String remoteWhereClause
protected java.lang.String remoteButtonRowId
protected java.lang.String remoteWhereValue
public int topN
public int bottomN
public java.lang.String topPercent
public java.lang.String bottomPercent
public java.lang.String show
public java.lang.String basedOn
public java.lang.String of
Constructor Detail |
---|
public RankingCommand()
public RankingCommand(java.lang.String name)
name
- The command name.public RankingCommand(java.lang.String name, java.lang.String actionClass)
name
- The command name.actionClass
- The action class type.Method Detail |
---|
protected void show(java.lang.Object o)
show
in class BaseSelectorCommand
protected void commit(java.lang.Object o) throws java.io.IOException
commit
in class BaseSelectorCommand
java.io.IOException
protected void process(java.lang.Object o)
process
in class BaseSelectorCommand
public boolean isSupported(ActionSupportFilter actionFilter)
CommandSupportedInterface
Returns a boolean indicating whether the command is supported for the given area as specified by the current area information encapsulated in the ActionSupportFilter.
isSupported
in interface CommandSupportedInterface
actionFilter
- The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.
BaseAction.setReturnStatus(int)
public void setDataItem(java.lang.String[] dataItem)
public java.lang.String[] getDataItem()
public void setRankProperties(java.lang.String rankProperties)
public java.lang.String getRankProperties()
public void setWhereClause(java.lang.String[] whereClause)
public java.lang.String[] getWhereClause()
public void setRemoteRankOrder(java.lang.String remoteRankOrder)
public java.lang.String getRemoteRankOrder()
public void setRemoteRankValue(int value)
public int getRemoteRankValue()
public void setRemoteRankType(int value)
public int getRemoteRankType()
public void setRemoteIncludeTies(java.lang.String value)
public java.lang.String getRemoteIncludeTies()
public void setRemoteBasedOn(java.lang.String value)
public java.lang.String getRemoteBasedOn()
public void setRemoteBasedOnDesc(java.lang.String value)
public java.lang.String getRemoteBasedOnDesc()
public void setRemoteAction(java.lang.String value)
public java.lang.String getRemoteAction()
public void setRemoteDataItemId(java.lang.String value)
public java.lang.String getRemoteDataItemId()
public void setRemoteWhereClause(java.lang.String value)
public java.lang.String getRemoteWhereClause()
public void setRemoteButtonRowId(java.lang.String value)
public java.lang.String getRemoteButtonRowId()
public void setRemoteWhereValue(java.lang.String value)
public java.lang.String getRemoteWhereValue()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |