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

java.lang.Object
  extended by org.formaria.editor.project.pages.components.PropertyHelper
      extended by org.formaria.editor.project.pages.components.GenericPropertyHelper

public class GenericPropertyHelper
extends PropertyHelper

A helper class to describe the properties of an individual component

Copyright (c) Formaria Ltd., 2002-2006

$Revision: 1.33 $


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
GenericPropertyHelper()
          Creates a new instance of GenericPropertyHelper
 
Method Summary
 void addDefaultValues(java.lang.String propName, java.lang.String defValue)
          Add a set of default values for a property
 void addProperties(java.lang.String[] propNames)
          Add the named properties
 void addProperty(java.lang.String propName)
          Add the named properties
 void setClassName(java.lang.String name)
          Set the name of the class that this helper manages
 void setComponentType(java.lang.String type)
          Set the component type name e.g.
 
Methods inherited from class org.formaria.editor.project.pages.components.PropertyHelper
accepts, addPropertyType, allowsChildren, cleanupClassName, getBuilder, getCellEditor, getClassName, getComponentType, getDefaultExtension, getDefaultValue, getDisplayPropertyValue, getEnabled, getEventClass, getEventMask, getExpression, getFileDescription, getFileExtensions, getListItems, getNumBuiltinProperties, getNumProperties, getOutputPropertyValue, getProperties, getProperty, getProperty, getPropertyDisplayName, getPropertyName, getPropertyTag, getPropertyType, getPropertyTypeName, getPropertyValue, isLangProperty, isLayoutOwner, isListProperty, isReadOnly, isSwing, restrictsSize, setAllowsChildren, setComponent, setCopiedProperties, setExpression, setFileExtensions, setPropertyValue, setRestrictsSize, setSwing, setUsesContentFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericPropertyHelper

public GenericPropertyHelper()
Creates a new instance of GenericPropertyHelper

Method Detail

setClassName

public void setClassName(java.lang.String name)
Set the name of the class that this helper manages

Parameters:
name - the class name

setComponentType

public void setComponentType(java.lang.String type)
Set the component type name e.g. "Button"

Parameters:
type - the type name

addProperties

public void addProperties(java.lang.String[] propNames)
Add the named properties

Parameters:
propNames - an array of property names

addProperty

public void addProperty(java.lang.String propName)
Add the named properties

Parameters:
propName - an array of property names

addDefaultValues

public void addDefaultValues(java.lang.String propName,
                             java.lang.String defValue)
Add a set of default values for a property

Parameters:
propName - the property name
defValue - the default propeprty value