Class ReadOnlyAppearance<T>

  • All Implemented Interfaces:
    com.google.gwt.user.client.ui.Focusable, org.jboss.elemento.IsElement, Attachable

    public abstract class ReadOnlyAppearance<T>
    extends Object
    Abstract read-only appearance which builds the following DOM tree:
     <div class="form-group">
         <label class="control-label hal-form-label"></label>
         <div class="hal-form-input">
             <value-element class="form-control-static"></p>
         </div>
     </div>
     

    Unless you override safeApply(Decoration, Object) or safeUnapply(Decoration) the following decorations are not supported by this read-only appearance:

    • Field Detail

      • FORM_ITEM_GROUP

        public static final String FORM_ITEM_GROUP
        Used as a data- attribute in the root element of the appearances.
        See Also:
        Constant Field Values
    • Method Detail

      • element

        public elemental2.dom.HTMLElement element()
      • attach

        public void attach()
      • showValue

        public void showValue​(T value)
      • clearValue

        public void clearValue()
      • showExpression

        public void showExpression​(String expression)
      • setId

        public void setId​(String id)
      • setName

        public void setName​(String name)
      • getTabIndex

        public int getTabIndex()
      • setAccessKey

        public void setAccessKey​(char key)
      • setFocus

        public void setFocus​(boolean focused)
      • setTabIndex

        public void setTabIndex​(int index)
      • apply

        public final <C> void apply​(Decoration decoration,
                                    C context)
        Calls safeApply(Decoration, Object) if the decoration is supported and has not been applied yet.
      • unapply

        public final void unapply​(Decoration decoration)
        Calls safeUnapply(Decoration) if the decoration is supported and has been applied.
      • getId

        public String getId()
      • setLabel

        public void setLabel​(String label)
      • asString

        public default String asString​(T value)
      • apply

        public default void apply​(Decoration decoration)