Class SortableIdAndNameRadioButton<T extends Comparable<T>>

  • Type Parameters:
    T - type of the id
    All Implemented Interfaces:
    com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.logical.shared.HasValueChangeHandlers<T>, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.TakesValue<T>, com.google.gwt.user.client.ui.Focusable, com.google.gwt.user.client.ui.HasEnabled, com.google.gwt.user.client.ui.HasValue<T>, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, HasAutofocus, HasValidationMessageElement<T,​ValueBoxEditor<T>>, org.gwtproject.editor.client.Editor<T>, org.gwtproject.editor.client.HasEditorErrors<T>, org.gwtproject.editor.client.IsEditor<ValueBoxEditor<T>>, org.gwtproject.editor.client.TakesValue<T>

    public class SortableIdAndNameRadioButton<T extends Comparable<T>>
    extends com.google.gwt.user.client.ui.Composite
    implements com.google.gwt.user.client.ui.HasValue<T>, org.gwtproject.editor.client.TakesValue<T>, com.google.gwt.user.client.ui.Focusable, HasValidationMessageElement<T,​ValueBoxEditor<T>>, HasAutofocus, com.google.gwt.user.client.ui.HasEnabled
    a radio box with id and name which is sortable and returns id.
    Author:
    Manfred Tremmel
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject

        com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
      • Nested classes/interfaces inherited from interface org.gwtproject.editor.client.Editor

        org.gwtproject.editor.client.Editor.Ignore, org.gwtproject.editor.client.Editor.Path
    • Field Summary

      • Fields inherited from class com.google.gwt.user.client.ui.UIObject

        DEBUG_ID_PREFIX
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler​(com.google.gwt.event.logical.shared.ValueChangeHandler<T> phandler)  
      ValueBoxEditor<T> asEditor()  
      protected void ensureDomEventHandlers()  
      int getTabIndex()  
      com.google.gwt.user.client.ui.HTMLPanel getValidationMessageElement()
      get validation message element.
      T getValue()  
      boolean isAutofocus()
      get autofocus value.
      boolean isEnabled()  
      void setAccessKey​(char pkey)  
      void setAutofocus​(boolean arg)
      set autofocus value.
      void setCustomValidity​(String message)
      set custom validity value.
      void setEnabled​(boolean penabled)  
      void setFocus​(boolean pfocused)  
      void setTabIndex​(int pindex)  
      void setTitle​(String title)
      set title of element.
      void setValidationMessageElement​(com.google.gwt.user.client.ui.HTMLPanel pelement)
      set validation message element.
      void setValue​(T pvalue)  
      void setValue​(T pvalue, boolean pfireEvents)  
      • Methods inherited from class com.google.gwt.user.client.ui.Composite

        claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
      • Methods inherited from class com.google.gwt.user.client.ui.Widget

        addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
      • Methods inherited from class com.google.gwt.user.client.ui.UIObject

        addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
      • Methods inherited from interface com.google.gwt.event.shared.HasHandlers

        fireEvent
    • Constructor Detail

      • SortableIdAndNameRadioButton

        @SafeVarargs
        public SortableIdAndNameRadioButton​(String pwidgetId,
                                            ListSortEnum psort,
                                            MessagesForValues<T> pmessages,
                                            T... pids)
        widget ui constructor.
        Parameters:
        pwidgetId - widget id which is the same for all created radio buttons
        psort - the sort order of the countries
        pmessages - message resolver
        pids - ids to add to listBox
      • SortableIdAndNameRadioButton

        public SortableIdAndNameRadioButton​(String pwidgetId,
                                            ListSortEnum psort,
                                            MessagesForValues<T> pmessages,
                                            Collection<T> pids)
        widget ui constructor.
        Parameters:
        pwidgetId - widget id which is the same for all created radio buttons
        psort - the sort order of the countries
        pmessages - message resolver
        pids - ids to add to listBox
    • Method Detail

      • addValueChangeHandler

        public com.google.gwt.event.shared.HandlerRegistration addValueChangeHandler​(com.google.gwt.event.logical.shared.ValueChangeHandler<T> phandler)
        Specified by:
        addValueChangeHandler in interface com.google.gwt.event.logical.shared.HasValueChangeHandlers<T extends Comparable<T>>
      • ensureDomEventHandlers

        protected void ensureDomEventHandlers()
      • getValue

        public T getValue()
        Specified by:
        getValue in interface com.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>
        Specified by:
        getValue in interface com.google.gwt.user.client.TakesValue<T extends Comparable<T>>
        Specified by:
        getValue in interface org.gwtproject.editor.client.TakesValue<T extends Comparable<T>>
      • setValue

        public void setValue​(T pvalue)
        Specified by:
        setValue in interface com.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>
        Specified by:
        setValue in interface com.google.gwt.user.client.TakesValue<T extends Comparable<T>>
        Specified by:
        setValue in interface org.gwtproject.editor.client.TakesValue<T extends Comparable<T>>
      • setValue

        public void setValue​(T pvalue,
                             boolean pfireEvents)
        Specified by:
        setValue in interface com.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>
      • getTabIndex

        public int getTabIndex()
        Specified by:
        getTabIndex in interface com.google.gwt.user.client.ui.Focusable
      • setAccessKey

        public void setAccessKey​(char pkey)
        Specified by:
        setAccessKey in interface com.google.gwt.user.client.ui.Focusable
      • setFocus

        public void setFocus​(boolean pfocused)
        Specified by:
        setFocus in interface com.google.gwt.user.client.ui.Focusable
      • setTabIndex

        public void setTabIndex​(int pindex)
        Specified by:
        setTabIndex in interface com.google.gwt.user.client.ui.Focusable
      • asEditor

        public ValueBoxEditor<T> asEditor()
        Specified by:
        asEditor in interface org.gwtproject.editor.client.IsEditor<T extends Comparable<T>>
      • isAutofocus

        public boolean isAutofocus()
        Description copied from interface: HasAutofocus
        get autofocus value.
        Specified by:
        isAutofocus in interface HasAutofocus
        Returns:
        true if input field has autofocus
      • setAutofocus

        public void setAutofocus​(boolean arg)
        Description copied from interface: HasAutofocus
        set autofocus value.
        Specified by:
        setAutofocus in interface HasAutofocus
        Parameters:
        arg - true if input field has autofocus
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface com.google.gwt.user.client.ui.HasEnabled
      • setEnabled

        public void setEnabled​(boolean penabled)
        Specified by:
        setEnabled in interface com.google.gwt.user.client.ui.HasEnabled