@Deprecated public class AbstractLegacyComponent extends AbstractComponent
Used since immediate and read-only properties has been removed in Vaadin 8
from AbstractComponent.
Component.ErrorEvent, Component.Event, Component.Focusable, Component.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitDESIGN_ATTR_PLAIN_TEXTSIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS| Constructor and Description |
|---|
AbstractLegacyComponent()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeClientResponse(boolean initial)
Deprecated.
|
protected Boolean |
getExplicitImmediateValue()
Deprecated.
Returns the explicitly set immediate value.
|
protected AbstractLegacyComponentState |
getState()
Deprecated.
|
protected AbstractLegacyComponentState |
getState(boolean markAsDirty)
Deprecated.
|
boolean |
isImmediate()
Deprecated.
Returns the immediate mode of the component.
|
boolean |
isReadOnly()
Deprecated.
Tests whether the component is in the read-only mode.
|
void |
readDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
Deprecated.
|
void |
setImmediate(boolean immediate)
Deprecated.
Sets the component's immediate mode to the specified status.
|
void |
setReadOnly(boolean readOnly)
Deprecated.
Sets the read-only mode of the component to the specified mode.
|
void |
writeDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
Deprecated.
|
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, 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, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefinedaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, 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, updateDiffstateclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitaddStyleNames, getUI, removeStyleNames, setStyleNameaddAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerprotected Boolean getExplicitImmediateValue()
setImmediate(boolean) has not been explicitly invokedpublic boolean isImmediate()
Since Vaadin 8, the default mode is immediate.
public void setImmediate(boolean immediate)
Since Vaadin 8, the default mode is immediate.
immediate - the boolean value specifying if the component should be in the
immediate mode after the call.public boolean isReadOnly()
AbstractField
or LegacyField components normally have a value that can be input
or changed by the user, this is mostly relevant only to field components,
though not restricted to them.
Notice that the read-only mode only affects whether the user can change the value of the component; it is possible to, for example, scroll a read-only table.
The method will return true if the component or any of its
parents is in the read-only mode.
isReadOnly in class AbstractComponenttrue if the component or any of its parents is in
read-only mode, false if not.setReadOnly(boolean)public void setReadOnly(boolean readOnly)
As only AbstractField or LegacyField components normally
have a value that can be input or changed by the user, this is mostly
relevant only to field components, though not restricted to them.
Notice that the read-only mode only affects whether the user can change the value of the component; it is possible to, for example, scroll a read-only table.
In Vaadin 8 the read-only property is part of HasValue API.
setReadOnly in class AbstractComponentreadOnly - a boolean value specifying whether the component is put
read-only mode or notpublic void readDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
readDesign in interface ComponentreadDesign in class AbstractComponentpublic void writeDesign(org.jsoup.nodes.Element design,
DesignContext designContext)
writeDesign in interface ComponentwriteDesign in class AbstractComponentpublic void beforeClientResponse(boolean initial)
beforeClientResponse in interface ClientConnectorbeforeClientResponse in class AbstractComponentprotected AbstractLegacyComponentState getState()
getState in class AbstractComponentprotected AbstractLegacyComponentState getState(boolean markAsDirty)
getState in class AbstractComponentCopyright © 2019 Vaadin Ltd. All rights reserved.