@Deprecated public interface LegacyComponent extends VariableOwner, Component, ConnectorEventListener
paintContent(PaintTarget)
and
VariableOwner.changeVariables(Object, java.util.Map)
just like in Vaadin 6.Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListener
Sizeable.Unit
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
Modifier and Type | Method and Description |
---|---|
void |
markAsDirty()
Deprecated.
(non-Javadoc) Marks that this connector's state might have changed.
|
void |
paintContent(PaintTarget target)
Deprecated.
Paints the Paintable into a UIDL stream.
|
changeVariables, isEnabled, isImmediate
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, readDesign, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getConnectorId
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
void paintContent(PaintTarget target) throws PaintException
Paints the Paintable into a UIDL stream. This method creates the UIDL sequence describing it and outputs it to the given UIDL stream.
It is called when the contents of the component should be painted in response to the component first being shown or having been altered so that its visual representation is changed.
target
- the target UIDL stream where the component should paint itself
to.PaintException
- if the paint operation failed.void markAsDirty()
ClientConnector.beforeClientResponse(boolean)
followed by ClientConnector.encodeState()
for all connectors that are marked as dirty and send any updated state
info to the client.
For a LegacyComponent, markAsDirty will also cause
paintContent(PaintTarget)
to be called before sending changes to
the client.
markAsDirty
in interface ClientConnector
ClientConnector.markAsDirty()
Copyright © 2019 Vaadin Ltd. All rights reserved.