Class ImageListEditor<T>

  • Type Parameters:
    T - The edited type.
    All Implemented Interfaces:
    com.google.gwt.editor.client.Editor<T>, com.google.gwt.editor.client.HasEditorErrors<T>, com.google.gwt.editor.client.LeafValueEditor<T>, com.google.gwt.user.client.TakesValue<T>, com.google.gwt.user.client.ui.IsWidget, LeafAttributeEditor<T>
    Direct Known Subclasses:
    DropDownImageListEditor, HorizImageListEditor

    public abstract class ImageListEditor<T>
    extends Object
    implements com.google.gwt.user.client.ui.IsWidget, LeafAttributeEditor<T>

    Presenter for a gwt editor component that accepts multiple values and display each one using a given image.

    The validation error messages are displayed by changing border color to RED and showing the message using a tooltip.

    This component is typically used for handling enums.

    Since:
    0.4.0
    • Method Detail

      • newEntry

        public ImageListEditor.Entry newEntry​(T value,
                                              com.google.gwt.safehtml.shared.SafeUri uri,
                                              com.google.gwt.safehtml.shared.SafeHtml heading,
                                              com.google.gwt.safehtml.shared.SafeHtml text)
      • setImageSize

        public void setImageSize​(String w,
                                 String h)
      • setHelpContent

        public void setHelpContent​(String title,
                                   String content,
                                   org.gwtbootstrap3.client.ui.constants.Placement placement)
      • showErrors

        public void showErrors​(List<com.google.gwt.editor.client.EditorError> errors)
        GWT EDITOR CONTRACT METHODS **
        Specified by:
        showErrors in interface com.google.gwt.editor.client.HasEditorErrors<T>
      • getValue

        public T getValue()
        Specified by:
        getValue in interface com.google.gwt.user.client.TakesValue<T>
      • setValue

        public void setValue​(T value)
        Specified by:
        setValue in interface com.google.gwt.user.client.TakesValue<T>
      • setValue

        public void setValue​(T value,
                             boolean fireEvents)
      • asWidget

        public com.google.gwt.user.client.ui.Widget asWidget()
        Specified by:
        asWidget in interface com.google.gwt.user.client.ui.IsWidget
      • clear

        public void clear()
      • showElements

        protected void showElements()
        PRIVATE EDITOR METHODS **