|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.dataselectors.exceptionhighlighting.html.ExceptionHighlightingChartSelectorPanel
public class ExceptionHighlightingChartSelectorPanel
The ExceptionHighlightingSelectorPanel is a TransformationBean that generates the appropriate HTML 4.0 to provide a selector panel for enabling conditional highlighting of data values.
The ExceptionHighlightingSelectorPanel 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.
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 Label |
applyToLabel
|
protected Radio |
applyToRadio
|
protected Button |
clearRuleButton
|
protected ChoiceBox |
conditionChoice
|
protected Label |
conditionLabel
|
static java.lang.String |
DEFAULT_REMOTE_SCRIPT_URL
|
static java.lang.String |
DEFAULT_TEMPLATE_FILE_NAME
The default file name for the template for this panel. |
protected javax.swing.DefaultListModel |
defaultLevels
|
protected static java.util.HashMap |
defaultStyleMap
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSChoiceBoxStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSComboBoxStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSLabelStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSListStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSRadioStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSTextEntryStyle
|
protected Label |
exceptionRuleLabel
|
protected Form |
form
|
protected boolean |
isHorizontal
|
protected boolean |
isLeftToRight
|
protected ComboBoxView |
maxValueCombo
|
protected Label |
maxValueLabel
|
protected ChoiceBox |
measureChoice
|
protected Label |
measureLabel
Components for the rule tab of edit rule page (editRule html div block) |
protected ComboBoxView |
minValueCombo
|
protected Label |
minValueLabel
|
protected java.lang.String |
overrideFormName
|
protected java.lang.String |
parameterPrefix
|
protected Label |
previewLabel
|
protected java.lang.String |
RB_KEY
|
protected Form |
remoteScriptForm
|
protected java.lang.String |
remoteScriptURL
|
protected Button |
resetDefaultLevelsButton
|
protected Label |
ruleLabel
|
protected Button |
selectLevelsButton
|
protected Label |
selectLevelsLabel
|
protected TreeView |
selectLevelsTree
Components for the select levels page |
protected java.lang.Object |
selectorModel
|
protected ComboBoxView |
valueCombo
|
protected Label |
valueLabel
|
Fields inherited from class com.sas.servlet.tbeans.dataselectors.BaseSelectorPanel |
---|
imageLocation, SELECTOR_EXPAND, SELECTOR_EXTERNAL |
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.exceptionhighlighting.html.ExceptionHighlightingChartSelectorKeysInterface |
---|
EHS_APPLY_TO_LABEL, EHS_APPLY_TO_RADIO, EHS_CLEAR_RULE_BUTTON, EHS_CONDITION_CHOICE, EHS_CONDITION_LABEL, EHS_EXCEPTION_RULE_LABEL, EHS_MAX_VALUE_COMBO, EHS_MAX_VALUE_LABEL, EHS_MEASURE_CHOICE, EHS_MEASURE_LABEL, EHS_MIN_VALUE_COMBO, EHS_MIN_VALUE_LABEL, EHS_PREVIEW_LABEL, EHS_SELECT_LEVELS_BUTTON, EHS_SELECT_LEVELS_LABEL, EHS_SELECT_LEVELS_RESET_BUTTON, EHS_SELECT_LEVELS_TREE, EHS_VALUE_COMBO, EHS_VALUE_LABEL, EXCEPTIONHIGHLIGHTINGSELECTOR |
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.exceptionhighlighting.html.ExceptionHighlightingSelectorStyleKeysInterface |
---|
EHS_CHECK_STYLE, EHS_CHOICEBOX_STYLE, EHS_COLOR_CHOICEBOX_STYLE, EHS_COMBOBOX_STYLE, EHS_FONT_CHOICEBOX_STYLE, EHS_FONT_SIZE_CHOICEBOX_STYLE, EHS_LABEL_STYLE, EHS_LIST_EDITOR_STYLE, EHS_LIST_STYLE, EHS_RADIO_STYLE, EHS_TEXT_ENTRY_STYLE |
Constructor Summary | |
---|---|
ExceptionHighlightingChartSelectorPanel()
Default constructor. |
|
ExceptionHighlightingChartSelectorPanel(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
protected void |
_setLocaleDependentProperties(java.util.Locale locale)
protected version of the method for setting locale dependent properties to avoid the overhead of protected method calls in the constructor per defect S0190664. |
protected void |
addComponents()
Creates the components and add them to the selector template. |
protected void |
addJSProp(java.lang.StringBuffer props,
java.lang.String prefix,
java.lang.String propName,
java.lang.String propValue)
|
void |
cancel()
Cancels the command. |
protected void |
createSelectLevelsComponents()
Create all the visual components for the Color and Font tab of the edit rule page |
protected ExceptionHighlightingSelectorInterface |
getAdapter()
|
protected javax.swing.ListModel |
getLocalizedApplyToRadioModel()
|
java.lang.String |
getParameterPrefix()
|
protected java.lang.String |
getRemoteScriptURL()
|
java.lang.Object |
getSelectorModel()
Returns the selector's data model |
protected void |
initJavaScriptVariables(java.io.PrintWriter out)
|
protected javax.swing.ComboBoxModel |
MapToComboModel(java.util.Map map,
java.lang.String instructions)
|
void |
setActionProvider(HttpActionProvider ap)
Sets the HttpActionProvider object |
protected void |
setComponentValues()
|
void |
setFormName(java.lang.String formName)
Allow to set a form name other than the one built internally if necessary |
protected void |
setLocaleDependentProperties(java.util.Locale locale)
Sets the locale dependent properties. |
void |
setParameterPrefix(java.lang.String prefix)
|
void |
setRemoteScriptURL(java.lang.String remoteScriptURL)
|
void |
setSelectorModel(java.lang.Object selectorModel)
Sets the selector's data model |
protected static void |
setupDefaultStyleMap()
|
protected void |
styleCombo(ComboBoxView combo)
|
void |
write(java.io.PrintWriter out)
From DataSelectorInterface |
protected void |
writeJSIncludes(java.io.PrintWriter out)
|
void |
writeRemoteScriptCommands(java.io.PrintWriter out)
Subclasses must implement this method to provide functionality for panels to react to remote script events. |
protected void |
writeRemoteScriptForm(java.io.PrintWriter out)
|
Methods inherited from class com.sas.servlet.tbeans.dataselectors.html.SelectorPanel |
---|
close, getAdditionalParameters, getDefaultFormObject, getFormObject, getIframeName, isFormEnabled, setAdditionalParameter, setAdditionalParameters, setFormEnabled, setFormObject, setIframeName, 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 |
---|
protected Form form
protected java.lang.String overrideFormName
protected java.lang.Object selectorModel
protected javax.swing.DefaultListModel defaultLevels
protected java.lang.String parameterPrefix
protected Form remoteScriptForm
protected java.lang.String remoteScriptURL
public static java.lang.String DEFAULT_REMOTE_SCRIPT_URL
protected java.lang.String RB_KEY
protected boolean isLeftToRight
protected boolean isHorizontal
public static final java.lang.String DEFAULT_TEMPLATE_FILE_NAME
protected Label ruleLabel
protected Label previewLabel
protected Label measureLabel
protected Label conditionLabel
protected Label valueLabel
protected Label minValueLabel
protected Label maxValueLabel
protected Label applyToLabel
protected Label exceptionRuleLabel
protected ChoiceBox measureChoice
protected ChoiceBox conditionChoice
protected ComboBoxView valueCombo
protected ComboBoxView minValueCombo
protected ComboBoxView maxValueCombo
protected Radio applyToRadio
protected Button selectLevelsButton
protected Button resetDefaultLevelsButton
protected Button clearRuleButton
protected TreeView selectLevelsTree
protected Label selectLevelsLabel
protected static final java.util.HashMap defaultStyleMap
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSLabelStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSTextEntryStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSListStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSChoiceBoxStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSComboBoxStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSRadioStyle
Constructor Detail |
---|
public ExceptionHighlightingChartSelectorPanel()
public ExceptionHighlightingChartSelectorPanel(java.lang.String name)
name
- The name of the panelMethod Detail |
---|
protected static void setupDefaultStyleMap()
protected void setLocaleDependentProperties(java.util.Locale locale)
BaseTransformation
setLocaleDependentProperties
in class BaseTransformation
protected void _setLocaleDependentProperties(java.util.Locale locale)
protected javax.swing.ListModel getLocalizedApplyToRadioModel()
public void write(java.io.PrintWriter out)
write
in interface TransformationInterface
write
in interface com.sas.util.WriteToPrintWriterInterface
write
in class BaseCompositeTransformation
out
- The output streamprotected void writeRemoteScriptForm(java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
protected void writeJSIncludes(java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
protected void addComponents()
protected void setComponentValues()
protected ExceptionHighlightingSelectorInterface getAdapter()
protected javax.swing.ComboBoxModel MapToComboModel(java.util.Map map, java.lang.String instructions)
protected void styleCombo(ComboBoxView combo)
protected void createSelectLevelsComponents()
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 writeRemoteScriptCommands(java.io.PrintWriter out) throws java.io.IOException
SelectorPanel
writeRemoteScriptCommands
in class SelectorPanel
java.io.IOException
protected void initJavaScriptVariables(java.io.PrintWriter out)
protected void addJSProp(java.lang.StringBuffer props, java.lang.String prefix, java.lang.String propName, java.lang.String propValue)
public void setParameterPrefix(java.lang.String prefix)
public java.lang.String getParameterPrefix()
public void setFormName(java.lang.String formName)
public void setRemoteScriptURL(java.lang.String remoteScriptURL)
remoteScriptURL
- The remoteScriptURL to set.protected java.lang.String getRemoteScriptURL()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |