com.vaadin.terminal.gwt.client.ui.table
Class TableConnector
java.lang.Object
com.vaadin.terminal.gwt.client.ui.AbstractConnector
com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
com.vaadin.terminal.gwt.client.ui.AbstractComponentContainerConnector
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
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector |
createWidget, delegateCaptionHandling, getLayoutManager, hasEventListener, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, updateEnabledState, updateWidgetStyleNames |
Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractConnector |
addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, getChildren, getConnection, getConnectorId, getParent, getRpcImplementations, isEnabled, registerRpc, setChildren, setParent, 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.ServerConnector |
addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, isEnabled, onUnregister, setChildren, setParent, updateEnabledState |
TableConnector
public TableConnector()
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 AbstractComponentConnector
updateFromUIDL
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
- Specified by:
updateFromUIDL
in interface Paintable
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:
AbstractConnector
- Returns the shared state object for this connector.
Override this method to define the shared state type for your connector.
- Specified by:
getState
in interface ComponentConnector
- Specified by:
getState
in interface Connector
- Overrides:
getState
in class AbstractComponentConnector
- Returns:
- the current shared state (never 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
-
getTooltipInfo
public TooltipInfo getTooltipInfo(com.google.gwt.dom.client.Element element)
- Description copied from interface:
ComponentConnector
- Gets the tooltip info for the given element.
- Specified by:
getTooltipInfo
in interface ComponentConnector
- Overrides:
getTooltipInfo
in class AbstractComponentConnector
- Parameters:
element
- The element to lookup a tooltip for
- Returns:
- The tooltip for the element or null if no tooltip is defined for
this element.
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.