org.formaria.editor.project.pages.components
Class RadioButtonHelper

java.lang.Object
  extended by org.formaria.editor.project.pages.components.PropertyHelper
      extended by org.formaria.editor.project.pages.components.RadioButtonHelper
Direct Known Subclasses:
CheckBoxHelper

public class RadioButtonHelper
extends PropertyHelper

A helper for the RadioButton types

Copyright (c) Formaria Ltd., 2002-2003

$Revision: 1.6 $


Field Summary
 
Fields inherited from class org.formaria.editor.project.pages.components.PropertyHelper
alignmentOptionIds, alignmentOptions, allowsChildren, builtinProperties, className, componentType, defaultValues, defExt, extensions, fileTypeDesc, horzScrollOptionIds, isSwing, lblAlignmentOptionIds, lblAlignmentOptions, numBuiltinProperties, properties, propertyTypes, restrictsSize, scrollOptions, usesContentFile, vertScrollOptionIds
 
Constructor Summary
RadioButtonHelper()
           
 
Method Summary
protected  java.lang.String getAlignmentValue(int id)
           
 java.lang.String getDisplayPropertyValue(PageResource pageResource, java.lang.Object comp, java.lang.String propertyName)
          Get the value of the property displayed by the editor
protected  java.lang.Object getOppositeAlignment(java.lang.String value)
          Swap the alignment values
 java.lang.String getOutputPropertyValue(PageResource pageResource, java.lang.Object comp, java.lang.String propertyName)
          Get the value of the property written to the XML file
 java.lang.String getPropertyValue(PageResource pageResource, java.lang.Object comp, java.lang.String propertyName)
          Get the value of the property exposed by the component
 boolean setPropertyValue(PageResource pageResource, java.lang.Object comp, java.lang.String propertyName, java.lang.Object value)
          Set the value of the property exposed by the component
 
Methods inherited from class org.formaria.editor.project.pages.components.PropertyHelper
accepts, addPropertyType, allowsChildren, cleanupClassName, getBuilder, getCellEditor, getClassName, getComponentType, getDefaultExtension, getDefaultValue, getEnabled, getEventClass, getEventMask, getExpression, getFileDescription, getFileExtensions, getListItems, getNumBuiltinProperties, getNumProperties, getProperties, getProperty, getProperty, getPropertyDisplayName, getPropertyName, getPropertyTag, getPropertyType, getPropertyTypeName, isLangProperty, isLayoutOwner, isListProperty, isReadOnly, isSwing, restrictsSize, setAllowsChildren, setComponent, setCopiedProperties, setExpression, setFileExtensions, setRestrictsSize, setSwing, setUsesContentFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadioButtonHelper

public RadioButtonHelper()
Method Detail

setPropertyValue

public boolean setPropertyValue(PageResource pageResource,
                                java.lang.Object comp,
                                java.lang.String propertyName,
                                java.lang.Object value)
Set the value of the property exposed by the component

Overrides:
setPropertyValue in class PropertyHelper
Parameters:
pageResource - the page resource to which this component belongs
comp - the component instance
propertyName - the component property name
Returns:
the true is all is OK

getPropertyValue

public java.lang.String getPropertyValue(PageResource pageResource,
                                         java.lang.Object comp,
                                         java.lang.String propertyName)
Get the value of the property exposed by the component

Overrides:
getPropertyValue in class PropertyHelper
Parameters:
pageResource - the page resource to which this component belongs
comp - the component instance
propertyName - the component property name
Returns:
the value

getDisplayPropertyValue

public java.lang.String getDisplayPropertyValue(PageResource pageResource,
                                                java.lang.Object comp,
                                                java.lang.String propertyName)
Get the value of the property displayed by the editor

Overrides:
getDisplayPropertyValue in class PropertyHelper
Parameters:
pageResource - the page resource to which this component belongs
comp - the component instance
propertyName - the component property name
Returns:
the value

getOutputPropertyValue

public java.lang.String getOutputPropertyValue(PageResource pageResource,
                                               java.lang.Object comp,
                                               java.lang.String propertyName)
Get the value of the property written to the XML file

Overrides:
getOutputPropertyValue in class PropertyHelper
Parameters:
pageResource - the page resource to which this component belongs
comp - the component instance
propertyName - the component property name
Returns:
the value

getOppositeAlignment

protected java.lang.Object getOppositeAlignment(java.lang.String value)
Swap the alignment values

Parameters:
the - source alignment
Returns:
the oppposite alignment

getAlignmentValue

protected java.lang.String getAlignmentValue(int id)