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

com.sas.swing.visuals.dataselectors.propertyeditor.RadioButtonEditorPanel
All Implemented Interfaces:
EditorPanelInterface, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible

public class RadioButtonEditorPanel
implements EditorPanelInterface

RadioButtonEditorPanel is the default boolean editor for the EntityAttributeValuePanel. It displays two radio buttons which correspond to a boolean true or false value.

See Also:
Serialized Form

Field Summary
static java.lang.String FALSE_VALUE
          Constant for specifying false
protected  javax.swing.JRadioButton falseButton
          JRadioButton component for specifying false
static java.lang.String RB_KEY
           
static java.lang.String TRUE_VALUE
          Constant for specifying true
protected  javax.swing.JRadioButton trueButton
          JRadioButton component for specifying true
 
Constructor Summary
RadioButtonEditorPanel()
          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 setModel(EntityAttributeValueModelInterface selectorAdapter, java.lang.String propertyName)
          Set the model for the editor.
 

Field Detail

RB_KEY

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

TRUE_VALUE

public static final java.lang.String TRUE_VALUE
Constant for specifying true


FALSE_VALUE

public static final java.lang.String FALSE_VALUE
Constant for specifying false


falseButton

protected javax.swing.JRadioButton falseButton
JRadioButton component for specifying false


trueButton

protected javax.swing.JRadioButton trueButton
JRadioButton component for specifying true

Constructor Detail

RadioButtonEditorPanel

public RadioButtonEditorPanel()
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



Copyright © 2009 SAS Institute Inc. All Rights Reserved.