|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.servlet.tbeans.dataselectors.exceptionhighlighting.html.ExceptionHighlightingSelectorPanel
public class ExceptionHighlightingSelectorPanel
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 |
addImageTextLabel
|
protected Radio |
addImageTextRadio
|
protected Label |
applyToLabel
|
protected Radio |
applyToRadio
|
protected com.sas.servlet.tbeans.html.TabButton |
colorFontTab
|
protected ChoiceBox |
conditionChoice
|
protected Label |
conditionLabel
|
protected Label |
contextLabel
|
static java.lang.String |
DEFAULT_REMOTE_SCRIPT_URL
The default URL used for remote scripting. |
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 |
EHSCheckStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSChoiceBoxStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSColorChoiceBoxStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSComboBoxStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSFontChoiceBoxStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSFontSizeChoiceBoxStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSLabelStyle
|
protected static com.sas.servlet.tbeans.ImmutableStyleInfo |
EHSListEditorStyle
|
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 |
fillColorLabel
Components for the color and font tab of edit rule page (editRule html div block) |
protected Label |
fontLabel
|
protected com.sas.servlet.tbeans.html.FontPicker |
fontPicker
|
protected Label |
fontStyleLabel
|
protected Form |
form
|
protected Label |
imageLabel
|
protected com.sas.servlet.tbeans.html.ImagePicker |
imagePicker
|
protected CheckBox |
imageTextCheck
Components for the images/text selection |
protected com.sas.servlet.tbeans.html.TabButton |
imageTextTab
|
protected boolean |
isHorizontal
|
protected boolean |
isLeftToRight
|
protected boolean |
locateImages
|
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 MenuBar |
menuBar
|
protected ComboBoxView |
minValueCombo
|
protected Label |
minValueLabel
|
protected java.lang.String |
overrideFormName
|
protected java.lang.String |
parameterPrefix
|
protected ChoiceBox |
positionChoice
|
protected Label |
positionLabel
|
protected Label |
previewLabel
|
protected java.lang.String |
RB_KEY
|
protected java.lang.String |
remoteAction
|
protected ExceptionHighlightingRuleInterface |
remoteRule
|
protected Form |
remoteScriptForm
|
protected java.lang.String |
remoteScriptURL
|
protected Button |
resetDefaultLevelsButton
|
protected ListEditor |
rulesListEditor
|
protected Label |
rulesListLabel
Components for the rule management page (rulesList html div block) |
protected com.sas.servlet.tbeans.html.TabButton |
ruleTab
|
protected Button |
selectLevelsButton
|
protected Label |
selectLevelsLabel
|
protected TreeView |
selectLevelsTree
Components for the select levels page |
protected java.lang.Object |
selectorModel
|
protected com.sas.servlet.tbeans.html.TabMenu |
tabMenu
|
protected TextEntry |
textEntry
|
protected Label |
textFontLabel
|
protected com.sas.servlet.tbeans.html.FontPicker |
textFontPicker
|
protected Label |
textFontStyleLabel
|
protected Label |
textLabel
|
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.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 | |
---|---|
ExceptionHighlightingSelectorPanel()
Default constructor. |
|
ExceptionHighlightingSelectorPanel(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,
boolean propValue)
|
protected void |
addJSProp(java.lang.StringBuffer props,
java.lang.String prefix,
java.lang.String propName,
java.lang.String propValue)
|
void |
cancel()
Cancels the command. |
void |
contentsChanged(com.sas.collection.ContentsChangedEvent event)
Reads the values stored in the EventInfo by the ExceptionHighlightingCommand in the process() method (when remote javascript) |
void |
contentsChanged(java.util.Map info)
The ExceptionHighglightingCommand generates a map of info that is interpreted by this method. |
protected void |
createEditRuleColorFontComponents()
Create all the visual components for the Color and Font tab of the edit rule page |
protected void |
createEditRuleComponents()
Create all the visual components for the Rule tab of the edit rule page |
protected void |
createEditRuleImageTextComponents()
Create all the visual components for the Image and Text tab of the edit rule page |
protected void |
createRulesListDialogComponents()
Create all the visual components for the rules management page |
protected void |
createSelectLevelsComponents()
Create all the visual components for the Color and Font tab of the edit rule page |
protected void |
createTabComponents()
|
protected ExceptionHighlightingSelectorInterface |
getAdapter()
|
protected ItemInterface[] |
getColorsModel()
|
protected ItemInterface[] |
getFontModel()
|
protected ItemInterface[] |
getFontSizeModel()
|
protected java.util.List |
getImagesModel()
|
protected javax.swing.ListModel |
getLocalizedAddImageTextRadioModel()
|
protected javax.swing.ListModel |
getLocalizedApplyToRadioModel()
|
protected javax.swing.DefaultComboBoxModel |
getLocalizedImageTextPositionModel()
|
java.lang.String |
getRemoteScriptParameterPrefix()
|
protected java.lang.String |
getRemoteScriptURL()
|
java.lang.Object |
getSelectorModel()
Returns the selector's data model |
protected void |
initializeMenuBar()
|
protected void |
initJavaScriptVariables(java.io.PrintWriter out)
|
protected javax.swing.ComboBoxModel |
ListToComboModel(java.util.List list)
|
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 |
setRemoteScriptParameterPrefix(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)
|
protected void |
updateRuleContext(java.io.PrintWriter out,
ExceptionHighlightingRuleInterface rule)
|
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 |
---|
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 java.lang.String parameterPrefix
protected boolean locateImages
protected Form remoteScriptForm
protected java.lang.String remoteScriptURL
protected java.lang.String remoteAction
protected ExceptionHighlightingRuleInterface remoteRule
protected javax.swing.DefaultListModel defaultLevels
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 rulesListLabel
protected ListEditor rulesListEditor
protected Label contextLabel
protected Label previewLabel
protected Label measureLabel
protected Label conditionLabel
protected Label valueLabel
protected Label minValueLabel
protected Label maxValueLabel
protected Label applyToLabel
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 MenuBar menuBar
protected Label fillColorLabel
protected Label fontLabel
protected Label fontStyleLabel
protected com.sas.servlet.tbeans.html.FontPicker fontPicker
protected CheckBox imageTextCheck
protected Label addImageTextLabel
protected Radio addImageTextRadio
protected Label positionLabel
protected ChoiceBox positionChoice
protected Label textLabel
protected TextEntry textEntry
protected Label textFontLabel
protected Label textFontStyleLabel
protected com.sas.servlet.tbeans.html.FontPicker textFontPicker
protected Label imageLabel
protected com.sas.servlet.tbeans.html.ImagePicker imagePicker
protected com.sas.servlet.tbeans.html.TabMenu tabMenu
protected com.sas.servlet.tbeans.html.TabButton ruleTab
protected com.sas.servlet.tbeans.html.TabButton colorFontTab
protected com.sas.servlet.tbeans.html.TabButton imageTextTab
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 EHSFontSizeChoiceBoxStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSFontChoiceBoxStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSColorChoiceBoxStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSComboBoxStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSRadioStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSCheckStyle
protected static final com.sas.servlet.tbeans.ImmutableStyleInfo EHSListEditorStyle
Constructor Detail |
---|
public ExceptionHighlightingSelectorPanel()
public ExceptionHighlightingSelectorPanel(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()
protected javax.swing.ListModel getLocalizedAddImageTextRadioModel()
protected javax.swing.DefaultComboBoxModel getLocalizedImageTextPositionModel()
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 writeJSIncludes(java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
protected void addComponents()
protected void setComponentValues()
protected void initializeMenuBar()
protected ExceptionHighlightingSelectorInterface getAdapter()
protected java.util.List getImagesModel()
protected ItemInterface[] getColorsModel()
protected ItemInterface[] getFontModel()
protected ItemInterface[] getFontSizeModel()
protected javax.swing.ComboBoxModel ListToComboModel(java.util.List list)
protected javax.swing.ComboBoxModel MapToComboModel(java.util.Map map, java.lang.String instructions)
protected void createTabComponents()
protected void createRulesListDialogComponents()
protected void createEditRuleComponents()
protected void styleCombo(ComboBoxView combo)
protected void createEditRuleColorFontComponents()
protected void createSelectLevelsComponents()
protected void createEditRuleImageTextComponents()
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
protected void writeRemoteScriptForm(java.io.PrintWriter out) throws java.io.IOException
java.io.IOException
public void writeRemoteScriptCommands(java.io.PrintWriter out) throws java.io.IOException
SelectorPanel
writeRemoteScriptCommands
in class SelectorPanel
java.io.IOException
protected void updateRuleContext(java.io.PrintWriter out, ExceptionHighlightingRuleInterface rule)
protected void addJSProp(java.lang.StringBuffer props, java.lang.String prefix, java.lang.String propName, java.lang.String propValue)
protected void addJSProp(java.lang.StringBuffer props, java.lang.String prefix, java.lang.String propName, boolean propValue)
public void contentsChanged(com.sas.collection.ContentsChangedEvent event)
contentsChanged
in interface com.sas.collection.ContentsChangedListener
contentsChanged
in class BaseSelectorPanel
event
- the eventpublic void contentsChanged(java.util.Map info)
info
- The Map of information created by the command.public void setRemoteScriptURL(java.lang.String remoteScriptURL)
remoteScriptURL
- The remoteScriptURL to set.protected java.lang.String getRemoteScriptURL()
public void setFormName(java.lang.String formName)
protected void initJavaScriptVariables(java.io.PrintWriter out)
public void setRemoteScriptParameterPrefix(java.lang.String prefix)
public java.lang.String getRemoteScriptParameterPrefix()
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |