| org.mmbase.core.CoreField org.mmbase.module.corebuilders.FieldDefs
FieldDefs | public class FieldDefs extends org.mmbase.core.CoreField (Code) | | One of the core objects. It is not itself a builder, but is used by builders. Defines one field
of a object type / builder.
author: Daniel Ockeloen author: Hans Speijer author: Pierre van Rooden version: $Id: FieldDefs.java,v 1.60 2008/02/03 17:33:57 nklasens Exp $ See Also: org.mmbase.bridge.FieldCoreField |
Inner Class :protected class LocaleToStringMap extends AbstractMap | |
Constructor Summary | |
public | FieldDefs(String name, int type, int listItemType, int state, DataType<? extends Object> dataType) | public | FieldDefs(String guiName, String guiType, int searchPos, int listPos, String name, int type) Constructor for FieldDefs with partially initialized fields.
Parameters: guiName - the default GUIName for a field Parameters: guiType - the GUI type (i.e. | public | FieldDefs(String guiName, String guiType, int searchPos, int listPos, String name, int type, int guiPos, int state) Constructor for FieldDefs with partially initialized fields.
Parameters: guiName - the default GUIName for a field Parameters: guiType - the GUI type (i.e. |
DBSTATE_PERSISTENT | final public static int DBSTATE_PERSISTENT(Code) | | |
DBSTATE_SYSTEM | final public static int DBSTATE_SYSTEM(Code) | | |
DBSTATE_UNKNOWN | final public static int DBSTATE_UNKNOWN(Code) | | |
DBSTATE_VIRTUAL | final public static int DBSTATE_VIRTUAL(Code) | | |
ORDER_CREATE | final public static int ORDER_CREATE(Code) | | |
ORDER_EDIT | final public static int ORDER_EDIT(Code) | | |
ORDER_LIST | final public static int ORDER_LIST(Code) | | |
ORDER_SEARCH | final public static int ORDER_SEARCH(Code) | | |
FieldDefs | public FieldDefs(String guiName, String guiType, int searchPos, int listPos, String name, int type)(Code) | | Constructor for FieldDefs with partially initialized fields.
Parameters: guiName - the default GUIName for a field Parameters: guiType - the GUI type (i.e. "integer' or 'field') Parameters: searchPos - position in the editor for this field when searching Parameters: listPos - position in the editor for this field when listing Parameters: name - the actual name of the field in the database Parameters: type - the basic MMBase type of the field |
FieldDefs | public FieldDefs(String guiName, String guiType, int searchPos, int listPos, String name, int type, int guiPos, int state)(Code) | | Constructor for FieldDefs with partially initialized fields.
Parameters: guiName - the default GUIName for a field Parameters: guiType - the GUI type (i.e. "integer' or 'field') Parameters: searchPos - position in the editor for this field when searching Parameters: listPos - position in the editor for this field when listing Parameters: name - the actual name of the field in the database Parameters: type - the basic MMBase type of the field Parameters: guiPos - position in the editor for this field when editing Parameters: state - the state of the field (persistent, virtual, etc.) |
getDBType | public int getDBType()(Code) | | Retrieves the basic MMBase type of the field.
The type, this is one of the values defined in this class.FieldDefs.getDataType |
setDBKey | public void setDBKey(boolean value)(Code) | | Set whether the field is a key and thus needs to be 'unique'.
Parameters: value - the value to setCoreField.setUnique |
setDBNotNull | public void setDBNotNull(boolean value)(Code) | | Set whether the field can be left blank.
Parameters: value - the value to setFieldDefs.getDataType |
setDBState | public void setDBState(String value)(Code) | | Set the basic MMBase state of the field, using the state description
Parameters: value - the name of the stateFieldDefs.setState |
setDescription | public void setDescription(String lang, String value)(Code) | | Set the description of the field for a specified langauge.
Parameters: lang - the language to set the description for Parameters: value - the value to setFieldDefs.getLocalizedDescription |
setGUIList | public void setGUIList(int value)(Code) | | Set the position of the field when listing.
A value of -1 indicates teh field is unavailable in a list.
Parameters: value - the value to setFieldDefs.setListPosition |
setGUIName | public void setGUIName(String lang, String value)(Code) | | SetUI the GUI name of the field for a specified langauge.
Parameters: lang - the language to set the name for Parameters: value - the value to setFieldDefs.getDataType |
setGUIPos | public void setGUIPos(int value)(Code) | | Set the position of the field when editing.
A value of -1 indicates the field cannot be edited.
Parameters: value - the value to setFieldDefs.setEditPosition |
setGUISearch | public void setGUISearch(int value)(Code) | | Set the position of the field when searching.
A value of -1 indicates teh field is unavailable during search.
Parameters: value - the value to setFieldDefs.setSearchPosition |
sort | public static void sort(List<FieldDefs> fielddefs)(Code) | | Sorts a list with FieldDefs objects, using the default order (ORDER_CREATE)
Parameters: fielddefs - the list to sort |
sort | public static void sort(List<CoreField> fielddefs, int order)(Code) | | Sorts a list with FieldDefs objects, using the specified order
Parameters: fielddefs - the list to sort Parameters: order - one of ORDER_CREATE, ORDER_EDIT, ORDER_LIST,ORDER_SEARCHFields.sort |
|
|