Class AbstractLegacyComponent
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- com.vaadin.v7.ui.AbstractLegacyComponent
-
- All Implemented Interfaces:
ContextClickEvent.ContextClickNotifier
,MethodEventSource
,ClientConnector
,Sizeable
,com.vaadin.shared.Connector
,Component
,Serializable
- Direct Known Subclasses:
AbstractColorPicker
,AbstractField
,Calendar
,Label
,Upload
@Deprecated public class AbstractLegacyComponent extends AbstractComponent
Deprecated.only used for Vaadin 7 compatiblity componentsAn abstract base class for compatibility components.Used since immediate and read-only properties has been removed in Vaadin 8 from
AbstractComponent
.- Since:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
-
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
-
Nested classes/interfaces inherited from interface com.vaadin.server.Sizeable
Sizeable.Unit
-
-
Field Summary
-
Fields inherited from class com.vaadin.ui.AbstractComponent
DESIGN_ATTR_PLAIN_TEXT
-
Fields inherited from interface com.vaadin.server.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
-
-
Constructor Summary
Constructors Constructor Description AbstractLegacyComponent()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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.-
Methods inherited from class com.vaadin.ui.AbstractComponent
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, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, 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, 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, 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.server.ClientConnector
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addStyleNames, getUI, removeStyleNames, setStyleName
-
-
-
-
Method Detail
-
getExplicitImmediateValue
protected Boolean getExplicitImmediateValue()
Deprecated.Returns the explicitly set immediate value.- Returns:
- the explicitly set immediate value or null if
setImmediate(boolean)
has not been explicitly invoked
-
isImmediate
public boolean isImmediate()
Deprecated.Returns the immediate mode of the component.Since Vaadin 8, the default mode is immediate.
- Returns:
- true if the component is in immediate mode (explicitly or implicitly set), false if the component if not in immediate mode
-
setImmediate
public void setImmediate(boolean immediate)
Deprecated.Sets the component's immediate mode to the specified status.Since Vaadin 8, the default mode is immediate.
- Parameters:
immediate
- the boolean value specifying if the component should be in the immediate mode after the call.
-
isReadOnly
public boolean isReadOnly()
Deprecated.Tests whether the component is in the read-only mode. The user can not change the value of a read-only component. As onlyAbstractField
orLegacyField
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.- Overrides:
isReadOnly
in classAbstractComponent
- Returns:
true
if the component or any of its parents is in read-only mode,false
if not.- See Also:
setReadOnly(boolean)
-
setReadOnly
public void setReadOnly(boolean readOnly)
Deprecated.Sets the read-only mode of the component to the specified mode. The user can not change the value of a read-only component.As only
AbstractField
orLegacyField
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.- Overrides:
setReadOnly
in classAbstractComponent
- Parameters:
readOnly
- a boolean value specifying whether the component is put read-only mode or not
-
readDesign
public void readDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Deprecated.- Specified by:
readDesign
in interfaceComponent
- Overrides:
readDesign
in classAbstractComponent
-
writeDesign
public void writeDesign(org.jsoup.nodes.Element design, DesignContext designContext)
Deprecated.- Specified by:
writeDesign
in interfaceComponent
- Overrides:
writeDesign
in classAbstractComponent
-
beforeClientResponse
public void beforeClientResponse(boolean initial)
Deprecated.- Specified by:
beforeClientResponse
in interfaceClientConnector
- Overrides:
beforeClientResponse
in classAbstractComponent
-
getState
protected AbstractLegacyComponentState getState()
Deprecated.- Overrides:
getState
in classAbstractComponent
-
getState
protected AbstractLegacyComponentState getState(boolean markAsDirty)
Deprecated.- Overrides:
getState
in classAbstractComponent
-
-