Class SortableIdAndNameRadioButton<T extends Comparable<T>>
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.Composite
-
- de.knightsoftnet.mtwidgets.client.ui.widget.SortableIdAndNameRadioButton<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
-
-
Constructor Summary
Constructors Constructor Description SortableIdAndNameRadioButton(String pwidgetId, ListSortEnum psort, MessagesForValues<T> pmessages, Collection<T> pids)widget ui constructor.SortableIdAndNameRadioButton(String pwidgetId, ListSortEnum psort, MessagesForValues<T> pmessages, T... pids)widget ui constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddValueChangeHandler(com.google.gwt.event.logical.shared.ValueChangeHandler<T> phandler)ValueBoxEditor<T>asEditor()protected voidensureDomEventHandlers()intgetTabIndex()com.google.gwt.user.client.ui.HTMLPanelgetValidationMessageElement()get validation message element.TgetValue()booleanisAutofocus()get autofocus value.booleanisEnabled()voidsetAccessKey(char pkey)voidsetAutofocus(boolean arg)set autofocus value.voidsetCustomValidity(String message)set custom validity value.voidsetEnabled(boolean penabled)voidsetFocus(boolean pfocused)voidsetTabIndex(int pindex)voidsetTitle(String title)set title of element.voidsetValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel pelement)set validation message element.voidsetValue(T pvalue)voidsetValue(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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.knightsoftnet.mtwidgets.client.ui.widget.features.HasValidationMessageElement
editorErrorMatches, showErrors, showErrors
-
-
-
-
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 buttonspsort- the sort order of the countriespmessages- message resolverpids- 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 buttonspsort- the sort order of the countriespmessages- message resolverpids- 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:
addValueChangeHandlerin interfacecom.google.gwt.event.logical.shared.HasValueChangeHandlers<T extends Comparable<T>>
-
ensureDomEventHandlers
protected void ensureDomEventHandlers()
-
getValue
public T getValue()
- Specified by:
getValuein interfacecom.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>- Specified by:
getValuein interfacecom.google.gwt.user.client.TakesValue<T extends Comparable<T>>- Specified by:
getValuein interfaceorg.gwtproject.editor.client.TakesValue<T extends Comparable<T>>
-
setValue
public void setValue(T pvalue)
- Specified by:
setValuein interfacecom.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>- Specified by:
setValuein interfacecom.google.gwt.user.client.TakesValue<T extends Comparable<T>>- Specified by:
setValuein interfaceorg.gwtproject.editor.client.TakesValue<T extends Comparable<T>>
-
setValue
public void setValue(T pvalue, boolean pfireEvents)
- Specified by:
setValuein interfacecom.google.gwt.user.client.ui.HasValue<T extends Comparable<T>>
-
getTabIndex
public int getTabIndex()
- Specified by:
getTabIndexin interfacecom.google.gwt.user.client.ui.Focusable
-
setAccessKey
public void setAccessKey(char pkey)
- Specified by:
setAccessKeyin interfacecom.google.gwt.user.client.ui.Focusable
-
setFocus
public void setFocus(boolean pfocused)
- Specified by:
setFocusin interfacecom.google.gwt.user.client.ui.Focusable
-
setTabIndex
public void setTabIndex(int pindex)
- Specified by:
setTabIndexin interfacecom.google.gwt.user.client.ui.Focusable
-
setCustomValidity
public void setCustomValidity(String message)
Description copied from interface:HasValidationMessageElementset custom validity value.- Specified by:
setCustomValidityin interfaceHasValidationMessageElement<T extends Comparable<T>,ValueBoxEditor<T extends Comparable<T>>>- Parameters:
message- message to show
-
setTitle
public void setTitle(String title)
Description copied from interface:HasValidationMessageElementset title of element.- Specified by:
setTitlein interfaceHasValidationMessageElement<T extends Comparable<T>,ValueBoxEditor<T extends Comparable<T>>>- Overrides:
setTitlein classcom.google.gwt.user.client.ui.UIObject- Parameters:
title- title to set
-
asEditor
public ValueBoxEditor<T> asEditor()
- Specified by:
asEditorin interfaceorg.gwtproject.editor.client.IsEditor<T extends Comparable<T>>
-
isAutofocus
public boolean isAutofocus()
Description copied from interface:HasAutofocusget autofocus value.- Specified by:
isAutofocusin interfaceHasAutofocus- Returns:
- true if input field has autofocus
-
setAutofocus
public void setAutofocus(boolean arg)
Description copied from interface:HasAutofocusset autofocus value.- Specified by:
setAutofocusin interfaceHasAutofocus- Parameters:
arg- true if input field has autofocus
-
setValidationMessageElement
public void setValidationMessageElement(com.google.gwt.user.client.ui.HTMLPanel pelement)
Description copied from interface:HasValidationMessageElementset validation message element.- Specified by:
setValidationMessageElementin interfaceHasValidationMessageElement<T extends Comparable<T>,ValueBoxEditor<T extends Comparable<T>>>- Parameters:
pelement- element to set
-
getValidationMessageElement
public com.google.gwt.user.client.ui.HTMLPanel getValidationMessageElement()
Description copied from interface:HasValidationMessageElementget validation message element.- Specified by:
getValidationMessageElementin interfaceHasValidationMessageElement<T extends Comparable<T>,ValueBoxEditor<T extends Comparable<T>>>- Returns:
- element or null if non is set
-
isEnabled
public boolean isEnabled()
- Specified by:
isEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled
-
setEnabled
public void setEnabled(boolean penabled)
- Specified by:
setEnabledin interfacecom.google.gwt.user.client.ui.HasEnabled
-
-