public class SelectUserField
extends com.vaadin.ui.HorizontalLayout
implements com.vaadin.ui.Field
com.vaadin.ui.AbstractComponent.ComponentErrorEvent, com.vaadin.ui.AbstractComponent.ComponentErrorHandlercom.vaadin.ui.Field.ValueChangeEventcom.vaadin.data.Buffered.SourceExceptioncom.vaadin.data.Property.ConversionException, com.vaadin.data.Property.Editor, com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ReadOnlyStatusChangeEvent, com.vaadin.data.Property.ReadOnlyStatusChangeListener, com.vaadin.data.Property.ReadOnlyStatusChangeNotifier, com.vaadin.data.Property.ValueChangeListener, com.vaadin.data.Property.ValueChangeNotifier, com.vaadin.data.Property.Viewercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.ErrorListener, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.terminal.Paintable.RepaintRequestEvent, com.vaadin.terminal.Paintable.RepaintRequestListenercom.vaadin.ui.Layout.AlignmentHandler, com.vaadin.ui.Layout.MarginHandler, com.vaadin.ui.Layout.MarginInfo, com.vaadin.ui.Layout.SpacingHandlercom.vaadin.ui.ComponentContainer.ComponentAttachEvent, com.vaadin.ui.ComponentContainer.ComponentAttachListener, com.vaadin.ui.ComponentContainer.ComponentDetachEvent, com.vaadin.ui.ComponentContainer.ComponentDetachListener| Modifier and Type | Field and Description |
|---|---|
protected I18nManager |
i18nManager |
protected User |
selectedUser |
protected com.vaadin.ui.Label |
selectedUserLabel |
protected com.vaadin.ui.Button |
selectUserButton |
protected com.vaadin.ui.TextField |
wrappedField |
| Constructor and Description |
|---|
SelectUserField(String caption) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(com.vaadin.data.Property.ValueChangeListener listener) |
void |
addValidator(com.vaadin.data.Validator validator) |
void |
commit() |
void |
discard() |
void |
focus() |
com.vaadin.data.Property |
getPropertyDataSource() |
String |
getRequiredError() |
protected Object |
getSelectedUserLabel() |
int |
getTabIndex() |
Class<?> |
getType() |
Collection<com.vaadin.data.Validator> |
getValidators() |
Object |
getValue() |
boolean |
isInvalidAllowed() |
boolean |
isInvalidCommitted() |
boolean |
isModified() |
boolean |
isReadThrough() |
boolean |
isRequired() |
boolean |
isValid() |
boolean |
isWriteThrough() |
void |
removeListener(com.vaadin.data.Property.ValueChangeListener listener) |
void |
removeValidator(com.vaadin.data.Validator validator) |
void |
setInvalidAllowed(boolean invalidValueAllowed) |
void |
setInvalidCommitted(boolean isCommitted) |
void |
setPropertyDataSource(com.vaadin.data.Property newDataSource) |
void |
setReadThrough(boolean readThrough) |
void |
setRequired(boolean required) |
void |
setRequiredError(String requiredMessage) |
void |
setTabIndex(int tabIndex) |
void |
setValue(Object newValue) |
void |
setWriteThrough(boolean writeThrough) |
void |
validate() |
void |
valueChange(com.vaadin.data.Property.ValueChangeEvent event) |
addComponent, addComponent, addComponentAsFirst, addListener, getComponent, getComponentAlignment, getComponentCount, getComponentIndex, getComponentIterator, getExpandRatio, isSpacing, isSpacingEnabled, paintContent, removeComponent, removeListener, replaceComponent, setComponentAlignment, setComponentAlignment, setComponentAlignment, setExpandRatio, setSpacingchangeVariables, fireClick, getMargin, setMargin, setMargin, setMarginaddListener, addListener, attach, detach, fireComponentAttachEvent, fireComponentDetachEvent, moveComponentsFrom, removeAllComponents, removeListener, removeListener, requestRepaintAll, setEnabled, setHeight, setWidthaddListener, addListener, addListener, addListener, addListener, addStyleName, childRequestedRepaint, fireComponentErrorEvent, fireComponentEvent, fireEvent, getApplication, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorHandler, getErrorMessage, getHeight, getHeightUnits, getIcon, getListeners, getLocale, getParent, getStyle, getStyleName, getWidth, getWidthUnits, getWindow, handleError, hasListeners, isEnabled, isImmediate, isReadOnly, isVisible, paint, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeStyleName, requestRepaint, requestRepaintRequests, setCaption, setComponentError, setData, setDebugId, setDescription, setErrorHandler, setHeight, setHeight, setHeightUnits, setIcon, setImmediate, setLocale, setParent, setReadOnly, setSizeFull, setSizeUndefined, setStyle, setStyleName, setVisible, setWidth, setWidth, setWidthUnitsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, attach, childRequestedRepaint, detach, getApplication, getCaption, getIcon, getLocale, getParent, getStyleName, getWindow, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setEnabled, setIcon, setParent, setReadOnly, setStyleName, setVisibleaddListener, getDebugId, paint, removeListener, requestRepaint, requestRepaintRequests, setDebugIdprotected I18nManager i18nManager
protected com.vaadin.ui.TextField wrappedField
protected com.vaadin.ui.Label selectedUserLabel
protected com.vaadin.ui.Button selectUserButton
protected User selectedUser
public SelectUserField(String caption)
public boolean isInvalidCommitted()
isInvalidCommitted in interface com.vaadin.data.BufferedValidatablepublic void setInvalidCommitted(boolean isCommitted)
setInvalidCommitted in interface com.vaadin.data.BufferedValidatablepublic void commit()
throws com.vaadin.data.Buffered.SourceException,
com.vaadin.data.Validator.InvalidValueException
commit in interface com.vaadin.data.Bufferedcom.vaadin.data.Buffered.SourceExceptioncom.vaadin.data.Validator.InvalidValueExceptionpublic void discard()
throws com.vaadin.data.Buffered.SourceException
discard in interface com.vaadin.data.Bufferedcom.vaadin.data.Buffered.SourceExceptionpublic boolean isWriteThrough()
isWriteThrough in interface com.vaadin.data.Bufferedpublic void setWriteThrough(boolean writeThrough)
throws com.vaadin.data.Buffered.SourceException,
com.vaadin.data.Validator.InvalidValueException
setWriteThrough in interface com.vaadin.data.Bufferedcom.vaadin.data.Buffered.SourceExceptioncom.vaadin.data.Validator.InvalidValueExceptionpublic boolean isReadThrough()
isReadThrough in interface com.vaadin.data.Bufferedpublic void setReadThrough(boolean readThrough)
throws com.vaadin.data.Buffered.SourceException
setReadThrough in interface com.vaadin.data.Bufferedcom.vaadin.data.Buffered.SourceExceptionpublic boolean isModified()
isModified in interface com.vaadin.data.Bufferedpublic void addValidator(com.vaadin.data.Validator validator)
addValidator in interface com.vaadin.data.Validatablepublic void removeValidator(com.vaadin.data.Validator validator)
removeValidator in interface com.vaadin.data.Validatablepublic Collection<com.vaadin.data.Validator> getValidators()
getValidators in interface com.vaadin.data.Validatablepublic boolean isValid()
isValid in interface com.vaadin.data.Validatablepublic void validate()
throws com.vaadin.data.Validator.InvalidValueException
validate in interface com.vaadin.data.Validatablecom.vaadin.data.Validator.InvalidValueExceptionpublic boolean isInvalidAllowed()
isInvalidAllowed in interface com.vaadin.data.Validatablepublic void setInvalidAllowed(boolean invalidValueAllowed)
throws UnsupportedOperationException
setInvalidAllowed in interface com.vaadin.data.ValidatableUnsupportedOperationExceptionpublic Object getValue()
getValue in interface com.vaadin.data.Propertypublic void setValue(Object newValue) throws com.vaadin.data.Property.ReadOnlyException, com.vaadin.data.Property.ConversionException
setValue in interface com.vaadin.data.Propertycom.vaadin.data.Property.ReadOnlyExceptioncom.vaadin.data.Property.ConversionExceptionprotected Object getSelectedUserLabel()
public Class<?> getType()
getType in interface com.vaadin.data.Propertypublic void addListener(com.vaadin.data.Property.ValueChangeListener listener)
addListener in interface com.vaadin.data.Property.ValueChangeNotifierpublic void removeListener(com.vaadin.data.Property.ValueChangeListener listener)
removeListener in interface com.vaadin.data.Property.ValueChangeNotifierpublic void valueChange(com.vaadin.data.Property.ValueChangeEvent event)
valueChange in interface com.vaadin.data.Property.ValueChangeListenerpublic void setPropertyDataSource(com.vaadin.data.Property newDataSource)
setPropertyDataSource in interface com.vaadin.data.Property.Viewerpublic com.vaadin.data.Property getPropertyDataSource()
getPropertyDataSource in interface com.vaadin.data.Property.Viewerpublic int getTabIndex()
getTabIndex in interface com.vaadin.ui.Component.Focusablepublic void setTabIndex(int tabIndex)
setTabIndex in interface com.vaadin.ui.Component.Focusablepublic boolean isRequired()
isRequired in interface com.vaadin.ui.Fieldpublic void setRequired(boolean required)
setRequired in interface com.vaadin.ui.Fieldpublic void setRequiredError(String requiredMessage)
setRequiredError in interface com.vaadin.ui.Fieldpublic String getRequiredError()
getRequiredError in interface com.vaadin.ui.Fieldpublic void focus()
focus in interface com.vaadin.ui.Component.Focusablefocus in class com.vaadin.ui.AbstractComponentCopyright © 2016 Alfresco. All rights reserved.