| java.lang.Object org.conform.wings.ComponentFactory
ComponentFactory | public class ComponentFactory (Code) | | // TODO: make this a DefaultComponentFactory implementing ComponentFactory
author: gabriel pantazi |
Method Summary | |
public void | configureComponent(PropertyMeta propertyMeta, SComponent component, boolean errorneus) | public void | configureLabel(PropertyMeta propertyMeta, SLabel label, boolean errorneus) | public SComponent | createComponent(BeanMeta beanMeta, BeanData beanData, String propertyName) Creates a graphical component based on the meta information and on data information for
the specified property name. | public SLabel | createLabel(BeanMeta beanMeta, String name) Creates the apropriate label for the specified property name. | public SComponent | createReadOnlyComponent(BeanMeta beanMeta, BeanData beanData, String name) | public XTableColumn | createTableColumn(BeanMeta beanMeta, String name, int modelIndex) Creates a STableColumn for the specified property name.
Parameters: beanMeta - the whole meta information Parameters: name - the property name for which the STableColumn is generated. Parameters: modelIndex - Sets the cmp2 index for this column. | public List | createTableColumns(BeanMeta beanMeta) Creates a List of STableColum(s) based on the provided BeanMeta. | public Editor | getEditor(PropertyMeta property) | public Editor | getReadOnlyEditor(PropertyMeta property) | protected String | getWidth(PropertyMeta propertyMeta) | public void | setEditorFactory(EditorFactory editorFactory) | public void | setResourceProvider(ResourceProvider resourceProvider) |
configureComponent | public void configureComponent(PropertyMeta propertyMeta, SComponent component, boolean errorneus)(Code) | | |
configureLabel | public void configureLabel(PropertyMeta propertyMeta, SLabel label, boolean errorneus)(Code) | | |
createComponent | public SComponent createComponent(BeanMeta beanMeta, BeanData beanData, String propertyName)(Code) | | Creates a graphical component based on the meta information and on data information for
the specified property name.
Parameters: beanMeta - the whole meta information for a certain class used to initialize the meta Parameters: beanData - the whole data information Parameters: propertyName - property name used to generate the component for the SComponent generated for the specified property. |
createLabel | public SLabel createLabel(BeanMeta beanMeta, String name)(Code) | | Creates the apropriate label for the specified property name. If the label is not set (null)
a label with the property name will be returned.
Parameters: beanMeta - the meta information with localized label and micro help Parameters: name - property name used to generate the label for. the SLabel generated for the specified property. |
createTableColumn | public XTableColumn createTableColumn(BeanMeta beanMeta, String name, int modelIndex)(Code) | | Creates a STableColumn for the specified property name.
Parameters: beanMeta - the whole meta information Parameters: name - the property name for which the STableColumn is generated. Parameters: modelIndex - Sets the cmp2 index for this column. The cmp2 index is theindex of the column in the cmp2 that will be displayed by thisSTableColumn . As the STableColumn is moved around in the view the cmp2 index remains constant. the STableColumn properly initialized based on the given property name and meta information. |
createTableColumns | public List createTableColumns(BeanMeta beanMeta)(Code) | | Creates a List of STableColum(s) based on the provided BeanMeta. For each property meta from bean meta
a new STableColumn will be added to the list.
Parameters: beanMeta - the whole meta information a List of STableColumn(s) |
|
|