org.formaria.editor.project.pages.components.properties
Class LangProperty

java.lang.Object
  extended by org.formaria.editor.project.pages.components.properties.PlainProperty
      extended by org.formaria.editor.project.pages.components.properties.LangProperty

public class LangProperty
extends PlainProperty

Processes language properties in the editor

Copyright (c) Formaria Ltd., 2002-2006

$Revision: 1.33 $


Field Summary
protected  boolean first
           
protected  boolean hasStrings
           
protected  LangDetails langDetails
           
 
Fields inherited from class org.formaria.editor.project.pages.components.properties.PlainProperty
argType, BOOLEAN_PROPERTY, COMPONENT_NAME_PROPERTY, currentProject, DATA_PROPERTY, DOUBLE_PROPERTY, EVENT_HANDLER_PROPERTY, getterMethod, getterName, IMAGE_NAME_PROPERTY, INT_LIST_PROPERTY, INTEGER_PROPERTY, isEnabled, LANG_PROPERTY, LAYOUT_CONSTRAINT_PROPERTY, LAYOUT_PROPERTY, LIST_PROPERTY, PLAIN_PROPERTY, propertyName, setterMethod, setterName, STYLE_PROPERTY, VALIDATION_PROPERTY
 
Constructor Summary
LangProperty(java.lang.String name, java.lang.String getter, java.lang.String setter)
          Creates a new instance of LangProperty
 
Method Summary
 javax.swing.table.TableCellEditor getCellEditor(javax.swing.JTable table, java.lang.Object comp, EditorProject currentProject, PropertyHelper propertyHelper, java.lang.String propertyName, int row, int col, java.lang.Object value)
          Get a table cell editor
 int getPropertyType()
           
 boolean setPropertyValue(PropertyHelper propertyHelper, 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.properties.PlainProperty
getBuilder, getDisplayPropertyValue, getEnabled, getExpression, getExpression, getIsCloneable, getOutputPropertyValue, getPropertyName, getPropertyValue, getViaReflection, isDataBindingProperty, setEnabled, setExpression, setExpression, setGetterName, setSetterName, setViaReflection, setViaReflection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

langDetails

protected LangDetails langDetails

first

protected boolean first

hasStrings

protected boolean hasStrings
Constructor Detail

LangProperty

public LangProperty(java.lang.String name,
                    java.lang.String getter,
                    java.lang.String setter)
Creates a new instance of LangProperty

Method Detail

getCellEditor

public javax.swing.table.TableCellEditor getCellEditor(javax.swing.JTable table,
                                                       java.lang.Object comp,
                                                       EditorProject currentProject,
                                                       PropertyHelper propertyHelper,
                                                       java.lang.String propertyName,
                                                       int row,
                                                       int col,
                                                       java.lang.Object value)
Description copied from class: PlainProperty
Get a table cell editor

Overrides:
getCellEditor in class PlainProperty
Parameters:
table - the table being edited
comp - the current component
currentProject - the current project
propertyHelper - the owner propertyHelper
propertyName - the property name
row - the current row
col - the current column

setPropertyValue

public boolean setPropertyValue(PropertyHelper propertyHelper,
                                PageResource pageResource,
                                java.lang.Object comp,
                                java.lang.String propertyName,
                                java.lang.Object value)
Description copied from class: PlainProperty
Set the value of the property exposed by the component

Overrides:
setPropertyValue in class PlainProperty
Parameters:
propertyHelper - the helper that is using this property
pageResource - the page resource to which this component belongs
comp - the component instance
propertyName - the name of the property
Returns:
true if the property is set OK

getPropertyType

public int getPropertyType()
Overrides:
getPropertyType in class PlainProperty