@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.ListenerClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.ConnectorErrorEvent, ClientConnector.DetachEvent, ClientConnector.DetachListenerSizeable.UnitSIZE_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, isEnabledaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlergetConnectorIdgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedvoid 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 ClientConnectorClientConnector.markAsDirty()Copyright © 2019 Vaadin Ltd. All rights reserved.