Package com.vaadin.v7.client.ui.table
Class TableConnector
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.ui.AbstractComponentConnector
-
- com.vaadin.v7.client.ui.AbstractLegacyComponentConnector
-
- com.vaadin.v7.client.ui.AbstractFieldConnector
-
- com.vaadin.v7.client.ui.table.TableConnector
-
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler,StateChangeEvent.StateChangeHandler,ComponentConnector,ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler,DirectionalManagedLayout,HasChildMeasurementHintConnector,HasComponentsConnector,HasWidget,Paintable,ServerConnector,HasErrorIndicator,HasRequiredIndicator,ManagedLayout,PostLayoutListener,com.vaadin.shared.Connector,ComponentConnector,Serializable
- Direct Known Subclasses:
TreeTableConnector
public class TableConnector extends AbstractFieldConnector implements ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler, Paintable, DirectionalManagedLayout, PostLayoutListener, HasChildMeasurementHintConnector
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.vaadin.client.HasChildMeasurementHintConnector
HasChildMeasurementHintConnector.ChildMeasurementHint
-
-
Field Summary
-
Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description TableConnector()
-
Method Summary
-
Methods inherited from class com.vaadin.v7.client.ui.AbstractFieldConnector
isErrorIndicatorVisible, isModified, isRequired, isRequiredIndicatorVisible, updateWidgetStyleNames
-
Methods inherited from class com.vaadin.v7.client.ui.AbstractLegacyComponentConnector
getRpcProxy
-
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onStateChanged, registerTouchHandlers, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateWidgetSize
-
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getStateType, getTag, hasEventListener, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, 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.client.ComponentConnector
delegateCaptionHandling, flush, getLayoutManager, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabled
-
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag
-
-
-
-
Method Detail
-
init
protected void init()
- Overrides:
initin classAbstractConnector
-
onUnregister
public void onUnregister()
- Specified by:
onUnregisterin interfaceServerConnector- Overrides:
onUnregisterin classAbstractComponentConnector
-
sendContextClickEvent
protected void sendContextClickEvent(com.vaadin.shared.MouseEventDetails details, com.google.gwt.dom.client.EventTarget eventTarget)- Overrides:
sendContextClickEventin classAbstractComponentConnector
-
getScrollTableRow
protected VScrollTable.VScrollTableBody.VScrollTableRow getScrollTableRow(com.google.gwt.dom.client.Element e)
-
updateFromUIDL
public void updateFromUIDL(UIDL uidl, ApplicationConnection client)
- Specified by:
updateFromUIDLin interfacePaintable
-
updateEnabledState
public void updateEnabledState(boolean enabledState)
- Specified by:
updateEnabledStatein interfaceServerConnector- Overrides:
updateEnabledStatein classAbstractComponentConnector
-
getWidget
public VScrollTable getWidget()
- Specified by:
getWidgetin interfaceHasWidget- Overrides:
getWidgetin classAbstractComponentConnector
-
updateCaption
public void updateCaption(ComponentConnector component)
- Specified by:
updateCaptionin interfaceHasComponentsConnector
-
layoutVertically
public void layoutVertically()
- Specified by:
layoutVerticallyin interfaceDirectionalManagedLayout
-
layoutHorizontally
public void layoutHorizontally()
- Specified by:
layoutHorizontallyin interfaceDirectionalManagedLayout
-
postLayout
public void postLayout()
- Specified by:
postLayoutin interfacePostLayoutListener
-
isReadOnly
public boolean isReadOnly()
Description copied from interface:ComponentConnectorChecks if the connector is read only.- Specified by:
isReadOnlyin interfaceComponentConnector- Overrides:
isReadOnlyin classAbstractFieldConnector- Returns:
- true
-
getState
public TableState getState()
- Specified by:
getStatein interfaceComponentConnector- Specified by:
getStatein interfaceServerConnector- Overrides:
getStatein classAbstractFieldConnector
-
showSavedContextMenu
public void showSavedContextMenu(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)
- Specified by:
getTooltipInfoin interfaceComponentConnector- Overrides:
getTooltipInfoin classAbstractComponentConnector
-
hasTooltip
public boolean hasTooltip()
- Specified by:
hasTooltipin interfaceComponentConnector- Overrides:
hasTooltipin classAbstractComponentConnector
-
onConnectorHierarchyChange
public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent connectorHierarchyChangeEvent)
- Specified by:
onConnectorHierarchyChangein interfaceConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
-
updateComponentSize
protected void updateComponentSize(String newWidth, String newHeight)
- Overrides:
updateComponentSizein classAbstractComponentConnector
-
getChildComponents
public List<ComponentConnector> getChildComponents()
- Specified by:
getChildComponentsin interfaceHasComponentsConnector
-
setChildComponents
public void setChildComponents(List<ComponentConnector> childComponents)
- Specified by:
setChildComponentsin interfaceHasComponentsConnector
-
addConnectorHierarchyChangeHandler
public com.google.gwt.event.shared.HandlerRegistration addConnectorHierarchyChangeHandler(ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler handler)
- Specified by:
addConnectorHierarchyChangeHandlerin interfaceHasComponentsConnector
-
setChildMeasurementHint
public void setChildMeasurementHint(HasChildMeasurementHintConnector.ChildMeasurementHint hint)
- Specified by:
setChildMeasurementHintin interfaceHasChildMeasurementHintConnector
-
getChildMeasurementHint
public HasChildMeasurementHintConnector.ChildMeasurementHint getChildMeasurementHint()
- Specified by:
getChildMeasurementHintin interfaceHasChildMeasurementHintConnector
-
-