Class ModelForm.UpdateArea

java.lang.Object
org.apache.ofbiz.widget.model.ModelForm.UpdateArea
Enclosing class:
ModelForm

public static class ModelForm.UpdateArea extends Object
The UpdateArea class implements the <on-event-update-area> elements used in form widgets.
  • Constructor Details

    • UpdateArea

      public UpdateArea(Element updateAreaElement)
    • UpdateArea

      public UpdateArea(Element updateAreaElement, String defaultServiceName, String defaultEntityName)
      XML constructor.
      Parameters:
      updateAreaElement - The <on-xxx-update-area> XML element.
    • UpdateArea

      public UpdateArea(String eventType, String areaId, String areaTarget)
      String constructor.
      Parameters:
      areaId - The id of the widget element to be updated
      areaTarget - 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 updated
      areaTarget - The target URL called to update the area
      parameterList - The list of parameters
  • Method Details

    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getAreaId

      public String getAreaId()
      Gets area id.
      Returns:
      the area id
    • getAreaTarget

      public String getAreaTarget(Map<String,? extends Object> context)
      Gets area target.
      Parameters:
      context - the context
      Returns:
      the area target
    • getEventType

      public String getEventType()
      Gets event type.
      Returns:
      the event type
    • getParameterMap

      public Map<String,String> getParameterMap(Map<String,Object> context)
      Gets parameter map.
      Parameters:
      context - the context
      Returns:
      the parameter map
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAreaTarget

      public String getAreaTarget()
      Gets area target.
      Returns:
      the area target
    • getDefaultServiceName

      public String getDefaultServiceName()
      Gets default service name.
      Returns:
      the default service name
    • getDefaultEntityName

      public String getDefaultEntityName()
      Gets default entity name.
      Returns:
      the default entity name
    • getAutoEntityParameters

      public CommonWidgetModels.AutoEntityParameters getAutoEntityParameters()
      Gets auto entity parameters.
      Returns:
      the auto entity parameters
    • getAutoServiceParameters

      public CommonWidgetModels.AutoServiceParameters getAutoServiceParameters()
      Gets auto service parameters.
      Returns:
      the auto service parameters
    • getParameterList

      public List<CommonWidgetModels.Parameter> getParameterList()
      Gets parameter list.
      Returns:
      the parameter list
    • toJwtToken

      public String toJwtToken(Map<String,Object> context)
      Extract updateArea information as a Jwt token
      Returns:
      the Jwt token
    • fromJwtToken

      public static ModelForm.UpdateArea fromJwtToken(Map<String,Object> context)
      Retrieva Jwt from context, validate it and generate UpdateArea Object
      Returns:
      UpdateArea object