Interface IXForm

All Superinterfaces:
Serializable
All Known Implementing Classes:
XForm

public interface IXForm extends Serializable
Author:
XIMA MEDIA GmbH
  • Method Details

    • getXItems

      Map<String,XItem> getXItems()
      Returns:
      Map between the ID of each form element to the form element itself.
    • getHiddenInputParameter

      Map<String,String> getHiddenInputParameter()
    • setHiddenInputParameter

      void setHiddenInputParameter(Map<String,String> hiddenInputParameter)
    • addHiddenInputParameter

      void addHiddenInputParameter(String key, String value)
    • setXItems

      void setXItems(LinkedHashMap<String,XItem> xItems)
    • getServerValItems

      List<String> getServerValItems()
    • getReadOnlyCondItems

      List<String> getReadOnlyCondItems()
    • getRenderCondItems

      List<String> getRenderCondItems()
    • setServerValItems

      void setServerValItems(List<String> serverValItems)
    • setReadOnlyCondItems

      void setReadOnlyCondItems(List<String> readOnlyCondItems)
    • setRenderCondItems

      void setRenderCondItems(List<String> renderCondItems)
    • getParentItemMap

      @Deprecated LinkedHashMap<String,String> getParentItemMap()
      Deprecated.
      Returns:
      Map from the ID of a form item to the ID of its parent (if any).
    • getParentIdMap

      default Map<String,String> getParentIdMap()
      Returns:
      Map from the ID of a form item to the ID of its parent (if any).
    • setParentIdMap

      void setParentIdMap(Map<String,String> parentItemMap)
      Parameters:
      parentItemMap - Map from the ID of a form item to the ID of its parent (if any).
    • setParentItemMap

      @Deprecated void setParentItemMap(LinkedHashMap<String,String> parentItemMap)
      Deprecated.
      Parameters:
      parentItemMap - Map from the ID of a form item to the ID of its parent (if any).
    • clone

    • isShowLogo

      boolean isShowLogo()
    • isResponsive

      default boolean isResponsive()
    • isUseModernTheme

      @Deprecated default boolean isUseModernTheme()
      Deprecated.
      There is no separate option anymore for the modern theme. Use getFormProperties() and XFormProperties.getFormTheme() (which may be the system theme "modern").
      Returns:
      true to use the modern CSS theme, false to not use it.
    • isPrevReplacement

      default boolean isPrevReplacement()
      Deprecated.
      There is no separate option anymore for the modern theme. Use getFormProperties() and XFormProperties.getFormTheme() (which may be the system theme "modern").
      Returns:
      Whether to replace placeholders with their values in the preview.
    • getVersion

      com.alibaba.fastjson.JSONObject getVersion()
    • getVariables

      com.alibaba.fastjson.JSONArray getVariables()
      Retrieves the list of all variables (hidden input fields) that are present in the form. Each variable is a JSON object with the following properties:
      • aliasname - Alias of the variable, which can be used e.g. in placeholders instead of the name and allows all characters.
      • name - The name of the variable, which is also the name of the hidden input field. It only allows certain characters (digits, letters, underscore)
      • serveronly - Whether the variable exists only on the server.
      • value - The default value of the variable.
      Returns:
      A list of all variables.
    • getMaxSize

      @Deprecated default String getMaxSize()
      Deprecated.
      Returns:
      Maximum width of the form, as a CSS unit with "px".
    • getMinSize

      @Deprecated default String getMinSize()
      Deprecated.
      Returns:
      Minimum width of the form, as a CSS unit with "px".
    • getResponseSize

      @Deprecated default String getResponseSize()
      Deprecated.
      Returns:
      Responsive width of the form, as a CSS unit with "px".
    • getMetaData

      String getMetaData()
    • getUserCSS

      String getUserCSS()
    • getUserJS

      String getUserJS()
    • getErrorStyle

      @Deprecated default String getErrorStyle()
      Deprecated.
      Returns:
      Style class to apply to the form, which controls how validation errors are displayed.
    • getFormI18N

      com.alibaba.fastjson.JSONObject getFormI18N()
    • setxItems

      @Deprecated void setxItems(LinkedHashMap<String,XItem> xItems)
      Deprecated.
    • getxItems

      @Deprecated Map<String,XItem> getxItems()
      Deprecated.
      Returns:
      Map between the ID of each form element to the form element itself.
    • isAttributeW3CMode

      @Deprecated default boolean isAttributeW3CMode()
      Deprecated.
      Returns:
      true to use only attributes allowed by the W3C spec, false to use the legacy mode.
    • isElementClassNameMode

      @Deprecated default boolean isElementClassNameMode()
      Deprecated.
      Returns:
      true when the name of the element should be added as a CSS style class, false otherwise.
    • isValidateSubmitAction

      @Deprecated default boolean isValidateSubmitAction()
      Deprecated.
      Returns:
      true when submit buttons should be validated to ensure only existing buttons are pressed.
    • isLegacyUseOptionTextForAutocomplete

      @Deprecated default boolean isLegacyUseOptionTextForAutocomplete()
      Deprecated.
      Returns:
      In versions [7.0.0, 7.4.0) of formcycle there was a bug for autocomplete select fields, where the option text instead of the option was used instead of its value when evaluating conditions. This flag enables this legacy behavior.
    • getFormProperties

      XFormProperties getFormProperties()