Class CustomFieldConnector
- 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.customfield.CustomFieldConnector
-
- All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler,StateChangeEvent.StateChangeHandler,ComponentConnector,ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler,HasComponentsConnector,HasWidget,ServerConnector,HasErrorIndicator,HasRequiredIndicator,com.vaadin.shared.Connector,ComponentConnector,Serializable
public class CustomFieldConnector extends AbstractFieldConnector implements HasComponentsConnector, ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description CustomFieldConnector()Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.event.shared.HandlerRegistrationaddConnectorHierarchyChangeHandler(ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler handler)List<ComponentConnector>getChildComponents()protected ComponentConnectorgetContent()Returns the content (only/first child) of the container.protected com.google.gwt.user.client.ui.WidgetgetContentWidget()Returns the widget (if any) of the content of the container.VCustomFieldgetWidget()voidonConnectorHierarchyChange(ConnectorHierarchyChangeEvent event)voidonStateChanged(StateChangeEvent stateChangeEvent)voidsetChildComponents(List<ComponentConnector> childComponents)voidupdateCaption(ComponentConnector connector)-
Methods inherited from class com.vaadin.v7.client.ui.AbstractFieldConnector
getState, isErrorIndicatorVisible, isModified, isReadOnly, 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, getTooltipInfo, hasTooltip, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, 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, init, 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, getTooltipInfo, hasTooltip, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, setWidgetEnabled
-
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, updateEnabledState
-
-
-
-
Method Detail
-
getWidget
public VCustomField getWidget()
- Specified by:
getWidgetin interfaceHasWidget- Overrides:
getWidgetin classAbstractComponentConnector
-
updateCaption
public void updateCaption(ComponentConnector connector)
- Specified by:
updateCaptionin interfaceHasComponentsConnector
-
onStateChanged
public void onStateChanged(StateChangeEvent stateChangeEvent)
- Specified by:
onStateChangedin interfaceStateChangeEvent.StateChangeHandler- Overrides:
onStateChangedin classAbstractComponentConnector
-
onConnectorHierarchyChange
public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event)
- Specified by:
onConnectorHierarchyChangein interfaceConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler
-
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
-
getContent
protected ComponentConnector getContent()
Returns the content (only/first child) of the container.- Returns:
- child connector or null if none (e.g. invisible or not set on server)
-
getContentWidget
protected com.google.gwt.user.client.ui.Widget getContentWidget()
Returns the widget (if any) of the content of the container.- Returns:
- widget of the only/first connector of the container, null if no content or if there is no widget for the connector
-
-