com.sas.swing.visuals.dataselectors.propertyeditor
Class SingleSelectionListEditorPanel

com.sas.swing.visuals.dataselectors.propertyeditor.SingleSelectionListEditorPanel
All Implemented Interfaces:
EditorPanelInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class SingleSelectionListEditorPanel
implements EditorPanelInterface, java.beans.PropertyChangeListener

SingleSelectionListEditorPanel is the default single-selection-from-a-list editor for the EntityAttributeValuePanel. It displays a JList component for selecting one value in a list.

See Also:
Serialized Form

Field Summary
protected  boolean newModel
          boolean value indicating whether a list model has been created
protected  java.util.Map propertyModelMap
          Name/value pairs (property name/list model)
protected  javax.swing.JList singleList
          Model for this component
 
Constructor Summary
SingleSelectionListEditorPanel()
          Constructor
 
Method Summary
 java.lang.Object getValue()
          Returns the property value contained in the editor.
protected  javax.swing.JPanel makePanel()
          Internal method for constructing the panel
 void propertyChange(java.beans.PropertyChangeEvent evt)
          Process a PropertyChangeEvent
 void setModel(EntityAttributeValueModelInterface selectorAdapter, java.lang.String propertyName)
          Set the model for the editor.
 

Field Detail

singleList

protected javax.swing.JList singleList
Model for this component


propertyModelMap

protected java.util.Map propertyModelMap
Name/value pairs (property name/list model)


newModel

protected boolean newModel
boolean value indicating whether a list model has been created

Constructor Detail

SingleSelectionListEditorPanel

public SingleSelectionListEditorPanel()
Constructor

Method Detail

makePanel

protected javax.swing.JPanel makePanel()
Internal method for constructing the panel


setModel

public void setModel(EntityAttributeValueModelInterface selectorAdapter,
                     java.lang.String propertyName)
Description copied from interface: EditorPanelInterface
Set the model for the editor.

Specified by:
setModel in interface EditorPanelInterface
Parameters:
selectorAdapter - instance of com.sas.dataselectors.propertyeditor.EntityAttributeValueSelectorAdapter
propertyName - name of the property

getValue

public java.lang.Object getValue()
Description copied from interface: EditorPanelInterface
Returns the property value contained in the editor.

Specified by:
getValue in interface EditorPanelInterface
Returns:
property value

propertyChange

public void propertyChange(java.beans.PropertyChangeEvent evt)
Process a PropertyChangeEvent

Specified by:
propertyChange in interface java.beans.PropertyChangeListener
Parameters:
evt - instance of PropertyChangeEvent



Copyright © 2009 SAS Institute Inc. All Rights Reserved.