|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.client.ui.AbstractConnector
com.vaadin.client.ui.AbstractComponentConnector
com.vaadin.client.ui.AbstractFieldConnector
com.vaadin.client.ui.customfield.CustomFieldConnector
public class CustomFieldConnector
| Constructor Summary | |
|---|---|
CustomFieldConnector()
Default constructor |
|
| Method Summary | |
|---|---|
com.google.gwt.event.shared.HandlerRegistration |
addConnectorHierarchyChangeHandler(ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler handler)
Adds a handler that is called whenever the child hierarchy of this connector has been updated by the server. |
java.util.List<ComponentConnector> |
getChildComponents()
Returns the children for this connector. |
protected ComponentConnector |
getContent()
Returns the content (only/first child) of the container. |
protected Widget |
getContentWidget()
Returns the widget (if any) of the content of the container. |
VCustomComponent |
getWidget()
Returns the widget associated with this paintable. |
void |
onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event)
|
void |
setChildComponents(java.util.List<ComponentConnector> childComponents)
Sets the children for this connector. |
void |
updateCaption(ComponentConnector connector)
Update child components caption, description and error message. |
| Methods inherited from class com.vaadin.client.ui.AbstractFieldConnector |
|---|
getState, isModified, isReadOnly, isRequired, updateWidgetStyleNames |
| Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector |
|---|
createWidget, delegateCaptionHandling, flush, getIcon, getIconUri, getLayoutManager, getTooltipInfo, hasTooltip, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onStateChanged, onUnregister, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, 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, getRpcProxy, getStateType, hasEventListener, init, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, 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.client.ServerConnector |
|---|
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getState, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, updateEnabledState |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Constructor Detail |
|---|
public CustomFieldConnector()
| Method Detail |
|---|
public VCustomComponent getWidget()
AbstractComponentConnector
getWidget in interface ComponentConnectorgetWidget in class AbstractComponentConnectorpublic void updateCaption(ComponentConnector connector)
HasComponentsConnectorEach 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.
updateCaption in interface HasComponentsConnectorconnector - Child component for which service is requested.public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event)
onConnectorHierarchyChange in interface ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandlerpublic java.util.List<ComponentConnector> getChildComponents()
HasComponentsConnector
The children for this connector are defined as all HasComponentss
whose parent is this HasComponentsConnector.
getChildComponents in interface HasComponentsConnectorpublic void setChildComponents(java.util.List<ComponentConnector> childComponents)
HasComponentsConnector
Note that calling this method does not call
ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler.onConnectorHierarchyChange(ConnectorHierarchyChangeEvent)
. The event method is called only when the hierarchy has been updated for
all connectors.
setChildComponents in interface HasComponentsConnectorchildComponents - The new child connectorspublic com.google.gwt.event.shared.HandlerRegistration addConnectorHierarchyChangeHandler(ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler handler)
HasComponentsConnector
addConnectorHierarchyChangeHandler in interface HasComponentsConnectorhandler - The handler that should be added.
protected ComponentConnector getContent()
protected Widget getContentWidget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||