com.vaadin.terminal
Interface Vaadin6Component

All Superinterfaces:
ClientConnector, Component, Connector, EventListener, RpcTarget, Serializable, Sizeable, VariableOwner
All Known Implementing Classes:
AbstractSelect, AbstractTextField, Accordion, ComboBox, CustomLayout, DateField, DragAndDropWrapper, Embedded, Form, GridLayout, InlineDateField, Link, ListSelect, MenuBar, NativeSelect, OptionGroup, Panel, PasswordField, PopupDateField, PopupView, ProgressIndicator, RichTextArea, Root, Root.LegacyWindow, Select, Slider, Table, TabSheet, TextArea, TextField, Tree, TreeTable, TwinColSelect, Upload, Window

public interface Vaadin6Component
extends VariableOwner, Component, EventListener

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
Version:
7.0.0.alpha3
Author:
Vaadin Ltd

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.VariableOwner
VariableOwner.ErrorEvent
 
Nested classes/interfaces inherited from interface com.vaadin.ui.Component
Component.ErrorEvent, Component.ErrorListener, Component.Event, Component.Focusable, Component.Listener
 
Nested classes/interfaces inherited from interface com.vaadin.terminal.Sizeable
Sizeable.Unit
 
Field Summary
 
Fields inherited from interface com.vaadin.terminal.Sizeable
SIZE_UNDEFINED, UNITS_CM, UNITS_EM, UNITS_EX, UNITS_INCH, UNITS_MM, UNITS_PERCENTAGE, UNITS_PICAS, UNITS_PIXELS, UNITS_POINTS
 
Method Summary
 void paintContent(PaintTarget target)
           Paints the Paintable into a UIDL stream.
 
Methods inherited from interface com.vaadin.terminal.VariableOwner
changeVariables, isEnabled, isImmediate
 
Methods inherited from interface com.vaadin.ui.Component
addListener, addStyleName, attach, getApplication, getCaption, getDebugId, getIcon, getLocale, getParent, getRoot, getState, getStyleName, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setDebugId, setEnabled, setIcon, setReadOnly, setStyleName, setVisible, updateState
 
Methods inherited from interface com.vaadin.terminal.gwt.server.ClientConnector
detach, getExtensions, getStateType, isConnectorEnabled, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setParent
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector
getConnectorId
 
Methods inherited from interface com.vaadin.terminal.gwt.server.RpcTarget
getRpcManager
 
Methods inherited from interface com.vaadin.terminal.Sizeable
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setSizeFull, setSizeUndefined, setWidth, setWidth
 

Method Detail

paintContent

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.

Parameters:
target - the target UIDL stream where the component should paint itself to.
Throws:
PaintException - if the paint operation failed.


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