com.sas.servlet.tbeans.dataselectors.propertyeditor.html
Class EntityAttributeValueSelectorPanel

com.sas.servlet.tbeans.dataselectors.propertyeditor.html.EntityAttributeValueSelectorPanel
All Implemented Interfaces:
HttpActionProviderInterface, com.sas.beans.PropertyChangeSource, com.sas.collection.ContentsChangedListener, com.sas.lang.ObjectDataInterface, com.sas.servlet.tbeans.AJAXControllerURLInterface, ComplexStyleInterface, CompositeComponentInterface, EntityAttributeValueSelectorKeysInterface, EntityAttributeValueSelectorStyleKeysInterface, FormViewInterface, RenderableInterface, TemplateInterface, com.sas.servlet.tbeans.TemplateKeyInterface, TransformationInterface, com.sas.util.WriteToPrintWriterInterface, java.io.Serializable, java.util.EventListener

public class EntityAttributeValueSelectorPanel
implements EntityAttributeValueSelectorKeysInterface, EntityAttributeValueSelectorStyleKeysInterface

The EntityAttributeValueSelectorPanel provides the construction and operation code for the "Entity Attribute Value" Selector. EntityAttributeValueSelectorPanel is a component used to edit property values. The EntityAttributeValueSelectorPanel displays the name of the property to be edited as well as its current value.

See Also:
Serialized Form

Field Summary
protected  Label attributeGroupLabel
           
protected  ListBoxView attributeListBox
           
protected  java.util.List availableValues
           
protected  java.lang.String currentProperty
           
static java.lang.String DEFAULT_ENTITY_ATTRIBUTE_VALUE_SELECTOR_NAME
           
static java.lang.String DEFAULT_REMOTE_SCRIPT_URL
           
static java.lang.String DEFAULT_TEMPLATE_FILE_NAME
           
protected  PropertyEditorContainer editorContainer
           
protected  java.util.Map editorIdMap
           
protected  Label instructionText
           
protected  boolean propertyValueChanged
           
static java.lang.String RB_KEY
           
protected  Form remoteScriptForm
           
protected  java.lang.String remoteScriptURL
           
protected  java.lang.String selectedProperty
           
protected  java.util.List selectedValues
           
protected  EntityAttributeValueModelInterface selectorModel
           
protected  java.lang.String serverError
           
protected  java.util.Map supplementalProperties
           
protected  java.util.Map valueMap
           
 
Fields inherited from class com.sas.servlet.tbeans.dataselectors.BaseSelectorPanel
imageLocation, SELECTOR_EXPAND, SELECTOR_EXTERNAL
 
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.propertyeditor.html.EntityAttributeValueSelectorKeysInterface
EAVS_ATTRIBUTE_GROUP_LABEL, EAVS_ATTRIBUTE_LIST, EAVS_EDITOR_PANEL, EAVS_INSTRUCTION_TEXT
 
Fields inherited from interface com.sas.servlet.tbeans.dataselectors.propertyeditor.html.EntityAttributeValueSelectorStyleKeysInterface
ENTITYATTRIBUTEVALUESELECTOR_INSTRUCTION_TEXT, ENTITYATTRIBUTEVALUESELECTOR_LABEL, ENTITYATTRIBUTEVALUESELECTOR_PROPERTY_LIST, ENTITYATTRIBUTEVALUESELECTOR_PROPERTY_LIST_XP
 
Constructor Summary
EntityAttributeValueSelectorPanel()
          Constructs a new Entity Attribute Value selector panel.
EntityAttributeValueSelectorPanel(java.lang.String name)
          Constructs a new Entity Attribute Value selector panel with the given name.
 
Method Summary
 void contentsChanged(com.sas.collection.ContentsChangedEvent event)
          Reacts to ContentsChangedEvents.
protected  javax.swing.ListModel getAttributeList()
           
protected  java.lang.String getConstructionJavaScript()
           
 java.lang.String getRemoteScriptURL()
          Returns the URL used for processing the remote script form
protected  java.lang.StringBuffer getRemoteValues(java.lang.StringBuffer sb, java.lang.String property, java.util.List availableValues, java.util.List selectedValues, java.util.Map supplementalProperties)
           
 void setRemoteScriptURL(java.lang.String value)
          Sets the URL used for processing the remote script form
protected  void setRequiredJavaScriptEvents()
          Sets the required JavaScript events for the selector controls.
protected  void setRequiredProperties()
          Sets the name and ID properties on select components.
 void setSelectorModel(java.lang.Object model)
          Sets the selector's data model
 void write(java.io.PrintWriter out)
          Writes the custom attributes of the object.
 void writeRemoteScriptCommands(java.io.PrintWriter out)
          Writes out the remote script commands for updating the selector
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, writeRemoteScriptFrame, writeSelectorPanelFooter, writeSelectorPanelHeader
 
Methods inherited from class com.sas.servlet.tbeans.dataselectors.BaseSelectorPanel
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, 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, setLocaleDependentProperties, setName, setObjectData, setObjectDataProperty, setOutputTransform, setTagEpilog, setTagProlog, setVisible, toString, write, write, write
 
Methods inherited from interface com.sas.actionprovider.HttpActionProviderInterface
getRequest
 

Field Detail

RB_KEY

public static final java.lang.String RB_KEY
See Also:
Constant Field Values

DEFAULT_ENTITY_ATTRIBUTE_VALUE_SELECTOR_NAME

public static final java.lang.String DEFAULT_ENTITY_ATTRIBUTE_VALUE_SELECTOR_NAME
See Also:
Constant Field Values

DEFAULT_TEMPLATE_FILE_NAME

public static final java.lang.String DEFAULT_TEMPLATE_FILE_NAME
See Also:
Constant Field Values

DEFAULT_REMOTE_SCRIPT_URL

public static final java.lang.String DEFAULT_REMOTE_SCRIPT_URL
See Also:
Constant Field Values

instructionText

protected Label instructionText

attributeGroupLabel

protected Label attributeGroupLabel

attributeListBox

protected ListBoxView attributeListBox

editorContainer

protected PropertyEditorContainer editorContainer

editorIdMap

protected java.util.Map editorIdMap

valueMap

protected java.util.Map valueMap

remoteScriptForm

protected Form remoteScriptForm

remoteScriptURL

protected java.lang.String remoteScriptURL

serverError

protected java.lang.String serverError

selectedProperty

protected java.lang.String selectedProperty

currentProperty

protected java.lang.String currentProperty

availableValues

protected java.util.List availableValues

selectedValues

protected java.util.List selectedValues

supplementalProperties

protected java.util.Map supplementalProperties

propertyValueChanged

protected boolean propertyValueChanged

selectorModel

protected EntityAttributeValueModelInterface selectorModel
Constructor Detail

EntityAttributeValueSelectorPanel

public EntityAttributeValueSelectorPanel()
Constructs a new Entity Attribute Value selector panel. A unique name will be created for the new instance and the default components will be instantiated.


EntityAttributeValueSelectorPanel

public EntityAttributeValueSelectorPanel(java.lang.String name)
Constructs a new Entity Attribute Value selector panel with the given name. This constructor will be created the new instance and the default components will be instantiated.

Parameters:
name - the new name of the panel
Method Detail

getRemoteScriptURL

public java.lang.String getRemoteScriptURL()
Returns the URL used for processing the remote script form

Returns:
url of the remote script form

setRemoteScriptURL

public void setRemoteScriptURL(java.lang.String value)
Sets the URL used for processing the remote script form

Parameters:
value - the new url for the remote script form action

setRequiredProperties

protected void setRequiredProperties()
Sets the name and ID properties on select components. The proper name and ID are required for full compatibility with the ActionProvider framework and also any JavaScript that would be associated with these components. Changes to the selector name or the action provider would require another execution of this method to re-synch the components.


setRequiredJavaScriptEvents

protected void setRequiredJavaScriptEvents()
Sets the required JavaScript events for the selector controls.


write

public void write(java.io.PrintWriter out)
           throws java.io.IOException
Description copied from class: BaseCompositeTransformation
Writes the custom attributes of the object. All transformation beans should override this method and call SUPER.

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
Throws:
java.io.IOException - Thrown if some type of I/O error occurs

getConstructionJavaScript

protected java.lang.String getConstructionJavaScript()

writeSelectorForm

protected void writeSelectorForm(java.io.PrintWriter out,
                                 Form form)
                          throws java.io.IOException
Throws:
java.io.IOException

contentsChanged

public void contentsChanged(com.sas.collection.ContentsChangedEvent event)
Reacts to ContentsChangedEvents. The actual interpretation of the command occurs here.

Specified by:
contentsChanged in interface com.sas.collection.ContentsChangedListener
Overrides:
contentsChanged in class BaseSelectorPanel
Parameters:
event - the event

writeRemoteScriptCommands

public void writeRemoteScriptCommands(java.io.PrintWriter out)
                               throws java.io.IOException
Writes out the remote script commands for updating the selector

Overrides:
writeRemoteScriptCommands in class SelectorPanel
Parameters:
out - The PrintWriter
Throws:
java.io.IOException

getRemoteValues

protected java.lang.StringBuffer getRemoteValues(java.lang.StringBuffer sb,
                                                 java.lang.String property,
                                                 java.util.List availableValues,
                                                 java.util.List selectedValues,
                                                 java.util.Map supplementalProperties)

setSelectorModel

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

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

getAttributeList

protected javax.swing.ListModel getAttributeList()



Copyright © 2009 SAS Institute Inc. All Rights Reserved.