|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.commands.dataselectors.FormatSelectorCommand
public class FormatSelectorCommand
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 |
ERROR_MESSAGE
|
static java.lang.String |
FORMAT_SELECTED
|
static java.lang.String |
FORMAT_TYPE_CHANGED
|
static java.lang.String |
mode
|
static java.lang.String |
RB_KEY
RB key for internationalization |
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 | |
---|---|
FormatSelectorCommand()
The default constructor for this command. |
|
FormatSelectorCommand(java.lang.String name)
Constructor that accepts a command name. |
|
FormatSelectorCommand(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. |
java.lang.String |
getAction()
Returns the current action of the selector command. |
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. |
com.sas.iquery.metadata.business.DataItem |
getDataItem()
|
java.lang.String |
getDecimalWidth()
|
java.lang.String |
getFormat()
|
java.lang.String |
getFormatType()
|
protected static java.lang.String |
getID(java.lang.Object object)
|
java.lang.String |
getUserDefinedFormat()
|
java.lang.String |
getWidth()
|
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 |
setDataItem(com.sas.iquery.metadata.business.DataItem dataItem)
|
void |
setDecimalWidth(java.lang.String decimalWidth)
|
void |
setFormat(java.lang.String format)
|
void |
setFormatType(java.lang.String formatType)
|
void |
setUserDefinedFormat(java.lang.String userDefinedFormat)
|
void |
setWidth(java.lang.String width)
|
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, 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 |
---|
public static final java.lang.String RB_KEY
public static final java.lang.String ERROR_MESSAGE
public static final java.lang.String FORMAT_TYPE_CHANGED
public static final java.lang.String FORMAT_SELECTED
protected java.util.Map actionInfo
public static java.lang.String mode
Constructor Detail |
---|
public FormatSelectorCommand()
public FormatSelectorCommand(java.lang.String name)
name
- the name of this commandpublic FormatSelectorCommand(java.lang.String name, java.lang.String actionClass)
name
- the name of this commandactionClass
- the class name for the appropriate actionMethod Detail |
---|
protected void show(java.lang.Object o)
show
in class BaseSelectorCommand
o
- ignored in this implementationprotected void cleanUp()
protected boolean isSwing()
protected void process(java.lang.Object o)
process
in class BaseSelectorCommand
o
- ignored in this implementationpublic void cancel(java.lang.Object o)
cancel
in class BaseSelectorCommand
o
- ignored in this implementationprotected void commit(java.lang.Object o) throws java.io.IOException
commit
in class BaseSelectorCommand
o
- ignored in this implementation
java.io.IOException
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 CommandStatusInterface
filter
- The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.
BaseAction.setReturnStatus(int)
public boolean isSupported(ActionSupportFilter actionFilter)
isSupported
in interface CommandSupportedInterface
actionFilter
- The ActionSupportFilter that encapsulates all the necessary
information to describe the current area.
BaseAction.setReturnStatus(int)
public com.sas.iquery.metadata.business.DataItem getDataItem()
public void setDataItem(com.sas.iquery.metadata.business.DataItem dataItem)
dataItem
- The dataItem to set.public java.lang.String getFormatType()
public void setFormatType(java.lang.String formatType)
formatTypeChoice
- The formatTypeChoice to set.public java.lang.String getFormat()
public void setFormat(java.lang.String format)
formatSelected
- The formatSelected to set.public java.lang.String getDecimalWidth()
public void setDecimalWidth(java.lang.String decimalWidth)
decimalEntry
- The decimalEntry to set.public java.lang.String getWidth()
public void setWidth(java.lang.String width)
widthEntry
- The widthEntry to set.public java.lang.String getUserDefinedFormat()
public void setUserDefinedFormat(java.lang.String userDefinedFormat)
userDefinedFormat
- The userDefinedFormat to set.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |