com.vaadin.ui.
Interface LegacyComponent
-
All Superinterfaces:
ClientConnector
,Component
,Connector
,ConnectorEventListener
,EventListener
,Serializable
,SerializableEventListener
,Sizeable
,VariableOwner
All Known Implementing Classes:
ColorPickerPopup
,CustomLayout
,DragAndDropWrapper
,LegacyWindow
,MenuBar
,Panel
,UI
,Upload
,Window
@Deprecated public interface LegacyComponent extends VariableOwner, Component, ConnectorEventListener
Deprecated.As of 7.0. This class is only intended to ease migration and should not be used for new projects.Interface provided to ease porting of Vaadin 6 components to Vaadin 7. By implementing this interface your Component will be able to use
paintContent(PaintTarget)
andVariableOwner.changeVariables(Object, java.util.Map)
just like in Vaadin 6.Since:
7.0.0
Author:
Vaadin Ltd
-
-
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 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
-
-
Method Summary
All Methods Modifier and Type Method 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.
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
Methods inherited from interface com.vaadin.ui.Component
addListener, 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, writeDesign
-
Methods inherited from interface com.vaadin.shared.Connector
getConnectorId
-
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightFull, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull, setWidthUndefined
-
Methods inherited from interface com.vaadin.server.VariableOwner
changeVariables, isEnabled
-
-
-
-
Method Detail
-
paintContent
void paintContent​(PaintTarget target) throws PaintException
Deprecated.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.
Parameters:
target
- the target UIDL stream where the component should paint itself to.Throws:
PaintException
- if the paint operation failed.
-
markAsDirty
void markAsDirty()
Deprecated.(non-Javadoc) Marks that this connector's state might have changed. When the framework is about to send new data to the client-side, it will run
ClientConnector.beforeClientResponse(boolean)
followed byClientConnector.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.Specified by:
markAsDirty
in interfaceClientConnector
See Also:
-
-