Package org.apache.ofbiz.widget.model
Class ModelForm.UpdateArea
java.lang.Object
org.apache.ofbiz.widget.model.ModelForm.UpdateArea
- Enclosing class:
- ModelForm
The UpdateArea class implements the
<on-event-update-area>
elements used in form widgets.-
Constructor Summary
ConstructorsConstructorDescriptionUpdateArea
(String eventType, String areaId, String areaTarget) String constructor.UpdateArea
(String eventType, String areaId, String areaTarget, List<CommonWidgetModels.Parameter> parameterList) String constructor.UpdateArea
(Element updateAreaElement) UpdateArea
(Element updateAreaElement, String defaultServiceName, String defaultEntityName) XML constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static ModelForm.UpdateArea
fromJwtToken
(Map<String, Object> context) Retrieva Jwt from context, validate it and generate UpdateArea ObjectGets area id.Gets area target.getAreaTarget
(Map<String, ? extends Object> context) Gets area target.Gets auto entity parameters.Gets auto service parameters.Gets default entity name.Gets default service name.Gets event type.Gets parameter list.getParameterMap
(Map<String, Object> context) Gets parameter map.int
hashCode()
toJwtToken
(Map<String, Object> context) Extract updateArea information as a Jwt token
-
Constructor Details
-
UpdateArea
-
UpdateArea
XML constructor.- Parameters:
updateAreaElement
- The<on-xxx-update-area>
XML element.
-
UpdateArea
String constructor.- Parameters:
areaId
- The id of the widget element to be updatedareaTarget
- The target URL called to update the area
-
UpdateArea
public UpdateArea(String eventType, String areaId, String areaTarget, List<CommonWidgetModels.Parameter> parameterList) String constructor.- Parameters:
areaId
- The id of the widget element to be updatedareaTarget
- The target URL called to update the areaparameterList
- The list of parameters
-
-
Method Details
-
equals
-
getAreaId
Gets area id.- Returns:
- the area id
-
getAreaTarget
Gets area target.- Parameters:
context
- the context- Returns:
- the area target
-
getEventType
Gets event type.- Returns:
- the event type
-
getParameterMap
Gets parameter map.- Parameters:
context
- the context- Returns:
- the parameter map
-
hashCode
public int hashCode() -
getAreaTarget
Gets area target.- Returns:
- the area target
-
getDefaultServiceName
Gets default service name.- Returns:
- the default service name
-
getDefaultEntityName
Gets default entity name.- Returns:
- the default entity name
-
getAutoEntityParameters
Gets auto entity parameters.- Returns:
- the auto entity parameters
-
getAutoServiceParameters
Gets auto service parameters.- Returns:
- the auto service parameters
-
getParameterList
Gets parameter list.- Returns:
- the parameter list
-
toJwtToken
Extract updateArea information as a Jwt token- Returns:
- the Jwt token
-
fromJwtToken
Retrieva Jwt from context, validate it and generate UpdateArea Object- Returns:
- UpdateArea object
-