|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.dataselectors.export.html.ExportSelectorPanel
public class ExportSelectorPanel
The ExportSelectorPanel is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript to provide a user interface for specifying options for exporting data to a spreadsheet application.
The ExportSelectorPanel is one of several TransformationBeans that rely on a set of style classes that are used by default when generating the resulting markup language. For more information on style sheets and the default style classes that apply to this TransformationBean, refer to the AppDev Studio Developer Site. You'll find a useful reference document entitled Cascading Style Sheets, Images, and TransformationBeans as well as the TransformationBeans Style Sheet Reference.
The ExportSelectorPanel is one of several TransformationBeans that rely on JavaScript to provide some of its functionality. These JavaScript files are including automatically by the tbean. See JavaScriptIncludeHandler for more information about how these files are included and how to customize this behavior. The ExportSelectorPanel uses the following JavaScript files:
Note that the toString() method on this class calls the write
method, which may have undesirable side effects. See BaseTransformation.toString() for more information. Debuggers often use toString() to show the value of a variable, and this may cause unexpected behavior while debugging
For More Information:
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site .
Field Summary | |
---|---|
protected static java.lang.String |
CHECKBOX_LABEL_STYLEMAP_KEY
|
protected static java.lang.String |
CHECKBOX_STYLEMAP_KEY
|
protected com.sas.servlet.tbeans.form.html.OrderedCheckBoxList |
columnsCheckBoxList
The CheckBoxList to allow the user to choose the columns to export. |
protected Label |
columnsLabel
The label for the Columns radio box. |
protected Radio |
columnsRadio
The columns radio box. |
static boolean |
DEFAULT_EXPORT_CSS
The default value for the exportCSS flag. |
static java.lang.String |
DEFAULT_TEMPLATE_FILE_NAME
The default file name for the template for this panel. |
protected Radio |
exportToRadio
The 'Export to' radio button. |
protected java.lang.String |
isExportFromMaxValueValidErrorMessage
|
protected java.lang.String |
isExportToMaxValueValidErrorMessage
|
protected java.lang.String |
isNoColumnsChosenErrorMessage
|
protected static java.lang.String |
RADIOBOX_LABEL_STYLEMAP_KEY
|
protected static java.lang.String |
RADIOBOX_STYLEMAP_KEY
|
protected Label |
rowsLabel
The label for the Rows radio box. |
protected ListBox |
saveAsListBox
The list box for the 'Save as' output types. |
protected Radio |
saveAsRadio
The 'Save as' radio button. |
Fields inherited from class com.sas.servlet.tbeans.dataselectors.BaseSelectorPanel |
---|
imageLocation, SELECTOR_EXPAND, SELECTOR_EXTERNAL |
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.export.html.ExportSelectorStyleKeysInterface |
---|
EXPORTSELECTOR_CHECK, EXPORTSELECTOR_CHECK_LABEL, EXPORTSELECTOR_COLUMNS_DISPLAY_STYLE, EXPORTSELECTOR_LABEL, EXPORTSELECTOR_LIST, EXPORTSELECTOR_OPTIONS_DISPLAY_STYLE, EXPORTSELECTOR_RADIO, EXPORTSELECTOR_RADIO_LABEL, EXPORTSELECTOR_ROWS_DISPLAY_STYLE, EXPORTSELECTOR_TEXT, EXPORTSELECTOR_TEXT_ENTRY |
Constructor Summary | |
---|---|
ExportSelectorPanel()
Default constructor. |
|
ExportSelectorPanel(java.lang.String name)
Constructor using the given name. |
Method Summary | |
---|---|
void |
cancel()
Cancels the command. |
protected javax.swing.ListModel |
getLocalizedColumnsRadioModel()
Returns the model to be used by the EXPORTSELECTOR_COLUMNS_RADIO component. |
protected Label |
newLabel(java.lang.String name,
com.sas.servlet.tbeans.ImmutableStyleInfo style)
|
protected ListBox |
newListBox(java.lang.String name,
com.sas.servlet.tbeans.ImmutableStyleInfo style)
|
protected com.sas.servlet.tbeans.form.html.OrderedCheckBoxList |
newOrderedCheckBoxList(java.lang.String name,
com.sas.servlet.tbeans.ImmutableStyleInfo style)
|
protected Radio |
newRadio(java.lang.String name)
|
protected TextEntry |
newTextEntry(java.lang.String name,
int size,
com.sas.servlet.tbeans.ImmutableStyleInfo style,
boolean isEnabled)
|
void |
setActionProvider(HttpActionProvider ap)
Sets the HttpActionProvider object |
void |
setSelectorModel(java.lang.Object selectorModel)
Sets the selector's data model |
void |
write(java.io.PrintWriter out)
Writes the custom attributes of the object. |
Methods inherited from class com.sas.servlet.tbeans.dataselectors.html.SelectorPanel |
---|
close, getAdditionalParameters, getDefaultFormObject, getFormObject, getIframeName, isFormEnabled, setAdditionalParameter, setAdditionalParameters, setFormEnabled, setFormObject, setIframeName, writeRemoteScriptCommands, writeRemoteScriptFrame, writeSelectorPanelFooter, writeSelectorPanelHeader |
Methods inherited from class com.sas.servlet.tbeans.dataselectors.BaseSelectorPanel |
---|
contentsChanged, getActionProvider, getCommandId, getImageLocation, getSelector, getSelectorModel, setCommandId, setImageLocation, setSelector |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
---|
getRequest |
Field Detail |
---|
public static final java.lang.String DEFAULT_TEMPLATE_FILE_NAME
public static final boolean DEFAULT_EXPORT_CSS
protected ListBox saveAsListBox
protected Radio exportToRadio
protected Radio saveAsRadio
protected com.sas.servlet.tbeans.form.html.OrderedCheckBoxList columnsCheckBoxList
protected Label rowsLabel
protected Label columnsLabel
protected Radio columnsRadio
protected java.lang.String isExportFromMaxValueValidErrorMessage
protected java.lang.String isExportToMaxValueValidErrorMessage
protected java.lang.String isNoColumnsChosenErrorMessage
protected static java.lang.String CHECKBOX_STYLEMAP_KEY
protected static java.lang.String CHECKBOX_LABEL_STYLEMAP_KEY
protected static java.lang.String RADIOBOX_STYLEMAP_KEY
protected static java.lang.String RADIOBOX_LABEL_STYLEMAP_KEY
Constructor Detail |
---|
public ExportSelectorPanel()
public ExportSelectorPanel(java.lang.String name)
name
- String to set the nameMethod Detail |
---|
public void write(java.io.PrintWriter out)
BaseCompositeTransformation
write
in interface TransformationInterface
write
in interface com.sas.util.WriteToPrintWriterInterface
write
in class BaseCompositeTransformation
out
- The output streamprotected ListBox newListBox(java.lang.String name, com.sas.servlet.tbeans.ImmutableStyleInfo style)
protected com.sas.servlet.tbeans.form.html.OrderedCheckBoxList newOrderedCheckBoxList(java.lang.String name, com.sas.servlet.tbeans.ImmutableStyleInfo style)
protected Radio newRadio(java.lang.String name)
protected TextEntry newTextEntry(java.lang.String name, int size, com.sas.servlet.tbeans.ImmutableStyleInfo style, boolean isEnabled)
protected Label newLabel(java.lang.String name, com.sas.servlet.tbeans.ImmutableStyleInfo style)
protected javax.swing.ListModel getLocalizedColumnsRadioModel()
public void cancel()
CancelInterface
Common things done in this method:
cancel
in interface CancelInterface
public void setActionProvider(HttpActionProvider ap)
BaseSelectorPanel
setActionProvider
in interface HttpActionProviderInterface
setActionProvider
in class BaseSelectorPanel
ap
- HttpActionProvider ObjectHttpActionProviderInterface.getActionProvider()
public void setSelectorModel(java.lang.Object selectorModel)
BaseSelectorPanel
setSelectorModel
in class BaseSelectorPanel
selectorModel
- The selector's data model
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |