Package org.apache.ofbiz.widget.model
Class ModelFormField.DisplayEntityField
java.lang.Object
org.apache.ofbiz.widget.model.FieldInfo
org.apache.ofbiz.widget.model.ModelFormField.DisplayField
org.apache.ofbiz.widget.model.ModelFormField.DisplayEntityField
- Enclosing class:
- ModelFormField
Models the <display-entity> element.
- See Also:
-
widget-form.xsd
-
Field Summary
Fields inherited from class org.apache.ofbiz.widget.model.FieldInfo
CHECK, CONTAINER, DATE_TIME, DATEQBE, DISPLAY, DISPLAY_ENTITY, DROP_DOWN, FILE, FORM, GRID, HIDDEN, HYPERLINK, IGNORED, IMAGE, LOOKUP, MENU, PASSWORD, RADIO, RANGEQBE, RESET, SCREEN, SOURCE_AUTO_ENTITY, SOURCE_AUTO_SERVICE, SOURCE_EXPLICIT, SUBMIT, TEXT, TEXTAREA, TEXTQBE
-
Constructor Summary
ConstructorDescriptionDisplayEntityField
(int fieldSource, ModelFormField modelFormField) DisplayEntityField
(ModelFormField modelFormField) DisplayEntityField
(Element element, ModelFormField modelFormField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ModelFieldVisitor visitor) asHyperlink
(Map<String, Object> context) Convert the display entity as a Hyperlink for the renderingcopy
(ModelFormField modelFormField) Returns a new instance of this object.boolean
getCache()
Gets cache.getDescription
(Map<String, Object> context) Gets description.Gets entity name.Gets key field name.Gets sub hyperlink.boolean
needConvertAsHyperlink
(Map<String, Object> context) Analyze if a sub hyperlink is associate to the display entity with an empty descriptionMethods inherited from class org.apache.ofbiz.widget.model.ModelFormField.DisplayField
getAlsoHidden, getCurrency, getDate, getDefaultValue, getDefaultValue, getDescription, getImageLocation, getImageLocation, getInPlaceEditor, getSize, getType, renderFieldString
Methods inherited from class org.apache.ofbiz.widget.model.FieldInfo
findFieldTypeFromName, getFieldSource, getFieldType, getModelFormField, isInputFieldType, toString
-
Constructor Details
-
DisplayEntityField
-
DisplayEntityField
-
DisplayEntityField
-
-
Method Details
-
accept
- Overrides:
accept
in classModelFormField.DisplayField
- Throws:
Exception
-
copy
Description copied from class:FieldInfo
Returns a new instance of this object.- Overrides:
copy
in classModelFormField.DisplayField
-
getCache
public boolean getCache()Gets cache.- Returns:
- the cache
-
getDescription
Description copied from class:ModelFormField.DisplayField
Gets description.- Overrides:
getDescription
in classModelFormField.DisplayField
- Parameters:
context
- the context- Returns:
- the description
-
getEntityName
Gets entity name.- Returns:
- the entity name
-
getKeyFieldName
Gets key field name.- Returns:
- the key field name
-
getSubHyperlink
Gets sub hyperlink.- Returns:
- the sub hyperlink
-
needConvertAsHyperlink
Analyze if a sub hyperlink is associate to the display entity with an empty description- Parameters:
context
-- Returns:
-
asHyperlink
Convert the display entity as a Hyperlink for the rendering- Parameters:
context
-- Returns:
-