THIS
- Self-referential generic THISpublic interface FluentAbstractSingleSelect<THIS extends FluentAbstractSingleSelect<THIS,VALUE>,VALUE> extends FluentAbstractListing<THIS,VALUE>, FluentHasValue<THIS,VALUE>
AbstractSingleSelect
AbstractSingleSelect
FluentComponent.FluentFocusable<C extends FluentComponent.FluentFocusable<C>>
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Modifier and Type | Method and Description |
---|---|
default THIS |
withSelectedItem(VALUE item)
Sets the current selection to the given item or clears selection if given
null . |
default THIS |
withSelectionListener(com.vaadin.event.selection.SingleSelectionListener<VALUE> listener)
Adds a selection listener to this select.
|
default THIS |
withValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener<VALUE> listener)
Adds a value change listener.
|
withCaption, withCaptionAsHtml, withComponentError, withData, withDescription, withDescription, withLocale, withResponsive, withShortcutListener, withStyleName
withAttachListener, withDetachListener
withContextClickListener
addContextClickListener, removeContextClickListener
withItems, withItems, withItems
getDataProvider, setItems, setItems, setItems
withTabIndex
withCaption, withEnabled, withIcon, withId, withParent, withPrimaryStyleName, withStyleName, withStyleName, withVisible
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
withFullHeight, withFullSize, withFullWidth, withHeight, withHeight, withSize, withUndefinedHeight, withUndefinedSize, withUndefinedWidth, withWidth, withWidth
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
withReadOnly, withRequiredIndicatorVisible, withValue
default THIS withSelectedItem(VALUE item)
null
.item
- the item to select or null
to clear selectionAbstractSingleSelect.setSelectedItem(Object)
default THIS withSelectionListener(com.vaadin.event.selection.SingleSelectionListener<VALUE> listener)
listener
- the selection listener, not nullAbstractSingleSelect.addSelectionListener(SingleSelectionListener)
default THIS withValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener<VALUE> listener)
FluentHasValue
HasValue
is changed either by the user or programmatically.withValueChangeListener
in interface FluentHasValue<THIS extends FluentAbstractSingleSelect<THIS,VALUE>,VALUE>
listener
- the value change listener, not nullHasValue.addValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener)
Copyright © 2017 Jean-Christophe Fortier. All rights reserved.