SectionSpec (taack-ui 0.3.8 API)
Package: taack.ui.base.show

[Groovy] Class SectionSpec

    • taack.ui.base.show.SectionSpec


    • @groovy.transform.CompileStatic
      class SectionSpec
      extends java.lang.Object

      ShowSpec.section delegated class

      • Methods Summary

          Methods 
          Type Params Return Type Name and description
          void field(java.lang.String i18n, FieldInfo field, taack.ui.base.common.Style style)
          Add a field in the show graphical element
          void field(java.lang.String html, taack.ui.base.common.Style style)
          insert custom HTML in the show element
          void field(java.lang.String i18n, java.lang.String field, taack.ui.base.common.Style style)
          Add a field in the show graphical element
          void field(java.lang.String html)
          Inline HTML without style
          void fieldAction(java.lang.String i18n, taack.ui.base.common.ActionIcon icon, org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id, boolean isAjax)
          Action in a form of an icon, that is displayed at the end of the next field value.
          void fieldAction(java.lang.String i18n, taack.ui.base.common.ActionIcon icon, org.codehaus.groovy.runtime.MethodClosure action, java.util.Map<java.lang.String, ?> additionalParams, boolean isAjax)
          see fieldAction(java.lang.String, taack.ui.base.common.ActionIcon, org.codehaus.groovy.runtime.MethodClosure, java.lang.Long, boolean)
          void fieldLabeled(taack.ui.base.common.Style style, FieldInfo[] fieldInfos)
          Add a field in the show graphical element, label is automatically deduced.
          void fieldLabeled(taack.ui.base.common.Style style, GetMethodReturn methodReturn)
          Add a field in the show graphical element, label is automatically deduced.
          void fieldUnlabeled(taack.ui.base.common.Style style, FieldInfo[] fieldInfos)
          field content without labeling
          void fieldUnlabeled(taack.ui.base.common.Style style, GetMethodReturn methodReturn)
          field content without labeling
          void inlineHtml(java.lang.String html, java.lang.String additionalCSSClass)
          Inline HTML, adding CSS class to the embedding div
          void showInputField(java.lang.String i18n, FieldInfo field, boolean isAjax)
          Editable field
      • Inherited Methods Summary

          Inherited Methods 
          Methods inherited from class Name
          class java.lang.Object java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
      • Method Detail

        • void field(java.lang.String i18n, FieldInfo field, taack.ui.base.common.Style style)

          Add a field in the show graphical element

          Parameters:
          i18n - label
          field
          style - Portable style

        • void field(java.lang.String html, taack.ui.base.common.Style style)

          insert custom HTML in the show element

          Parameters:
          html
          style - Portable and static element style

        • void field(java.lang.String i18n, java.lang.String field, taack.ui.base.common.Style style)

          Add a field in the show graphical element

          Parameters:
          i18n - label
          field - value
          style - Portable and static element style

        • void field(java.lang.String html)

          Inline HTML without style

          Parameters:
          html

        • void fieldAction(java.lang.String i18n, taack.ui.base.common.ActionIcon icon, org.codehaus.groovy.runtime.MethodClosure action, java.lang.Long id, boolean isAjax)

          Action in a form of an icon, that is displayed at the end of the next field value.

          Parameters:
          i18n - hover text
          icon - icon
          action - target action if icon is clicked
          id - id parameter
          isAjax - true if target action is an ajax one

        • void fieldLabeled(taack.ui.base.common.Style style, FieldInfo[] fieldInfos)

          Add a field in the show graphical element, label is automatically deduced.

          Parameters:
          style - Portable and static element style
          fieldInfos - target field

        • void fieldLabeled(taack.ui.base.common.Style style, GetMethodReturn methodReturn)

          Add a field in the show graphical element, label is automatically deduced.

          Parameters:
          style - Portable and static element style
          methodReturn - target a getter field

        • void fieldUnlabeled(taack.ui.base.common.Style style, FieldInfo[] fieldInfos)

          field content without labeling

          Parameters:
          style
          fieldInfos

        • void fieldUnlabeled(taack.ui.base.common.Style style, GetMethodReturn methodReturn)

          field content without labeling

          Parameters:
          style
          fieldInfos

        • void inlineHtml(java.lang.String html, java.lang.String additionalCSSClass)

          Inline HTML, adding CSS class to the embedding div

          Parameters:
          html
          additionalCSSClass

        • void showInputField(java.lang.String i18n, FieldInfo field, boolean isAjax)

          Editable field

          Parameters:
          i18n - label
          field - target field (require action and object to be set in UiShowSpecifier.ui
          isAjax - if true, the target action is an ajax one