Class SortableIdAndNameSearchableListBox<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.IdAndNameSearchableListBox<T>
-
- de.knightsoftnet.mtwidgets.client.ui.widget.SortableIdAndNameSearchableListBox<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.HasValue<T>,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,HasAutocomplete,HasAutofocus,HasPlaceholder,HasRequired,HasValidationMessageElement<T,ValueBoxEditor<T>>,HasValidity,SortableIdAndName<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 SortableIdAndNameSearchableListBox<T extends Comparable<T>> extends IdAndNameSearchableListBox<T> implements SortableIdAndName<T>
a list box with id and name which is sortable and returns id.- Author:
- Manfred Tremmel
-
-
Field Summary
-
Fields inherited from class de.knightsoftnet.mtwidgets.client.ui.widget.IdAndNameSearchableListBox
entries
-
-
Constructor Summary
Constructors Constructor Description SortableIdAndNameSearchableListBox(ListSortEnum psort, MessagesForValues<T> pmessages, Collection<T> pids)widget ui constructor.SortableIdAndNameSearchableListBox(ListSortEnum psort, MessagesForValues<T> pmessages, T... pids)widget ui constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillEntries(Collection<T> pids)fill entries of the listbox.-
Methods inherited from class de.knightsoftnet.mtwidgets.client.ui.widget.IdAndNameSearchableListBox
addValueChangeHandler, asEditor, checkValidity, ensureDomEventHandlers, fillEntryCollections, getAutocomplete, getPlaceholder, getValidationMessage, getValidationMessageElement, getValidity, getValue, isAutofocus, isRequired, onEnsureDebugId, setAutocomplete, setAutofocus, setCustomValidity, setPlaceholder, setRequired, setValidationMessageElement, setValue, setValue, showErrors
-
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, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, 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, setTitle, showErrors
-
Methods inherited from interface de.knightsoftnet.mtwidgets.client.ui.widget.features.SortableIdAndName
fillEntries, fillEntryCollections
-
-
-
-
Constructor Detail
-
SortableIdAndNameSearchableListBox
@SafeVarargs public SortableIdAndNameSearchableListBox(ListSortEnum psort, MessagesForValues<T> pmessages, T... pids)
widget ui constructor.- Parameters:
psort- the sort order of the countriespmessages- message resolverpids- ids to add to listBox
-
SortableIdAndNameSearchableListBox
public SortableIdAndNameSearchableListBox(ListSortEnum psort, MessagesForValues<T> pmessages, Collection<T> pids)
widget ui constructor.- Parameters:
psort- the sort order of the countriespmessages- message resolverpids- ids to add to listBox
-
-
Method Detail
-
fillEntries
public void fillEntries(Collection<T> pids)
Description copied from interface:SortableIdAndNamefill entries of the listbox.- Specified by:
fillEntriesin interfaceSortableIdAndName<T extends Comparable<T>>- Parameters:
pids- list of entries
-
-