Class GuideField

    • Constructor Detail

      • GuideField

        public GuideField()
    • Method Detail

      • getIsRequired

        public java.lang.Boolean getIsRequired()
      • getIsReadOnly

        public java.lang.Boolean getIsReadOnly()
      • getLabelForId

        public java.lang.String getLabelForId()
                                       throws javax.jcr.RepositoryException
        Returns id for field label association, for accessibility
        Returns:
        String Id for field label association
        Throws:
        javax.jcr.RepositoryException
      • getAutofillFieldKeyword

        public java.lang.String getAutofillFieldKeyword()
        Returns the value of autofill field keyword
        Returns:
        String representing autofill field keyword value
      • getAutocomplete

        public java.lang.Boolean getAutocomplete()
        Returns the value of autocomplete
        Returns:
        Boolean representing autocomplete value
      • getIsOldFieldLayout

        public boolean getIsOldFieldLayout()
      • getFieldLayout

        public java.lang.String getFieldLayout()
        Returns the field layout configured during authoring. If field layout is specified at field level, it takes priority, else field layout configured in adaptive form container is honored.
        Returns:
        path of the field layout
      • getFieldLayoutName

        public java.lang.String getFieldLayoutName()
        Returns the name of the field layout
        Returns:
        name of the field layout configured
      • getHideTitle

        public boolean getHideTitle()
        Returns if the current field's title is hidden or not
        Returns:
        boolean indicating if title is hidden or not
      • getShortDescription

        public java.lang.String getShortDescription()
        Returns the short description of the field configured in the authoring dialog
        Returns:
        string representing the short description of the field
      • getLongDescription

        public java.lang.String getLongDescription()
        Returns the long description of the field configured in authoring dialog
        Returns:
        String representing the long description
      • getDescriptionVisibility

        public java.lang.Boolean getDescriptionVisibility()
        Returns the visibility of the short description as specified in the Authoring Dialog
        Returns:
        true if "Always show short Description" is selected otherwise false
      • getValue

        public java.lang.String getValue()
        Returns the initial value of the field set in the authoring dialog
        Returns:
        String representing the default value
      • getCaptionInlineStyles

        public java.lang.String getCaptionInlineStyles()
        Returns the string containing the inline style specified for the caption
        Returns:
        inline style of the caption
      • getWidgetInlineStyles

        public java.lang.String getWidgetInlineStyles()
        Returns the string containing the inline style specified for the widget
        Returns:
        inline style of the widget
      • setHelpIndicatorContent

        public void setHelpIndicatorContent​(java.lang.String helpQuestionMarkContent)
        Sets the help indicator content for the field. By default the indicator is represented as a "?", but can be changed through this API.
        Parameters:
        helpQuestionMarkContent - string representing the help question mark content
      • getHelpIndicatorContent

        public java.lang.String getHelpIndicatorContent()
        Returns the help content for field
        Returns:
        question mark content of the help
      • getShortDescriptionInlineStyles

        public java.lang.String getShortDescriptionInlineStyles()
        Returns the string containing the inline style specified for the short description
        Returns:
        inline style of the short description
      • getPlaceholderText

        public java.lang.String getPlaceholderText()
        Returns the placeholder text set in the authoring dialog
        Returns:
        place holder text set for the field
      • getErrorSimulatorString

        public java.lang.String getErrorSimulatorString()
        Returns the error simulation string to be shown in Authoring for styling purposes
        Returns:
        error simulation string for a given field
      • isMandatory

        public boolean isMandatory()
        Return if the field is marked as required.
        Returns:
        true if field is configured as mandatory, false otherwise
      • getAuthoringConfig

        public java.util.Map<java.lang.String,​java.lang.Object> getAuthoringConfig()
        Gives the authoring configuration of the guide field component
        Overrides:
        getAuthoringConfig in class GuideNode
        Returns:
        authoring config of guide field component