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

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

public class MultipleSelectionHelper
extends PropertyHelper

A helper to help in the manipulation of multiple components

Copyright (c) Formaria Ltd., 2002-2003

$Revision: 1.3 $


Field Summary
protected static int HEIGHT_VALUE
           
protected static int LEFT_VALUE
           
protected static int numBasicProperties
           
protected static java.lang.String[] propertyName
           
protected static int TOP_VALUE
           
protected static int WIDTH_VALUE
           
 
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
MultipleSelectionHelper()
          A helper for multiple component types
 
Method Summary
 java.lang.String getClassName()
          Get the class name for this component type
 java.lang.String getComponentType()
          Get the friendly type name for this component
 java.lang.String getPropertyValue(java.awt.Component comp, int i)
          Get the value of the property exposed by the component
 boolean setPropertyValue(PageResource pageResource, java.lang.Object obj, int i, java.lang.Object objValue)
          Set the value of the property exposed by the component
 void setSelectedComponents(IPagePanel cpp, java.util.Vector comps)
           
 
Methods inherited from class org.formaria.editor.project.pages.components.PropertyHelper
accepts, addPropertyType, allowsChildren, cleanupClassName, getBuilder, getCellEditor, 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
 

Field Detail

propertyName

protected static final java.lang.String[] propertyName

numBasicProperties

protected static final int numBasicProperties
See Also:
Constant Field Values

LEFT_VALUE

protected static final int LEFT_VALUE
See Also:
Constant Field Values

TOP_VALUE

protected static final int TOP_VALUE
See Also:
Constant Field Values

WIDTH_VALUE

protected static final int WIDTH_VALUE
See Also:
Constant Field Values

HEIGHT_VALUE

protected static final int HEIGHT_VALUE
See Also:
Constant Field Values
Constructor Detail

MultipleSelectionHelper

public MultipleSelectionHelper()
A helper for multiple component types

Method Detail

getClassName

public java.lang.String getClassName()
Get the class name for this component type

Overrides:
getClassName in class PropertyHelper
Returns:

getComponentType

public java.lang.String getComponentType()
Get the friendly type name for this component

Overrides:
getComponentType in class PropertyHelper
Returns:
"Multiple"

setSelectedComponents

public void setSelectedComponents(IPagePanel cpp,
                                  java.util.Vector comps)

getPropertyValue

public java.lang.String getPropertyValue(java.awt.Component comp,
                                         int i)
Get the value of the property exposed by the component

Parameters:
comp - the component instance
i - the component property index
Returns:
the value

setPropertyValue

public boolean setPropertyValue(PageResource pageResource,
                                java.lang.Object obj,
                                int i,
                                java.lang.Object objValue)
Set the value of the property exposed by the component

Parameters:
obj - the component instance
i - the component property index
objValue - the value
Returns:
true if all is OK