public class CubaPickerField<T>
extends com.vaadin.ui.CustomField<T>
implements com.vaadin.event.Action.Container
| Modifier and Type | Class and Description |
|---|---|
static class |
CubaPickerField.FieldValueChangeEvent<V> |
static interface |
CubaPickerField.FieldValueChangeListener<V> |
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlercom.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListenercom.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListenercom.vaadin.server.Sizeable.Unit| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
BUTTON_STYLENAME |
protected java.util.List<com.vaadin.ui.Button> |
buttons |
protected CubaCssActionsLayout |
container |
protected com.vaadin.ui.AbstractComponent |
field |
protected boolean |
fieldReadOnly |
protected com.vaadin.shared.Registration |
fieldValueChangeListener |
protected com.vaadin.ui.IconGenerator<T> |
iconGenerator |
protected com.vaadin.ui.CssLayout |
inputWrapper |
protected T |
internalValue |
protected static java.lang.String |
LAYOUT_STYLENAME |
protected static java.lang.String |
PRIMARY_STYLENAME |
protected boolean |
suppressTextChangeListener |
protected static java.lang.String |
TEXT_FIELD_STYLENAME |
protected com.vaadin.data.ValueProvider<T,java.lang.String> |
textFieldValueProvider |
| Constructor and Description |
|---|
CubaPickerField() |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionHandler(com.vaadin.event.Action.Handler actionHandler) |
void |
addButton(com.vaadin.ui.Button button,
int index) |
com.vaadin.shared.Registration |
addFieldListener(CubaPickerField.FieldValueChangeListener<T> listener) |
void |
attach() |
protected void |
doSetValue(T value) |
void |
focus() |
java.util.List<com.vaadin.ui.Button> |
getButtons() |
protected java.lang.String |
getEmptyStringRepresentation() |
com.vaadin.ui.AbstractComponent |
getField() |
com.vaadin.ui.IconGenerator<T> |
getIconGenerator() |
protected java.lang.String |
getStringRepresentation() |
int |
getTabIndex() |
com.vaadin.data.ValueProvider<T,java.lang.String> |
getTextFieldValueProvider() |
T |
getValue() |
protected void |
init() |
protected com.vaadin.ui.Component |
initContent() |
protected void |
initField() |
protected void |
initLayout() |
protected boolean |
isDifferentValue(T newValue) |
boolean |
isEmpty() |
boolean |
isFieldReadOnly() |
protected void |
onFieldValueChange(com.vaadin.data.HasValue.ValueChangeEvent<?> event) |
void |
removeActionHandler(com.vaadin.event.Action.Handler actionHandler) |
void |
removeButton(com.vaadin.ui.Button button) |
void |
setFieldReadOnly(boolean fieldReadOnly) |
void |
setHeight(float height,
com.vaadin.server.Sizeable.Unit unit) |
void |
setIconGenerator(com.vaadin.ui.IconGenerator<T> iconGenerator) |
void |
setReadOnly(boolean readOnly) |
void |
setTabIndex(int tabIndex) |
void |
setTextFieldValueProvider(com.vaadin.data.ValueProvider<T,java.lang.String> textFieldValueProvider) |
void |
setWidth(float width,
com.vaadin.server.Sizeable.Unit unit) |
protected void |
updateFieldReadOnly() |
protected void |
updateFieldReadOnlyFocusable() |
protected void |
updateIcon(T value) |
protected void |
updateTextRepresentation() |
getContent, getState, getState, iterator, setFocusDelegateaddValueChangeListener, createValueChange, getCustomAttributes, isReadOnly, isRequiredIndicatorVisible, readDesign, setRequiredIndicatorVisible, setValue, setValue, writeDesignaddContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, 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, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddListener, addStyleName, addStyleNames, getCaption, getCubaId, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setCubaId, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected static final java.lang.String PRIMARY_STYLENAME
protected static final java.lang.String LAYOUT_STYLENAME
protected static final java.lang.String TEXT_FIELD_STYLENAME
protected static final java.lang.String BUTTON_STYLENAME
protected T internalValue
protected com.vaadin.ui.AbstractComponent field
protected com.vaadin.data.ValueProvider<T,java.lang.String> textFieldValueProvider
protected com.vaadin.ui.IconGenerator<T> iconGenerator
protected java.util.List<com.vaadin.ui.Button> buttons
protected CubaCssActionsLayout container
protected com.vaadin.ui.CssLayout inputWrapper
protected boolean fieldReadOnly
protected boolean suppressTextChangeListener
protected com.vaadin.shared.Registration fieldValueChangeListener
protected void init()
protected com.vaadin.ui.Component initContent()
initContent in class com.vaadin.ui.CustomField<T>protected void initLayout()
protected void initField()
protected boolean isDifferentValue(T newValue)
isDifferentValue in class com.vaadin.ui.AbstractField<T>protected void onFieldValueChange(com.vaadin.data.HasValue.ValueChangeEvent<?> event)
public com.vaadin.ui.AbstractComponent getField()
protected void updateTextRepresentation()
protected java.lang.String getStringRepresentation()
protected java.lang.String getEmptyStringRepresentation()
protected void doSetValue(T value)
doSetValue in class com.vaadin.ui.AbstractField<T>public com.vaadin.ui.IconGenerator<T> getIconGenerator()
public void setIconGenerator(com.vaadin.ui.IconGenerator<T> iconGenerator)
protected void updateIcon(T value)
public boolean isFieldReadOnly()
public void setFieldReadOnly(boolean fieldReadOnly)
public void setReadOnly(boolean readOnly)
protected void updateFieldReadOnly()
protected void updateFieldReadOnlyFocusable()
public void attach()
attach in interface com.vaadin.server.ClientConnectorattach in interface com.vaadin.ui.Componentattach in class com.vaadin.ui.CustomField<T>public void setWidth(float width,
com.vaadin.server.Sizeable.Unit unit)
setWidth in interface com.vaadin.server.SizeablesetWidth in class com.vaadin.ui.CustomField<T>public void setHeight(float height,
com.vaadin.server.Sizeable.Unit unit)
setHeight in interface com.vaadin.server.SizeablesetHeight in class com.vaadin.ui.CustomField<T>public java.util.List<com.vaadin.ui.Button> getButtons()
public void addButton(com.vaadin.ui.Button button,
int index)
public void removeButton(com.vaadin.ui.Button button)
public com.vaadin.shared.Registration addFieldListener(CubaPickerField.FieldValueChangeListener<T> listener)
public void focus()
focus in interface com.vaadin.ui.Component.Focusablefocus in class com.vaadin.ui.CustomField<T>public void setTabIndex(int tabIndex)
setTabIndex in interface com.vaadin.ui.Component.FocusablesetTabIndex in class com.vaadin.ui.CustomField<T>public int getTabIndex()
getTabIndex in interface com.vaadin.ui.Component.FocusablegetTabIndex in class com.vaadin.ui.CustomField<T>public void addActionHandler(com.vaadin.event.Action.Handler actionHandler)
addActionHandler in interface com.vaadin.event.Action.Containerpublic void removeActionHandler(com.vaadin.event.Action.Handler actionHandler)
removeActionHandler in interface com.vaadin.event.Action.Containerpublic boolean isEmpty()
isEmpty in interface com.vaadin.data.HasValue<T>public com.vaadin.data.ValueProvider<T,java.lang.String> getTextFieldValueProvider()
public void setTextFieldValueProvider(com.vaadin.data.ValueProvider<T,java.lang.String> textFieldValueProvider)