Class EditingAppearance<T>

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

    public abstract class EditingAppearance<T>
    extends Object
    Abstract editing appearance which builds the following DOM tree:
     <div class="form-group">
         <label class="control-label hal-form-label"></label>
         <div class="hal-form-input">
             <input-element/>
         </div>
     </div>
     
    • 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()
        Sets the attached flag to true. If you override this method, make sure to call super.attach() first!
      • 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)
      • showValue

        public abstract void showValue​(T value)
      • showExpression

        public default void showExpression​(String expression)
      • asString

        public default String asString​(T value)
      • clearValue

        public abstract void clearValue()
      • apply

        public default void apply​(Decoration decoration)