com.vaadin.ui
Class ListSelect
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractField<java.lang.Object>
com.vaadin.ui.AbstractSelect
com.vaadin.ui.ListSelect
- All Implemented Interfaces:
- 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, Action.ShortcutNotifier, ConnectorEventListener, MethodEventSource, ClientConnector, Sizeable, VariableOwner, com.vaadin.shared.Connector, Component, Component.Focusable, Field<java.lang.Object>, LegacyComponent, java.io.Serializable, java.util.EventListener
public class ListSelect
- extends AbstractSelect
This is a simple list select without, for instance, support for new items,
lazyloading, and other advanced features.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface com.vaadin.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 |
Method Summary |
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. |
int |
getRows()
|
void |
paintContent(PaintTarget target)
Paints the content of this component. |
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. |
void |
setRows(int rows)
Sets the number of rows in the editor. |
Methods inherited from class com.vaadin.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, getType, getType, getValue, getVisibleItemIds, isEmpty, isMultiSelect, isNewItemsAllowed, isNullSelectionAllowed, isSelected, paintItem, readDesign, removeAllItems, removeContainerProperty, removeItem, removeItemSetChangeListener, removeListener, removeListener, removePropertySetChangeListener, sanitizeSelection, select, setContainerDataSource, setItemCaption, setItemCaptionMode, setItemCaptionPropertyId, setItemIcon, setItemIconPropertyId, setMultiSelect, setNewItemHandler, setNewItemsAllowed, setNullSelectionAllowed, setNullSelectionItemId, setValue, setValue, size, unselect |
Methods inherited from class com.vaadin.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, getState, getState, 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, shouldHideErrors, toString, validate, validate, valueChange, writeDesign |
Methods inherited from class com.vaadin.ui.AbstractComponent |
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, isImmediate, isOrHasAncestor, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setImmediate, setParent, setPrimaryStyleName, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined |
Methods inherited from class com.vaadin.server.AbstractClientConnector |
addAttachListener, addDetachListener, addExtension, 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, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.vaadin.ui.Component |
addListener, addStyleName, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesign |
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.shared.Connector |
getConnectorId |
Methods inherited from interface com.vaadin.server.Sizeable |
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined |
ListSelect
public ListSelect()
ListSelect
public ListSelect(java.lang.String caption,
java.util.Collection<?> options)
ListSelect
public ListSelect(java.lang.String caption,
Container dataSource)
ListSelect
public ListSelect(java.lang.String caption)
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 calling
setWidth("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)
getRows
public int getRows()
setRows
public void setRows(int rows)
- Sets the number of rows in the editor. If the number of rows is set 0,
the actual number of displayed rows is determined implicitly by the
adapter.
- Parameters:
rows
- the number of rows to set.
paintContent
public void paintContent(PaintTarget target)
throws PaintException
- Description copied from class:
AbstractSelect
- Paints the content of this component.
- Specified by:
paintContent
in interface LegacyComponent
- Overrides:
paintContent
in class AbstractSelect
- Parameters:
target
- the Paint Event.
- Throws:
PaintException
- if the paint operation failed.
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.