com.vaadin.ui
Interface LegacyComponent

All Superinterfaces:
ClientConnector, Component, com.vaadin.shared.Connector, ConnectorEventListener, java.util.EventListener, java.io.Serializable, Sizeable, VariableOwner
All Known Implementing Classes:
AbstractSelect, AbstractTextField, Calendar, ColorPickerPopup, ComboBox, CustomLayout, DateField, DragAndDropWrapper, Embedded, Form, GridLayout, InlineDateField, LegacyWindow, ListSelect, MenuBar, NativeSelect, OptionGroup, Panel, PasswordField, PopupDateField, RichTextArea, Select, Table, TextArea, TextField, Tree, TreeTable, TwinColSelect, UI, Upload, Window

Deprecated. As of 7.0. This class is only intended to ease migration and should not be used for new projects.

@Deprecated
public interface LegacyComponent
extends VariableOwner, Component, ConnectorEventListener

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) and VariableOwner.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.ui.Component
Component.ErrorEvent, Component.Event, Component.Focusable, Component.Listener
 
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.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
 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.VariableOwner
changeVariables, isEnabled, isImmediate
 
Methods inherited from interface com.vaadin.ui.Component
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
 
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.shared.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.server.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
 

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 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.

Specified by:
markAsDirty in interface ClientConnector
See Also:
ClientConnector.markAsDirty()


Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.