Package org.apache.ofbiz.widget.model
Class FieldInfo
- java.lang.Object
-
- org.apache.ofbiz.widget.model.FieldInfo
-
- Direct Known Subclasses:
ModelFormField.ContainerField
,ModelFormField.DateTimeField
,ModelFormField.DisplayField
,ModelFormField.FieldInfoWithOptions
,ModelFormField.FormField
,ModelFormField.GridField
,ModelFormField.HiddenField
,ModelFormField.HyperlinkField
,ModelFormField.IgnoredField
,ModelFormField.ImageField
,ModelFormField.MenuField
,ModelFormField.ResetField
,ModelFormField.ScreenField
,ModelFormField.SubmitField
,ModelFormField.TextareaField
,ModelFormField.TextField
public abstract class FieldInfo extends java.lang.Object
Form field abstract class.
-
-
Field Summary
Fields Modifier and Type Field Description static int
CHECK
static int
CONTAINER
static int
DATE_TIME
static int
DATEQBE
static int
DISPLAY
static int
DISPLAY_ENTITY
static int
DROP_DOWN
static int
FILE
static int
FORM
static int
GRID
static int
HIDDEN
static int
HYPERLINK
static int
IGNORED
static int
IMAGE
static int
LOOKUP
static int
MENU
static java.lang.String
module
static int
PASSWORD
static int
RADIO
static int
RANGEQBE
static int
RESET
static int
SCREEN
static int
SOURCE_AUTO_ENTITY
static int
SOURCE_AUTO_SERVICE
static int
SOURCE_EXPLICIT
static int
SUBMIT
static int
TEXT
static int
TEXTAREA
static int
TEXTQBE
-
Constructor Summary
Constructors Modifier Constructor Description protected
FieldInfo(int fieldSource, int fieldType, ModelFormField modelFormField)
Value Constructorprotected
FieldInfo(org.w3c.dom.Element element, ModelFormField modelFormField)
XML Constructor
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(ModelFieldVisitor visitor)
abstract FieldInfo
copy(ModelFormField modelFormField)
Returns a new instance of this object.static int
findFieldTypeFromName(java.lang.String name)
int
getFieldSource()
int
getFieldType()
ModelFormField
getModelFormField()
static boolean
isInputFieldType(java.lang.Integer fieldType)
abstract void
renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer)
java.lang.String
toString()
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
DISPLAY
public static final int DISPLAY
- See Also:
- Constant Field Values
-
HYPERLINK
public static final int HYPERLINK
- See Also:
- Constant Field Values
-
TEXT
public static final int TEXT
- See Also:
- Constant Field Values
-
TEXTAREA
public static final int TEXTAREA
- See Also:
- Constant Field Values
-
DATE_TIME
public static final int DATE_TIME
- See Also:
- Constant Field Values
-
DROP_DOWN
public static final int DROP_DOWN
- See Also:
- Constant Field Values
-
CHECK
public static final int CHECK
- See Also:
- Constant Field Values
-
RADIO
public static final int RADIO
- See Also:
- Constant Field Values
-
SUBMIT
public static final int SUBMIT
- See Also:
- Constant Field Values
-
RESET
public static final int RESET
- See Also:
- Constant Field Values
-
HIDDEN
public static final int HIDDEN
- See Also:
- Constant Field Values
-
IGNORED
public static final int IGNORED
- See Also:
- Constant Field Values
-
TEXTQBE
public static final int TEXTQBE
- See Also:
- Constant Field Values
-
DATEQBE
public static final int DATEQBE
- See Also:
- Constant Field Values
-
RANGEQBE
public static final int RANGEQBE
- See Also:
- Constant Field Values
-
LOOKUP
public static final int LOOKUP
- See Also:
- Constant Field Values
-
FILE
public static final int FILE
- See Also:
- Constant Field Values
-
PASSWORD
public static final int PASSWORD
- See Also:
- Constant Field Values
-
IMAGE
public static final int IMAGE
- See Also:
- Constant Field Values
-
DISPLAY_ENTITY
public static final int DISPLAY_ENTITY
- See Also:
- Constant Field Values
-
CONTAINER
public static final int CONTAINER
- See Also:
- Constant Field Values
-
MENU
public static final int MENU
- See Also:
- Constant Field Values
-
FORM
public static final int FORM
- See Also:
- Constant Field Values
-
GRID
public static final int GRID
- See Also:
- Constant Field Values
-
SCREEN
public static final int SCREEN
- See Also:
- Constant Field Values
-
SOURCE_EXPLICIT
public static final int SOURCE_EXPLICIT
- See Also:
- Constant Field Values
-
SOURCE_AUTO_ENTITY
public static final int SOURCE_AUTO_ENTITY
- See Also:
- Constant Field Values
-
SOURCE_AUTO_SERVICE
public static final int SOURCE_AUTO_SERVICE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FieldInfo
protected FieldInfo(org.w3c.dom.Element element, ModelFormField modelFormField)
XML Constructor
-
FieldInfo
protected FieldInfo(int fieldSource, int fieldType, ModelFormField modelFormField)
Value Constructor
-
-
Method Detail
-
findFieldTypeFromName
public static int findFieldTypeFromName(java.lang.String name)
-
isInputFieldType
public static boolean isInputFieldType(java.lang.Integer fieldType)
-
accept
public abstract void accept(ModelFieldVisitor visitor) throws java.lang.Exception
- Throws:
java.lang.Exception
-
copy
public abstract FieldInfo copy(ModelFormField modelFormField)
Returns a new instance of this object.- Parameters:
modelFormField
-
-
getFieldSource
public int getFieldSource()
-
getFieldType
public int getFieldType()
-
getModelFormField
public ModelFormField getModelFormField()
-
renderFieldString
public abstract void renderFieldString(java.lang.Appendable writer, java.util.Map<java.lang.String,java.lang.Object> context, FormStringRenderer formStringRenderer) throws java.io.IOException
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-