com.vaadin.terminal.gwt.client
Interface Connector

All Superinterfaces:
Serializable
All Known Subinterfaces:
ClientConnector, Component, Component.Focusable, ComponentConnector, ComponentContainer, ComponentContainerConnector, DirectionalManagedLayout, DragSource, DropTarget, Extension, Field<T>, HasComponents, Layout, ManagedLayout, MayScrollChildren, ServerConnector, ShortcutActionHandler.BeforeShortcutActionListener, SimpleManagedLayout, Vaadin6Component
All Known Implementing Classes:
AbsoluteLayout, AbsoluteLayoutConnector, AbstractClientConnector, AbstractComponent, AbstractComponentConnector, AbstractComponentContainer, AbstractComponentContainerConnector, AbstractConnector, AbstractDateFieldConnector, AbstractExtension, AbstractExtensionConnector, AbstractField, AbstractFieldConnector, AbstractJavaScriptComponent, AbstractJavaScriptExtension, AbstractLayout, AbstractLayoutConnector, AbstractMedia, AbstractOrderedLayout, AbstractOrderedLayoutConnector, AbstractSelect, AbstractSplitPanel, AbstractSplitPanelConnector, AbstractTextField, Accordion, AccordionConnector, Audio, AudioConnector, Button, ButtonConnector, CheckBox, CheckBoxConnector, ComboBox, ComboBoxConnector, CssLayout, CssLayoutConnector, CustomComponent, CustomComponentConnector, CustomField, CustomFieldConnector, CustomLayout, CustomLayoutConnector, DateField, DragAndDropService, DragAndDropWrapper, DragAndDropWrapperConnector, Embedded, EmbeddedConnector, Form, FormConnector, FormLayout, FormLayoutConnector, GridLayout, GridLayoutConnector, HorizontalLayout, HorizontalLayoutConnector, HorizontalSplitPanel, HorizontalSplitPanelConnector, InlineDateField, InlineDateFieldConnector, JavaScript, JavaScriptComponentConnector, JavaScriptExtension, JavaScriptManagerConnector, Label, LabelConnector, Link, LinkConnector, ListSelect, ListSelectConnector, LoginForm, MediaBaseConnector, MenuBar, MenuBarConnector, NativeButton, NativeButtonConnector, NativeSelect, NativeSelectConnector, Navigator.EmptyView, Navigator.SimpleViewDisplay, OptionGroup, OptionGroupBaseConnector, OptionGroupConnector, Panel, PanelConnector, PasswordField, PasswordFieldConnector, PopupDateField, PopupDateFieldConnector, PopupView, PopupViewConnector, ProgressIndicator, ProgressIndicatorConnector, RichTextArea, RichTextAreaConnector, Root, Root.LegacyWindow, RootConnector, Select, Slider, SliderConnector, Table, TableConnector, TabSheet, TabsheetBaseConnector, TabsheetConnector, TextArea, TextAreaConnector, TextField, TextFieldConnector, TextualDateConnector, Tree, TreeConnector, TreeTable, TreeTableConnector, TwinColSelect, TwinColSelectConnector, UnknownComponentConnector, Upload, UploadConnector, Vaadin6Connector, VerticalLayout, VerticalLayoutConnector, VerticalSplitPanel, VerticalSplitPanelConnector, Video, VideoConnector, Window, WindowConnector

public interface Connector
extends Serializable

Interface implemented by all classes that are capable of communicating with the server or the client side.

A connector consists of a shared state (server sets the state and automatically communicates changes to the client) and the possibility to do RPC calls either from the server to the client or from the client to the server.

No classes should implement this interface directly, client side classes wanting to communicate with server side should implement ServerConnector and server side classes should implement ClientConnector.

Since:
7.0.0
Version:
7.0.0.alpha3
Author:
Vaadin Ltd

Method Summary
 String getConnectorId()
          Returns the id for this connector.
 Connector getParent()
          Gets the parent connector of this connector, or null if the connector is not attached to any parent.
 SharedState getState()
          Gets the current shared state of the connector.
 

Method Detail

getState

SharedState getState()
Gets the current shared state of the connector.

Returns:
state The shared state object. Can be any sub type of SharedState. Never null.
Since:
7.0.

getConnectorId

String getConnectorId()
Returns the id for this connector. This is set by the framework and does not change during the lifetime of a connector.

Returns:
The id for the connector.

getParent

Connector getParent()
Gets the parent connector of this connector, or null if the connector is not attached to any parent.

Returns:
the parent connector, or null if there is no parent.


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