|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.dataselectors.filterandrank.html.FilterAndRankSelectorPanel
public class FilterAndRankSelectorPanel
The FilterAndRankSelectorPanel provides the construction and operation code for the "Filter and Rank" Selector. This selector allows users to construct both rankings and data-based filters for both columns and rows of an OLAP table.
Field Summary | |
---|---|
protected int |
browserType
|
static java.lang.String |
DEFAULT_FILTER_AND_RANK_SELECTOR_NAME
|
static java.lang.String |
DEFAULT_REMOTE_SCRIPT_URL
|
static java.lang.String |
DEFAULT_TEMPLATE_FILE_NAME
|
static java.lang.String |
RB_KEY
|
protected Form |
remoteScriptForm
|
protected java.lang.String |
remoteScriptURL
|
protected FilterAndRankModelInterface |
selectorModel
|
Fields inherited from class com.sas.servlet.tbeans.dataselectors.BaseSelectorPanel |
---|
imageLocation, SELECTOR_EXPAND, SELECTOR_EXTERNAL |
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.filterandrank.html.FilterAndRankSelectorKeysInterface |
---|
FAR_BASED_ON, FAR_BASED_ON_LABEL, FAR_CLEAR_ALL_BUTTON, FAR_CLEAR_BUTTON, FAR_CURRENT_FILTERS, FAR_CURRENT_FILTERS_LABEL, FAR_FILTER_CONDITION, FAR_FILTER_CONDITION_LABEL, FAR_FILTER_ON, FAR_FILTER_ON_LABEL, FAR_FILTER_TYPE, FAR_FILTER_TYPE_LABEL, FAR_FILTER_VALUE, FAR_FILTER_VALUE_EDIT_BUTTON, FAR_FILTER_VALUE_LABEL, FAR_RANK_OPTION, FAR_RANK_ORDER, FAR_RANK_TYPE, FAR_RANK_VALUE |
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.filterandrank.html.FilterAndRankSelectorStyleKeysInterface |
---|
FILTERANDRANKSELECTOR_CHECKBOX, FILTERANDRANKSELECTOR_CHECKBOX_LABEL, FILTERANDRANKSELECTOR_CURRENT_FILTERS, FILTERANDRANKSELECTOR_FILTER_CONDITION_CHOICE, FILTERANDRANKSELECTOR_FILTER_VALUE_ENTRY, FILTERANDRANKSELECTOR_LABEL, FILTERANDRANKSELECTOR_LIST, FILTERANDRANKSELECTOR_RADIO, FILTERANDRANKSELECTOR_RADIO_LABEL, FILTERANDRANKSELECTOR_RANK_TYPE_CHOICE, FILTERANDRANKSELECTOR_RANK_VALUE_ENTRY, FILTERANDRANKSELECTOR_TEXT |
Constructor Summary | |
---|---|
FilterAndRankSelectorPanel()
Constructs a new Filter and Rank selector panel. |
|
FilterAndRankSelectorPanel(java.lang.String name)
Constructs a new Filter and Rank selector panel with the given name. |
Method Summary | |
---|---|
protected java.lang.String |
getBasedOn()
Returns the text for the 'Based On' field. |
protected java.lang.String |
getConstructionJavaScript()
|
java.util.Map |
getDefaultComponentMap()
Constructs and returns the default component map for this selector. |
java.util.Map |
getDefaultStyleMap()
Provides a mapping of style keys to the default values to be used by the components in this selector. |
java.util.HashMap |
getDefaultTemplateDictionary()
Returns a map of additional template entries created/required by this selector. |
protected FilterAxisEnum |
getFilterAxis()
Returns the filter axis currently set on the model. |
java.lang.String |
getRemoteScriptURL()
Returns the URL used for processing the remote script form |
FilterTypeEnum |
getSelectedFilterType()
Returns the filter type currently selected on the 'filter type' component. |
RankOrderEnum |
getSelectedRankOrder()
Returns the rank order currently selected on the 'rank order' component. |
void |
propertyChange(java.beans.PropertyChangeEvent pce)
|
protected boolean |
setButtonLabel(java.lang.String componentKey,
java.lang.String propertyKey,
java.util.Locale locale)
Convenience method for applying text from a resource as the label for a button in the component map. |
protected boolean |
setCheckBoxModel(java.lang.String componentKey,
Item model)
Sets the model on the component at the given key. |
protected boolean |
setChoiceBoxModel(java.lang.String componentKey,
javax.swing.ComboBoxModel model)
Sets the model on the component at the given key. |
protected void |
setComponentValues()
Sets the name and ID properties on select components. |
protected boolean |
setLabelText(java.lang.String componentKey,
java.lang.String text)
Convenience method for applying text from a resource to a label in the component map. |
protected boolean |
setLabelText(java.lang.String componentKey,
java.lang.String propertyKey,
java.util.Locale locale)
Convenience method for applying text from a resource to a label in the component map. |
protected boolean |
setListBoxModel(java.lang.String componentKey,
javax.swing.ListModel model)
Sets the model on the component at the given key. |
protected void |
setLocaleDependentProperties(java.util.Locale locale)
Sets the locale dependent properties. |
protected boolean |
setRadioModel(java.lang.String componentKey,
javax.swing.ListModel model)
Sets the model on the component at the given key. |
void |
setRemoteScriptURL(java.lang.String value)
Sets the URL used for processing the remote script form |
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. |
protected void |
writeSelectorForm(java.io.PrintWriter out,
Form form)
|
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, setActionProvider, setCommandId, setImageLocation, setSelector |
Methods inherited from class com.sas.servlet.tbeans.BaseCompositeTransformation |
---|
applyTemplate, applyTemplate, getComponent, getComponents, getDefaultTemplate, getStyleInfo, getStyleMap, getTemplate, getTemplateDictionary, getTemplateFileName, getTemplateLocation, getVisibleComponents, isFlushEnabled, removeComponent, setCleanUpResourcesOn, setComponent, setFlushEnabled, setId, setLocale, setRequest, setResponse, setStyleInfo, setTemplate, setTemplate, setTemplateDictionary, setTemplateFileName, setTemplateLocation, writeTemplate |
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface |
---|
getRequest |
Field Detail |
---|
public static final java.lang.String RB_KEY
public static final java.lang.String DEFAULT_FILTER_AND_RANK_SELECTOR_NAME
public static final java.lang.String DEFAULT_TEMPLATE_FILE_NAME
public static final java.lang.String DEFAULT_REMOTE_SCRIPT_URL
protected Form remoteScriptForm
protected java.lang.String remoteScriptURL
protected int browserType
protected FilterAndRankModelInterface selectorModel
Constructor Detail |
---|
public FilterAndRankSelectorPanel()
public FilterAndRankSelectorPanel(java.lang.String name)
name
- the new name of the panelMethod Detail |
---|
public java.lang.String getRemoteScriptURL()
public void setRemoteScriptURL(java.lang.String value)
value
- the new url for the remote script form actionpublic java.util.Map getDefaultComponentMap()
protected void setLocaleDependentProperties(java.util.Locale locale)
BaseTransformation
setLocaleDependentProperties
in class BaseTransformation
protected FilterAxisEnum getFilterAxis()
protected java.lang.String getBasedOn()
protected boolean setRadioModel(java.lang.String componentKey, javax.swing.ListModel model)
componentKey
- the component key of the desired componentmodel
- the model to assign to the component
protected boolean setChoiceBoxModel(java.lang.String componentKey, javax.swing.ComboBoxModel model)
componentKey
- the component key of the desired componentmodel
- the model to assign to the component
protected boolean setListBoxModel(java.lang.String componentKey, javax.swing.ListModel model)
componentKey
- the component key of the desired componentmodel
- the model to assign to the component
protected boolean setCheckBoxModel(java.lang.String componentKey, Item model)
componentKey
- the component key of the desired componentmodel
- the model to assign to the component
protected boolean setLabelText(java.lang.String componentKey, java.lang.String propertyKey, java.util.Locale locale)
componentKey
- the key in the component map for the component to modifypropertyKey
- the key for the resource to uselocale
- the locale to use when getting the resource
protected boolean setLabelText(java.lang.String componentKey, java.lang.String text)
componentKey
- the key in the component map for the component to modifytext
- the pre-localized text for the label
protected boolean setButtonLabel(java.lang.String componentKey, java.lang.String propertyKey, java.util.Locale locale)
componentKey
- the key in the component map for the component to modifypropertyKey
- the key for the resource to uselocale
- the locale to use when getting the resource
public java.util.Map getDefaultStyleMap()
public FilterTypeEnum getSelectedFilterType()
public RankOrderEnum getSelectedRankOrder()
public java.util.HashMap getDefaultTemplateDictionary()
protected void setComponentValues()
public void write(java.io.PrintWriter out) throws java.io.IOException
BaseCompositeTransformation
write
in interface TransformationInterface
write
in interface com.sas.util.WriteToPrintWriterInterface
write
in class BaseCompositeTransformation
out
- The output stream
java.io.IOException
- Thrown if some type of I/O error occursprotected java.lang.String getConstructionJavaScript()
protected void writeSelectorForm(java.io.PrintWriter out, Form form) throws java.io.IOException
java.io.IOException
public void setSelectorModel(java.lang.Object selectormodel)
BaseSelectorPanel
setSelectorModel
in class BaseSelectorPanel
selectormodel
- The selector's data modelpublic void propertyChange(java.beans.PropertyChangeEvent pce)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class BaseCompositeTransformation
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |