com.vaadin.terminal.gwt.client.ui.table
Class TableConnector

java.lang.Object
  extended by com.vaadin.terminal.gwt.client.ui.AbstractConnector
      extended by com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
          extended by com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector
              extended by com.vaadin.terminal.gwt.client.ui.table.TableConnector
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler, StateChangeEvent.StateChangeHandler, ComponentConnector, ComponentContainerConnector, Connector, ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler, DirectionalManagedLayout, Paintable, ServerConnector, ManagedLayout, PostLayoutListener, Serializable
Direct Known Subclasses:
TreeTableConnector

public class TableConnector
extends AbstractComponentContainerConnector
implements Paintable, DirectionalManagedLayout, PostLayoutListener

See Also:
Serialized Form

Constructor Summary
TableConnector()
           
 
Method Summary
protected  com.google.gwt.user.client.ui.Widget createWidget()
          Creates and returns the widget for this VPaintableWidget.
 AbstractFieldState getState()
          Returns the shared state object for this connector.
 VScrollTable getWidget()
          Returns the widget associated with this paintable.
protected  void init()
          Called when the connector has been initialized.
 boolean isReadOnly()
          Checks if the connector is read only.
 void layoutHorizontally()
           
 void layoutVertically()
           
 void postLayout()
           
 void showSavedContextMenu(com.vaadin.terminal.gwt.client.ui.table.VScrollTable.ContextMenuDetails savedContextMenu)
          Shows a saved row context menu if the row for the context menu is still visible.
 void updateCaption(ComponentConnector component)
          Update child components caption, description and error message.
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector
addConnectorHierarchyChangeHandler, getChildren, onConnectorHierarchyChange, setChildren, setWidgetEnabled
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
delegateCaptionHandling, getLayoutManager, getParent, getStyleNames, hasEventListener, isEnabled, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, setParent, setState
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractConnector
addStateChangeHandler, doInit, ensureHandlerManager, fireEvent, getConnection, getConnectorId, getRpcImplementations, isConnectorEnabled, registerRpc, unregisterRpc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.vaadin.terminal.gwt.client.ComponentConnector
delegateCaptionHandling, getLayoutManager, getParent, hasEventListener, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setParent, setWidgetEnabled
 
Methods inherited from interface com.vaadin.terminal.gwt.client.ServerConnector
addStateChangeHandler, doInit, fireEvent, getConnection, getRpcImplementations, isEnabled, onUnregister, setState
 
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector
getConnectorId
 

Constructor Detail

TableConnector

public TableConnector()
Method Detail

init

protected void init()
Description copied from class: AbstractConnector
Called when the connector has been initialized. Override this method to perform initialization of the connector.

Overrides:
init in class AbstractConnector

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)
Specified by:
updateFromUIDL in interface Paintable

createWidget

protected com.google.gwt.user.client.ui.Widget createWidget()
Description copied from class: AbstractComponentConnector
Creates and returns the widget for this VPaintableWidget. This method should only be called once when initializing the paintable.

Specified by:
createWidget in class AbstractComponentConnector
Returns:

getWidget

public VScrollTable getWidget()
Description copied from class: AbstractComponentConnector
Returns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.

Specified by:
getWidget in interface ComponentConnector
Overrides:
getWidget in class AbstractComponentConnector
Returns:
The widget associated with this paintable

updateCaption

public void updateCaption(ComponentConnector component)
Description copied from interface: ComponentContainerConnector
Update child components caption, description and error message.

Each component is responsible for maintaining its caption, description and error message. In most cases components doesn't want to do that and those elements reside outside of the component. Because of this layouts must provide service for it's childen to show those elements for them.

Specified by:
updateCaption in interface ComponentContainerConnector
Parameters:
component - Child component for which service is requested.

layoutVertically

public void layoutVertically()
Specified by:
layoutVertically in interface DirectionalManagedLayout

layoutHorizontally

public void layoutHorizontally()
Specified by:
layoutHorizontally in interface DirectionalManagedLayout

postLayout

public void postLayout()
Specified by:
postLayout in interface PostLayoutListener

isReadOnly

public boolean isReadOnly()
Description copied from interface: ComponentConnector
Checks if the connector is read only.

Specified by:
isReadOnly in interface ComponentConnector
Overrides:
isReadOnly in class AbstractComponentConnector
Returns:
true

getState

public AbstractFieldState getState()
Description copied from class: AbstractComponentConnector
Returns the shared state object for this connector. If overriding this method to return a more specific type, also #createState() must be overridden.

Specified by:
getState in interface ComponentConnector
Specified by:
getState in interface Connector
Overrides:
getState in class AbstractComponentConnector
Returns:
current shared state (not null)

showSavedContextMenu

public void showSavedContextMenu(com.vaadin.terminal.gwt.client.ui.table.VScrollTable.ContextMenuDetails savedContextMenu)
Shows a saved row context menu if the row for the context menu is still visible. Does nothing if a context menu has not been saved.

Parameters:
savedContextMenu -


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