|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.dataselectors.sort.html.SortSelectorPanel
public class SortSelectorPanel
The SortSelectorPanel is a TransformationBean that generates the appropriate HTML 4.0 and JavaScript to provide a user interface for specifying sorting on data items.
The SortSelectorPanel 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 SortSelectorPanel 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 SortSelectorPanel 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 | |
---|---|
static java.lang.String |
DEFAULT_TEMPLATE_FILE_NAME
The default file name for the template for this panel. |
Fields inherited from class com.sas.servlet.tbeans.dataselectors.BaseSelectorPanel |
---|
imageLocation, SELECTOR_EXPAND, SELECTOR_EXTERNAL |
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.sort.html.SortSelectorKeysInterface |
---|
SORTSELECTOR, SORTSELECTOR_SORT_BY_CHOICEBOX, SORTSELECTOR_SORT_BY_LABEL, SORTSELECTOR_SORT_BY_RADIO, SORTSELECTOR_THEN_BY_CHOICEBOX, SORTSELECTOR_THEN_BY_CHOICEBOX1, SORTSELECTOR_THEN_BY_CHOICEBOX2, SORTSELECTOR_THEN_BY_LABEL, SORTSELECTOR_THEN_BY_LABEL1, SORTSELECTOR_THEN_BY_LABEL2, SORTSELECTOR_THEN_BY_RADIO, SORTSELECTOR_THEN_BY_RADIO1, SORTSELECTOR_THEN_BY_RADIO2 |
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.sort.html.SortSelectorStyleKeysInterface |
---|
SORTSELECTOR_CHOICE, SORTSELECTOR_DIV, SORTSELECTOR_LABEL, SORTSELECTOR_RADIO |
Constructor Summary | |
---|---|
SortSelectorPanel()
Default constructor. |
|
SortSelectorPanel(java.lang.String name)
Constructor using the given name. |
Method Summary | |
---|---|
protected void |
addComponents()
Creates the components and add them to the selector template. |
void |
cancel()
Cancels the command. |
protected void |
createAdditionalComponents()
Creates the additional components and add them to the selector template. |
protected ChoiceBox |
createSortSelectorChoiceBox()
Creates the list box for the output types. |
protected Label |
createSortSelectorLabel()
Creates the label for the sort by type. |
protected Radio |
createSortSelectorRadioBox()
Creates the sort selector radio boxes. |
protected java.lang.StringBuffer |
getLayoutTemplate()
Returns a default template which is dynamically built based on the number of columns in the model. |
int |
getMaxSortableColumns()
|
java.lang.Object |
getSelectorModel()
Returns the selector's data model |
void |
setActionProvider(HttpActionProvider ap)
Sets the HttpActionProvider object |
protected void |
setLocaleDependentProperties(java.util.Locale locale)
Sets the locale dependent properties. |
void |
setMaxSortableColumns(int value)
|
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, setCommandId, setImageLocation, setSelector |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
---|
getRequest |
Field Detail |
---|
public static final java.lang.String DEFAULT_TEMPLATE_FILE_NAME
Constructor Detail |
---|
public SortSelectorPanel()
public SortSelectorPanel(java.lang.String name)
name
- String to set the nameMethod Detail |
---|
protected void setLocaleDependentProperties(java.util.Locale locale)
BaseTransformation
setLocaleDependentProperties
in class BaseTransformation
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 java.lang.StringBuffer getLayoutTemplate()
protected void addComponents()
protected void createAdditionalComponents()
protected Label createSortSelectorLabel()
protected ChoiceBox createSortSelectorChoiceBox()
protected Radio createSortSelectorRadioBox()
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 modelpublic java.lang.Object getSelectorModel()
BaseSelectorPanel
getSelectorModel
in class BaseSelectorPanel
public void setMaxSortableColumns(int value)
public int getMaxSortableColumns()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |