Package com.vaadin.v7.ui
Class NativeSelect
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.v7.ui.AbstractLegacyComponent
-
- com.vaadin.v7.ui.AbstractField<java.lang.Object>
-
- com.vaadin.v7.ui.AbstractSelect
-
- com.vaadin.v7.ui.NativeSelect
-
- All Implemented Interfaces:
com.vaadin.event.Action.ShortcutNotifier
,com.vaadin.event.ConnectorEventListener
,com.vaadin.event.ContextClickEvent.ContextClickNotifier
,com.vaadin.event.MethodEventSource
,com.vaadin.event.SerializableEventListener
,com.vaadin.server.ClientConnector
,com.vaadin.server.Sizeable
,com.vaadin.server.VariableOwner
,com.vaadin.shared.Connector
,com.vaadin.ui.Component
,com.vaadin.ui.Component.Focusable
,com.vaadin.ui.LegacyComponent
,Buffered
,BufferedValidatable
,Container
,Container.ItemSetChangeListener
,Container.ItemSetChangeNotifier
,Container.PropertySetChangeListener
,Container.PropertySetChangeNotifier
,Container.Viewer
,Property<java.lang.Object>
,Property.Editor
,Property.ReadOnlyStatusChangeListener
,Property.ReadOnlyStatusChangeNotifier
,Property.ValueChangeListener
,Property.ValueChangeNotifier
,Property.Viewer
,Validatable
,FieldEvents.BlurNotifier
,FieldEvents.FocusNotifier
,Field<java.lang.Object>
,java.io.Serializable
,java.util.EventListener
@Deprecated public class NativeSelect extends AbstractSelect implements FieldEvents.BlurNotifier, FieldEvents.FocusNotifier
Deprecated.As of 8.0 replaced byNativeSelect
based on the new data binding APIThis is a simple drop-down select without, for instance, support for multiselect, new items, lazyloading, and other advanced features. Sometimes "native" select without all the bells-and-whistles of the ComboBox is a better choice.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.vaadin.v7.ui.AbstractSelect
AbstractSelect.AbstractSelectTargetDetails, AbstractSelect.AcceptItem, AbstractSelect.CaptionChangeListener, AbstractSelect.DefaultNewItemHandler, AbstractSelect.Filtering, AbstractSelect.ItemCaptionMode, AbstractSelect.ItemDescriptionGenerator, AbstractSelect.NewItemHandler, AbstractSelect.TargetItemIs, AbstractSelect.VerticalLocationIs
-
Nested classes/interfaces inherited from class com.vaadin.v7.ui.AbstractField
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent
-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Buffered
Buffered.SourceException
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
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
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Container
Container.Editor, Container.Filter, Container.Filterable, Container.Hierarchical, Container.Indexed, Container.ItemSetChangeListener, Container.ItemSetChangeNotifier, Container.Ordered, Container.PropertySetChangeListener, Container.PropertySetChangeNotifier, Container.SimpleFilterable, Container.Sortable, Container.Viewer
-
Nested classes/interfaces inherited from interface com.vaadin.v7.ui.Field
Field.ValueChangeEvent
-
Nested classes/interfaces inherited from interface com.vaadin.v7.data.Property
Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.Transactional<T>, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer
-
-
Field Summary
-
Fields inherited from class com.vaadin.v7.ui.AbstractSelect
ITEM_CAPTION_MODE_EXPLICIT, ITEM_CAPTION_MODE_EXPLICIT_DEFAULTS_ID, ITEM_CAPTION_MODE_ICON_ONLY, ITEM_CAPTION_MODE_ID, ITEM_CAPTION_MODE_INDEX, ITEM_CAPTION_MODE_ITEM, ITEM_CAPTION_MODE_PROPERTY, itemIdMapper, items
-
-
Constructor Summary
Constructors Constructor Description NativeSelect()
Deprecated.NativeSelect(java.lang.String caption)
Deprecated.NativeSelect(java.lang.String caption, Container dataSource)
Deprecated.NativeSelect(java.lang.String caption, java.util.Collection<?> options)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
Deprecated.Adds aBlurListener
to the Component which gets fired when aField
loses keyboard focus.void
addFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
Deprecated.Adds aFocusListener
to the Component which gets fired when aField
receives keyboard focus.int
getColumns()
Deprecated.As of 7.0.void
paintContent(com.vaadin.server.PaintTarget target)
Deprecated.Paints the content of this component.void
removeBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
Deprecated.Removes aBlurListener
from the Component.void
removeFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
Deprecated.Removes aFocusListener
from the Component.void
setColumns(int columns)
Deprecated.As of 7.0.void
setMultiSelect(boolean multiSelect)
Deprecated.Sets the multiselect mode.void
setNewItemsAllowed(boolean allowNewOptions)
Deprecated.Enables or disables possibility to add new options by the user.-
Methods inherited from class com.vaadin.v7.ui.AbstractSelect
addContainerProperty, addItem, addItem, addItems, addItems, addItemSetChangeListener, addListener, addListener, addPropertySetChangeListener, attach, changeVariables, containerItemSetChange, containerPropertySetChange, containsId, detach, fireItemSetChange, firePropertySetChange, getCaptionChangeListener, getContainerDataSource, getContainerProperty, getContainerPropertyIds, getItem, getItemCaption, getItemCaptionMode, getItemCaptionPropertyId, getItemIcon, getItemIconPropertyId, getItemIds, getListeners, getNewItemHandler, getNullSelectionItemId, getState, getState, getType, getType, getValue, getVisibleItemIds, isEmpty, isMultiSelect, isNewItemsAllowed, isNullSelectionAllowed, isSelected, paintItem, readDesign, readItem, readItems, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, sanitizeSelection, select, setContainerDataSource, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIcon, setItemIconPropertyId, setNewItemHandler, setNullSelectionAllowed, setNullSelectionItemId, setValue, setValue, size, unselect, writeDesign, writeItem, writeItems
-
Methods inherited from class com.vaadin.v7.ui.AbstractField
addListener, addListener, addReadOnlyStatusChangeListener, addValidator, addValueChangeListener, beforeClientResponse, clear, commit, discard, fireReadOnlyStatusChange, fireValueChange, focus, getConversionError, getConversionError, getConvertedValue, getConverter, getCurrentBufferedSourceException, getCustomAttributes, getErrorMessage, getInternalValue, getModelType, getPropertyDataSource, getRequiredError, getTabIndex, getValidators, isBuffered, isInvalidAllowed, isInvalidCommitted, isModified, isReadOnly, isRequired, isValid, isValidationVisible, readOnlyStatusChange, removeAllValidators, removeListener, removeListener, removeReadOnlyStatusChangeListener, removeValidator, removeValueChangeListener, setBuffered, setConversionError, setConvertedValue, setConverter, setConverter, setCurrentBufferedSourceException, setInternalValue, setInvalidAllowed, setInvalidCommitted, setLocale, setPropertyDataSource, setReadOnly, setRequired, setRequiredError, setTabIndex, setValidationVisible, setValue, shouldHideErrors, validate, validate, valueChange
-
Methods inherited from class com.vaadin.v7.ui.AbstractLegacyComponent
getExplicitImmediateValue, isImmediate, setImmediate
-
Methods inherited from class com.vaadin.ui.AbstractComponent
addContextClickListener, addListener, addShortcutListener, addStyleName, findAncestor, fireComponentErrorEvent, fireComponentEvent, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.event.Action.ShortcutNotifier
addShortcutListener, removeShortcutListener
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, addStyleNames, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
-
-
-
-
Constructor Detail
-
NativeSelect
public NativeSelect()
Deprecated.
-
NativeSelect
public NativeSelect(java.lang.String caption, java.util.Collection<?> options)
Deprecated.
-
NativeSelect
public NativeSelect(java.lang.String caption, Container dataSource)
Deprecated.
-
NativeSelect
public NativeSelect(java.lang.String caption)
Deprecated.
-
-
Method Detail
-
setColumns
@Deprecated public void setColumns(int columns)
Deprecated.As of 7.0. "Columns" does not reflect the exact number of characters that will be displayed. It is better to use setWidth together with "em" to control the width of the field.Sets the width of the component so that it can display approximately the given number of letters.Calling
setColumns(10);
is equivalent to callingsetWidth("10em");
- Parameters:
columns
- the number of columns to set.
-
getColumns
@Deprecated public int getColumns()
Deprecated.As of 7.0. "Columns" does not reflect the exact number of characters that will be displayed. It is better to use setWidth together with "em" to control the width of the field.Gets the number of columns for the component.- See Also:
setColumns(int)
-
paintContent
public void paintContent(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException
Deprecated.Description copied from class:AbstractSelect
Paints the content of this component.- Specified by:
paintContent
in interfacecom.vaadin.ui.LegacyComponent
- Overrides:
paintContent
in classAbstractSelect
- Parameters:
target
- the Paint Event.- Throws:
com.vaadin.server.PaintException
- if the paint operation failed.
-
setMultiSelect
public void setMultiSelect(boolean multiSelect) throws java.lang.UnsupportedOperationException
Deprecated.Description copied from class:AbstractSelect
Sets the multiselect mode. Setting multiselect mode false may lose selection information: if selected items set contains one or more selected items, only one of the selected items is kept as selected. Subclasses of AbstractSelect can choose not to support changing the multiselect mode, and may throwUnsupportedOperationException
.- Overrides:
setMultiSelect
in classAbstractSelect
- Parameters:
multiSelect
- the New value of property multiSelect.- Throws:
java.lang.UnsupportedOperationException
-
setNewItemsAllowed
public void setNewItemsAllowed(boolean allowNewOptions) throws java.lang.UnsupportedOperationException
Deprecated.Description copied from class:AbstractSelect
Enables or disables possibility to add new options by the user.- Overrides:
setNewItemsAllowed
in classAbstractSelect
- Parameters:
allowNewOptions
- the New value of property allowNewOptions.- Throws:
java.lang.UnsupportedOperationException
-
addFocusListener
public void addFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
Deprecated.Description copied from interface:FieldEvents.FocusNotifier
Adds aFocusListener
to the Component which gets fired when aField
receives keyboard focus.- Specified by:
addFocusListener
in interfaceFieldEvents.FocusNotifier
- See Also:
FieldEvents.FocusListener
-
removeFocusListener
public void removeFocusListener(com.vaadin.event.FieldEvents.FocusListener listener)
Deprecated.Description copied from interface:FieldEvents.FocusNotifier
Removes aFocusListener
from the Component.- Specified by:
removeFocusListener
in interfaceFieldEvents.FocusNotifier
- See Also:
FieldEvents.FocusListener
-
addBlurListener
public void addBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
Deprecated.Description copied from interface:FieldEvents.BlurNotifier
Adds aBlurListener
to the Component which gets fired when aField
loses keyboard focus.- Specified by:
addBlurListener
in interfaceFieldEvents.BlurNotifier
- See Also:
FieldEvents.BlurListener
-
removeBlurListener
public void removeBlurListener(com.vaadin.event.FieldEvents.BlurListener listener)
Deprecated.Description copied from interface:FieldEvents.BlurNotifier
Removes aBlurListener
from the Component.- Specified by:
removeBlurListener
in interfaceFieldEvents.BlurNotifier
- See Also:
FieldEvents.BlurListener
-
-