|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.formaria.editor.project.pages.components.PropertyHelper
org.formaria.editor.project.pages.components.RegisteredComponentPropertyHelper
public class RegisteredComponentPropertyHelper
A property helper that uses the configuration information of a registered component to setup a helper.
Copyright (c) Formaria Ltd., 2002-2003
$Revision: 1.8 $
| Field Summary | |
|---|---|
protected EditorComponentAdapter |
componentAdapter
|
| 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 | |
|---|---|
RegisteredComponentPropertyHelper(EditorComponentAdapter ca)
|
|
| Method Summary | |
|---|---|
javax.swing.table.TableCellEditor |
getCellEditor(javax.swing.JTable table,
java.lang.Object comp,
EditorProject currentProject,
java.lang.String propertyName,
int row,
int col,
java.lang.Object value)
Get a table cell editor |
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 |
getFieldValueViaReflection(java.lang.String fieldName,
java.lang.Object comp)
Get a property using refelction instead of the property helper. |
protected java.lang.String |
hasPropertyType(java.lang.String name)
Scan the list of properties checking for a matching property name (ignoring case). |
void |
resetProperties()
Add the proerties again, first clearing the list |
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, getClassName, getComponentType, getDefaultExtension, getDefaultValue, 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, setRestrictsSize, setSwing, setUsesContentFile |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EditorComponentAdapter componentAdapter
| Constructor Detail |
|---|
public RegisteredComponentPropertyHelper(EditorComponentAdapter ca)
| Method Detail |
|---|
public void resetProperties()
protected java.lang.String hasPropertyType(java.lang.String name)
returns - the actual property name or null if not found
public boolean setPropertyValue(PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName,
java.lang.Object value)
setPropertyValue in class PropertyHelperpageResource - the page resource to which this component belongscomp - the component instancepropertyName - the component property name
public java.lang.String getDisplayPropertyValue(PageResource pageResource,
java.lang.Object comp,
java.lang.String propertyName)
getDisplayPropertyValue in class PropertyHelperpageResource - the page resource to which this component belongscomp - the component instancepropertyName - the component property name
public javax.swing.table.TableCellEditor getCellEditor(javax.swing.JTable table,
java.lang.Object comp,
EditorProject currentProject,
java.lang.String propertyName,
int row,
int col,
java.lang.Object value)
getCellEditor in class PropertyHelpertable - the table being editecomp - the current componentcurrentProject - the current projectpropertyName - the property namerow - the current rowcol - the current columnthe - current value
protected java.lang.Object getFieldValueViaReflection(java.lang.String fieldName,
java.lang.Object comp)
fieldName - the method namecomp - the component being modified
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||