| java.lang.Object com.xoetrope.carousel.builder.XFormGeneratorInfo
XFormGeneratorInfo | public class XFormGeneratorInfo implements TableModel(Code) | | Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
the GNU Public License (GPL), please see license.txt for more details. If
you make commercial use of this software you must purchase a commercial
license from Xoetrope.
|
Method Summary | |
public boolean | addField(String name) | public void | addTableModelListener(TableModelListener l) | public Class> | getColumnClass(int columnIndex) | public int | getColumnCount() | public String | getColumnName(int columnIndex) | public String | getFieldName(int idx) | public HashMap<String, Object> | getFieldProperties(int idx) | public String | getGenerationParameter(String key) | public int | getNumEnabledFields() | public int | getNumFields() | public int | getNumProperties() | public int | getNumProperties(String fieldName) | public Object | getProperty(String fieldName, String propertyName) | public ArrayList<String> | getPropertyList() | public int | getRowCount() | public Object | getValueAt(int rowIndex, int columnIndex) | public boolean | isCellEditable(int rowIndex, int columnIndex) | public boolean | moveField(String fieldName, boolean moveUp) Moves the specified field. | protected int | moveFieldHlp(String fieldName, boolean moveUp) Moves the specified field one position up or down. | public boolean | removeField(String name) | public void | removeTableModelListener(TableModelListener l) | public void | setDefaultPropeties(HashMap<String, String> props) | public void | setGenerationParameter(String key, String value) | public boolean | setProperty(String fieldName, String propertyName, Object value) | public void | setValueAt(Object aValue, int rowIndex, int columnIndex) | public String | toString() |
XFormGeneratorInfo | public XFormGeneratorInfo()(Code) | | Creates a new instance of XFormGeneratorInfo
|
addField | public boolean addField(String name)(Code) | | Add a new field
Parameters: name - the field name true if the new field is added successfully or false otherwise |
getColumnClass | public Class> getColumnClass(int columnIndex)(Code) | | |
getColumnCount | public int getColumnCount()(Code) | | |
getColumnName | public String getColumnName(int columnIndex)(Code) | | |
getFieldName | public String getFieldName(int idx)(Code) | | Get the field name
Parameters: idx - index the name of the field |
getGenerationParameter | public String getGenerationParameter(String key)(Code) | | Get a form generation parameter
Parameters: key - the generation attribute key the generation attribute |
getNumEnabledFields | public int getNumEnabledFields()(Code) | | Gets the number of enabled fields
the number of enabled fields |
getNumFields | public int getNumFields()(Code) | | Gets the total number of fields
the number of fields |
getNumProperties | public int getNumProperties()(Code) | | Get the maximum number of properties for any field
the number of properties |
getNumProperties | public int getNumProperties(String fieldName)(Code) | | Get the number of properties for a given field
Parameters: fieldName - the name of the field the number of properties |
getProperty | public Object getProperty(String fieldName, String propertyName)(Code) | | Get the value of a property
Parameters: fieldName - the name of a field Parameters: propertyName - the property name the property value or null if no proeprty value is found |
getRowCount | public int getRowCount()(Code) | | |
getValueAt | public Object getValueAt(int rowIndex, int columnIndex)(Code) | | |
isCellEditable | public boolean isCellEditable(int rowIndex, int columnIndex)(Code) | | |
moveField | public boolean moveField(String fieldName, boolean moveUp)(Code) | | Moves the specified field.
Parameters: fieldName - the name of the field to be moved Parameters: moveUp - true to move the field up, false to move it down true if the field is moved successfully or false otherwise |
moveFieldHlp | protected int moveFieldHlp(String fieldName, boolean moveUp)(Code) | | Moves the specified field one position up or down.
Parameters: fieldName - the name of the field to be moved Parameters: moveUp - true - move up, false - move down -1 - field not found0 - field found but couldn't be moved1 - field found and moved |
removeField | public boolean removeField(String name)(Code) | | Remove a field
Parameters: name - the field name true if the new field is removed successfully or false otherwise |
setDefaultPropeties | public void setDefaultPropeties(HashMap<String, String> props)(Code) | | Set the default properties added when a new field is added
Parameters: props - the new set of default properties |
setGenerationParameter | public void setGenerationParameter(String key, String value)(Code) | | Set a form generation parameter
Parameters: key - the generation attribute key Parameters: value - the generation attribute |
setProperty | public boolean setProperty(String fieldName, String propertyName, Object value)(Code) | | Set the value of a property
Parameters: fieldName - the name of a field Parameters: propertyName - the property name Parameters: value - te new property value true if the property is set, otherwise false |
setValueAt | public void setValueAt(Object aValue, int rowIndex, int columnIndex)(Code) | | |
|
|