com.sas.servlet.tbeans.dataselectors.exceptionhighlighting.html
Class ExceptionHighlightingChartSelectorPanel

com.sas.servlet.tbeans.dataselectors.exceptionhighlighting.html.ExceptionHighlightingChartSelectorPanel
All Implemented Interfaces:
HttpActionProviderInterface, com.sas.beans.PropertyChangeSource, com.sas.collection.ContentsChangedListener, CancelInterface, com.sas.lang.ObjectDataInterface, com.sas.servlet.tbeans.AJAXControllerURLInterface, ComplexStyleInterface, CompositeComponentInterface, ExceptionHighlightingChartSelectorKeysInterface, ExceptionHighlightingSelectorStyleKeysInterface, FormViewInterface, RenderableInterface, TemplateInterface, com.sas.servlet.tbeans.TemplateKeyInterface, TransformationInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable, java.util.EventListener

public class ExceptionHighlightingChartSelectorPanel
implements CancelInterface, ExceptionHighlightingChartSelectorKeysInterface, ExceptionHighlightingSelectorStyleKeysInterface

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 .

Since:
3.1.4
See Also:
Serialized Form

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 class com.sas.servlet.tbeans.BaseCompositeTransformation
applyTemplate, applyTemplate, getComponent, getComponents, getDefaultTemplate, getStyleInfo, getStyleMap, getTemplate, getTemplateDictionary, getTemplateFileName, getTemplateLocation, getVisibleComponents, isFlushEnabled, propertyChange, removeComponent, setCleanUpResourcesOn, setComponent, setFlushEnabled, setId, setLocale, setRequest, setResponse, setStyleInfo, setTemplate, setTemplate, setTemplateDictionary, setTemplateFileName, setTemplateLocation, writeTemplate
 
Methods inherited from class com.sas.servlet.tbeans.BaseTransformation
addPropertyChangeListener, addPropertyChangeListener, cleanUpResources, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCustomAttributes, getDescription, getId, getInputTransform, getLocale, getName, getObjectData, getObjectDataProperty, getOutputTransform, getRequest, getResponse, getTagEpilog, getTagProlog, hasListeners, isCleanUpResourcesOn, isVisible, removePropertyChangeListener, removePropertyChangeListener, setCustomAttributes, setInputTransform, setName, setObjectData, setObjectDataProperty, setOutputTransform, setTagEpilog, setTagProlog, setVisible, toString, write, write, write
 
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface
getRequest
 

Field Detail

form

protected Form form

overrideFormName

protected java.lang.String overrideFormName

selectorModel

protected java.lang.Object selectorModel

defaultLevels

protected javax.swing.DefaultListModel defaultLevels

parameterPrefix

protected java.lang.String parameterPrefix

remoteScriptForm

protected Form remoteScriptForm

remoteScriptURL

protected java.lang.String remoteScriptURL

DEFAULT_REMOTE_SCRIPT_URL

public static java.lang.String DEFAULT_REMOTE_SCRIPT_URL

RB_KEY

protected java.lang.String RB_KEY

isLeftToRight

protected boolean isLeftToRight

isHorizontal

protected boolean isHorizontal

DEFAULT_TEMPLATE_FILE_NAME

public static final java.lang.String DEFAULT_TEMPLATE_FILE_NAME
The default file name for the template for this panel. "ExceptionHighlightingChartSelectorPanel.html"

See Also:
Constant Field Values

ruleLabel

protected Label ruleLabel

previewLabel

protected Label previewLabel

measureLabel

protected Label measureLabel
Components for the rule tab of edit rule page (editRule html div block)


conditionLabel

protected Label conditionLabel

valueLabel

protected Label valueLabel

minValueLabel

protected Label minValueLabel

maxValueLabel

protected Label maxValueLabel

applyToLabel

protected Label applyToLabel

exceptionRuleLabel

protected Label exceptionRuleLabel

measureChoice

protected ChoiceBox measureChoice

conditionChoice

protected ChoiceBox conditionChoice

valueCombo

protected ComboBoxView valueCombo

minValueCombo

protected ComboBoxView minValueCombo

maxValueCombo

protected ComboBoxView maxValueCombo

applyToRadio

protected Radio applyToRadio

selectLevelsButton

protected Button selectLevelsButton

resetDefaultLevelsButton

protected Button resetDefaultLevelsButton

clearRuleButton

protected Button clearRuleButton

selectLevelsTree

protected TreeView selectLevelsTree
Components for the select levels page


selectLevelsLabel

protected Label selectLevelsLabel

defaultStyleMap

protected static final java.util.HashMap defaultStyleMap

EHSLabelStyle

protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSLabelStyle

EHSTextEntryStyle

protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSTextEntryStyle

EHSListStyle

protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSListStyle

EHSChoiceBoxStyle

protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSChoiceBoxStyle

EHSComboBoxStyle

protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSComboBoxStyle

EHSRadioStyle

protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSRadioStyle
Constructor Detail

ExceptionHighlightingChartSelectorPanel

public ExceptionHighlightingChartSelectorPanel()
Default constructor.


ExceptionHighlightingChartSelectorPanel

public ExceptionHighlightingChartSelectorPanel(java.lang.String name)
Constructor.

Parameters:
name - The name of the panel
Method Detail

setupDefaultStyleMap

protected static void setupDefaultStyleMap()

setLocaleDependentProperties

protected void setLocaleDependentProperties(java.util.Locale locale)
Description copied from class: BaseTransformation
Sets the locale dependent properties. Not operational at this level.

Overrides:
setLocaleDependentProperties in class BaseTransformation

_setLocaleDependentProperties

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.


getLocalizedApplyToRadioModel

protected javax.swing.ListModel getLocalizedApplyToRadioModel()

write

public void write(java.io.PrintWriter out)
From DataSelectorInterface

Specified by:
write in interface TransformationInterface
Specified by:
write in interface com.sas.util.WriteToPrintWriterInterface
Overrides:
write in class BaseCompositeTransformation
Parameters:
out - The output stream

writeRemoteScriptForm

protected void writeRemoteScriptForm(java.io.PrintWriter out)
                              throws java.io.IOException
Throws:
java.io.IOException

writeJSIncludes

protected void writeJSIncludes(java.io.PrintWriter out)
                        throws java.io.IOException
Throws:
java.io.IOException

addComponents

protected void addComponents()
Creates the components and add them to the selector template.


setComponentValues

protected void setComponentValues()

getAdapter

protected ExceptionHighlightingSelectorInterface getAdapter()

MapToComboModel

protected javax.swing.ComboBoxModel MapToComboModel(java.util.Map map,
                                                    java.lang.String instructions)

styleCombo

protected void styleCombo(ComboBoxView combo)

createSelectLevelsComponents

protected void createSelectLevelsComponents()
Create all the visual components for the Color and Font tab of the edit rule page


cancel

public void cancel()
Description copied from interface: CancelInterface
Cancels the command.

Common things done in this method:

Specified by:
cancel in interface CancelInterface

setActionProvider

public void setActionProvider(HttpActionProvider ap)
Description copied from class: BaseSelectorPanel
Sets the HttpActionProvider object

Specified by:
setActionProvider in interface HttpActionProviderInterface
Overrides:
setActionProvider in class BaseSelectorPanel
Parameters:
ap - HttpActionProvider Object
See Also:
HttpActionProviderInterface.getActionProvider()

setSelectorModel

public void setSelectorModel(java.lang.Object selectorModel)
Description copied from class: BaseSelectorPanel
Sets the selector's data model

Overrides:
setSelectorModel in class BaseSelectorPanel
Parameters:
selectorModel - The selector's data model

getSelectorModel

public java.lang.Object getSelectorModel()
Description copied from class: BaseSelectorPanel
Returns the selector's data model

Overrides:
getSelectorModel in class BaseSelectorPanel
Returns:
The selector's data model

writeRemoteScriptCommands

public void writeRemoteScriptCommands(java.io.PrintWriter out)
                               throws java.io.IOException
Description copied from class: SelectorPanel
Subclasses must implement this method to provide functionality for panels to react to remote script events. Data requested by a remote scripting action can be written back to the client on the output stream.

Overrides:
writeRemoteScriptCommands in class SelectorPanel
Throws:
java.io.IOException

initJavaScriptVariables

protected void initJavaScriptVariables(java.io.PrintWriter out)

addJSProp

protected void addJSProp(java.lang.StringBuffer props,
                         java.lang.String prefix,
                         java.lang.String propName,
                         java.lang.String propValue)

setParameterPrefix

public void setParameterPrefix(java.lang.String prefix)

getParameterPrefix

public java.lang.String getParameterPrefix()

setFormName

public void setFormName(java.lang.String formName)
Allow to set a form name other than the one built internally if necessary


setRemoteScriptURL

public void setRemoteScriptURL(java.lang.String remoteScriptURL)
Parameters:
remoteScriptURL - The remoteScriptURL to set.

getRemoteScriptURL

protected java.lang.String getRemoteScriptURL()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.