|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.commands.dataselectors.ExportSelectorCommand
public class ExportSelectorCommand
This class handles the data exporting operations in conjunction with the Export 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 ExportSelectorInterface
to provide to the visual
so that the Export 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 wanted output type (CSV, TSV, HTML etc.) an instance of the specific export command is retrieved through a command factory and then executed according to the user inputs.
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 is not used by this command.
Field Summary | |
---|---|
java.lang.String[] |
columns
The indexes of the columns to export. |
java.lang.String[] |
cssMediaList
The media attributes of the CSSs to be exported together with the data. |
java.lang.String[] |
cssMIMEType
The MIME types of the CSSs to be exported together with the data. |
java.lang.String[] |
cssTitle
The title attributes of the CSSs to be exported together with the data. |
java.lang.String[] |
cssURL
The URLs of the CSSs to be exported together with the data. |
java.lang.String[] |
footers
The footers to export below the data. |
java.lang.String |
formatted
If the data have to be exported formatted or non formatted. |
java.lang.String[] |
headers
The headers to export above the data. |
protected com.sas.util.log.CommonLoggerInterface |
log
|
java.lang.String |
outputType
The requested exporting format. |
java.lang.String |
repeatLabels
If the row labels must be repeated or not in the exported data when the model is expanded. |
java.lang.String |
rows
If all or a subset of the rows in the model have to be exported. |
java.lang.String |
whichColumns
Which columns have to be exported, either 'A' all columns in dataset', or 'D' all currently displayed columns or 'S' selected columns |
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 | |
---|---|
ExportSelectorCommand()
Default constructor. |
|
ExportSelectorCommand(java.lang.String name)
Constructor that accepts a command name. |
|
ExportSelectorCommand(java.lang.String name,
java.lang.String actionClass)
Constructor that accepts a command name and an action class. |
Method Summary | |
---|---|
protected void |
commit(java.lang.Object o)
|
java.lang.String[] |
getColumns()
Returns the indexes of the columns to export. |
java.lang.String[] |
getCssMediaList()
Returns the media attributes of the CSSs to be exported together with the data. |
java.lang.String[] |
getCssMIMEType()
Returns the MIME types of the CSSs to be exported together with the data. |
java.lang.String[] |
getCssTitle()
Returns the title attributes of the CSSs to be exported together with the data. |
java.lang.String[] |
getCssURL()
Returns the URLs of the CSSs to be exported together with the data. |
int |
getEndRow()
Returns the ordinal in the model of the last row to be exported. |
java.lang.String[] |
getFooters()
Returns the footers to export below the data. |
java.lang.String |
getFormatted()
Returns if the data have to be exported formatted or non formatted. |
java.lang.String[] |
getHeaders()
Returns the headers to export above the data. |
java.lang.String |
getOutputType()
Returns the exporting format. |
java.lang.String |
getRepeatLabels()
Returns if the row labels must be repeated or not in the exported data when the model is expanded. |
java.lang.String |
getRows()
Returns if all or a subset of the rows in the model have to be exported. |
int |
getStartRow()
Returns the ordinal in the model of the first row to be exported. |
java.lang.String |
getWhichColumns()
|
boolean |
isSupported(ActionSupportFilter actionFilter)
Returns a boolean indicating whether the command is supported for the given area as specified by the current area information encapsulated in the ActionSupportFilter. |
void |
setColumns(java.lang.String[] columns)
Sets the indexes of the columns to export. |
void |
setCssMediaList(java.lang.String[] value)
Sets the media attributes of the CSSs to be exported together with the data. |
void |
setCssMIMEType(java.lang.String[] value)
Sets the MIME types of the CSSs to be exported together with the data. |
void |
setCssTitle(java.lang.String[] value)
Sets the title attributes of the CSSs to be exported together with the data. |
void |
setCssURL(java.lang.String[] value)
Sets the URLs of the CSSs to be exported together with the data. |
void |
setEndRow(int value)
Sets the ordinal of the model of the last row to be exported. |
void |
setFooters(java.lang.String[] footers)
Sets the footers to export below the data. |
void |
setFormatted(java.lang.String value)
Sets if the data have to be exported formatted or non formatted. |
void |
setHeaders(java.lang.String[] headers)
Sets the headers to export above the data. |
void |
setOutputType(java.lang.String value)
Sets the exporting format. |
void |
setRepeatLabels(java.lang.String value)
Sets if the row labels must be repeated or not in the exported data when the model is expanded. |
void |
setRows(java.lang.String value)
Sets if all or a subset of the rows in the model have to be exported. |
void |
setStartRow(int value)
Sets the ordinal of the model of the first row to be exported. |
void |
setWhichColumns(java.lang.String value)
|
protected void |
show(java.lang.Object o)
|
Methods inherited from class com.sas.commands.dataselectors.BaseSelectorCommand |
---|
cancel, cancel, closeSelector, execute, getEventInfo, getEventSource, getMode, getModel, getSelector, getSelectorModel, isComplete, isContentsChanged, isModal, process, 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 java.lang.String outputType
public java.lang.String rows
public java.lang.String formatted
public java.lang.String repeatLabels
public java.lang.String[] cssURL
public java.lang.String[] cssMIMEType
public java.lang.String[] cssMediaList
public java.lang.String[] cssTitle
public java.lang.String[] columns
public java.lang.String whichColumns
public java.lang.String[] headers
public java.lang.String[] footers
protected com.sas.util.log.CommonLoggerInterface log
Constructor Detail |
---|
public ExportSelectorCommand()
public ExportSelectorCommand(java.lang.String name)
name
- the command name.public ExportSelectorCommand(java.lang.String name, java.lang.String actionClass)
name
- the command name.actionClass
- the action class.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
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 java.lang.String getOutputType()
public void setOutputType(java.lang.String value)
value
- the exporting format.ExportSelectorInterface.EXCEL_TSV_OUTPUT_TYPE
,
ExportSelectorInterface.EXCEL_CSV_OUTPUT_TYPE
,
ExportSelectorInterface.EXCEL_XML_OUTPUT_TYPE
,
ExportSelectorInterface.EXCEL_HTML_OUTPUT_TYPE
,
ExportSelectorInterface.WORD_HTML_OUTPUT_TYPE
public java.lang.String getRows()
ExportSelectorInterface.ALL_ROWS
,
ExportSelectorInterface.PARTIAL_ROWS
public void setRows(java.lang.String value)
value
- if all or a subset of the rows in the model have to be exported.ExportSelectorInterface.ALL_ROWS
,
ExportSelectorInterface.PARTIAL_ROWS
public int getStartRow()
public void setStartRow(int value)
value
- the ordinal of the model of the first row to be exported.public int getEndRow()
public void setEndRow(int value)
value
- the ordinal of the model of the last row to be exported.public java.lang.String getFormatted()
ExportSelectorInterface.FORMATTED_DATA
,
ExportSelectorInterface.RAW_DATA
public void setFormatted(java.lang.String value)
value
- if the data have to be exported formatted or non formatted.ExportSelectorInterface.FORMATTED_DATA
,
ExportSelectorInterface.RAW_DATA
public java.lang.String getRepeatLabels()
ExportSelectorInterface.REPEAT_ROW_LABELS
,
ExportSelectorInterface.NOT_REPEAT_ROW_LABELS
public void setRepeatLabels(java.lang.String value)
value
- if the row labels must be repeated or not in the exported data when the model is expanded.ExportSelectorInterface.REPEAT_ROW_LABELS
,
ExportSelectorInterface.NOT_REPEAT_ROW_LABELS
public java.lang.String[] getCssURL()
public void setCssURL(java.lang.String[] value)
value
- the URLs of the CSSs to be exported together with the data.public java.lang.String[] getCssMIMEType()
public void setCssMIMEType(java.lang.String[] value)
value
- the MIME types of the CSSs to be exported together with the data.public java.lang.String[] getCssMediaList()
public void setCssMediaList(java.lang.String[] value)
value
- the media attributes of the CSSs to be exported together with the data.public java.lang.String[] getCssTitle()
public void setCssTitle(java.lang.String[] value)
value
- the title attributes of the CSSs to be exported together with the data.public void setColumns(java.lang.String[] columns)
columns
- the indexes of the columns to export.public java.lang.String[] getColumns()
public void setWhichColumns(java.lang.String value)
public java.lang.String getWhichColumns()
public void setHeaders(java.lang.String[] headers)
headers
- the headers to export above the data.public java.lang.String[] getHeaders()
public java.lang.String[] getFooters()
public void setFooters(java.lang.String[] footers)
footers
- the headers to export below the data.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |