Package com.opencloud.rem.client.ui
Class EnumerationListBox<T extends Enum<T>>
- java.lang.Object
-
- com.google.gwt.user.client.ui.UIObject
-
- com.google.gwt.user.client.ui.Widget
-
- com.google.gwt.user.client.ui.FocusWidget
-
- com.google.gwt.user.client.ui.ListBox
-
- com.opencloud.rem.client.ui.NamedValuesListBox<T>
-
- com.opencloud.rem.client.ui.EnumerationListBox<T>
-
- All Implemented Interfaces:
HasAllDragAndDropHandlers
,HasAllFocusHandlers
,HasAllGestureHandlers
,HasAllKeyHandlers
,HasAllMouseHandlers
,HasAllTouchHandlers
,HasBlurHandlers
,HasChangeHandlers
,HasClickHandlers
,HasDoubleClickHandlers
,HasDragEndHandlers
,HasDragEnterHandlers
,HasDragHandlers
,HasDragLeaveHandlers
,HasDragOverHandlers
,HasDragStartHandlers
,HasDropHandlers
,HasFocusHandlers
,HasGestureChangeHandlers
,HasGestureEndHandlers
,HasGestureStartHandlers
,HasKeyDownHandlers
,HasKeyPressHandlers
,HasKeyUpHandlers
,HasMouseDownHandlers
,HasMouseMoveHandlers
,HasMouseOutHandlers
,HasMouseOverHandlers
,HasMouseUpHandlers
,HasMouseWheelHandlers
,HasTouchCancelHandlers
,HasTouchEndHandlers
,HasTouchMoveHandlers
,HasTouchStartHandlers
,HasAttachHandlers
,HasValueChangeHandlers<T>
,HasHandlers
,HasDirectionEstimator
,EventListener
,TakesValue<T>
,Focusable
,HasEnabled
,HasFocus
,HasName
,HasValue<T>
,HasVisibility
,IsWidget
,SourcesChangeEvents
,SourcesClickEvents
,SourcesFocusEvents
,SourcesKeyboardEvents
,SourcesMouseEvents
public class EnumerationListBox<T extends Enum<T>> extends NamedValuesListBox<T>
A list box widget which only allows values from a given
java.lang.Enum
, ornull
.By default, the enumeration values' names will be displayed (using the
Enum.name()
) method, but an optionalEnumerationListBox.ValueRenderer
may be supplied to provide alternative display names. The display names must be unique within the enumeration; this is enforced at construction time.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
EnumerationListBox.ValueRenderer<T extends Enum<T>>
-
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
-
-
Field Summary
-
Fields inherited from class com.google.gwt.user.client.ui.ListBox
DEFAULT_DIRECTION_ESTIMATOR
-
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
-
-
Constructor Summary
Constructors Constructor Description EnumerationListBox(Class<T> clazz, boolean isMultipleSelect)
EnumerationListBox(Class<T> clazz, boolean isMultipleSelect, EnumerationListBox.ValueRenderer<T> renderer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setAvailableValues(Set<T> availableValues)
Narrows the set of available values to the given subset.-
Methods inherited from class com.opencloud.rem.client.ui.NamedValuesListBox
addValueChangeHandler, clear, getValue, setNamedValues, setValue, setValue
-
Methods inherited from class com.google.gwt.user.client.ui.ListBox
addChangeHandler, addChangeListener, addItem, addItem, addItem, addItem, getDirectionEstimator, getItemCount, getItemText, getName, getSelectedIndex, getSelectedItemText, getSelectedValue, getValue, getVisibleItemCount, insertItem, insertItem, insertItem, insertItem, isItemSelected, isMultipleSelect, removeChangeListener, removeItem, setDirectionEstimator, setDirectionEstimator, setItemSelected, setItemText, setItemText, setMultipleSelect, setName, setSelectedIndex, setValue, setVisibleItemCount, wrap
-
Methods inherited from class com.google.gwt.user.client.ui.FocusWidget
addBlurHandler, addClickHandler, addClickListener, addDoubleClickHandler, addDragEndHandler, addDragEnterHandler, addDragHandler, addDragLeaveHandler, addDragOverHandler, addDragStartHandler, addDropHandler, addFocusHandler, addFocusListener, addGestureChangeHandler, addGestureEndHandler, addGestureStartHandler, addKeyboardListener, addKeyDownHandler, addKeyPressHandler, addKeyUpHandler, addMouseDownHandler, addMouseListener, addMouseMoveHandler, addMouseOutHandler, addMouseOverHandler, addMouseUpHandler, addMouseWheelHandler, addMouseWheelListener, addTouchCancelHandler, addTouchEndHandler, addTouchMoveHandler, addTouchStartHandler, getTabIndex, isEnabled, removeClickListener, removeFocusListener, removeKeyboardListener, removeMouseListener, removeMouseWheelListener, setAccessKey, setEnabled, setFocus, setTabIndex
-
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, fireEvent, getLayoutData, getParent, isAttached, onBrowserEvent, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
-
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getStylePrimaryName, getTitle, isVisible, isVisible, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.gwt.event.dom.client.HasChangeHandlers
addChangeHandler
-
Methods inherited from interface com.google.gwt.event.shared.HasHandlers
fireEvent
-
-