|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ComponentContainerConnector
An interface used by client-side connectors whose widget is a component
container (implements HasWidgets
).
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. |
List<ComponentConnector> |
getChildComponents()
Returns the children for this connector. |
void |
setChildComponents(List<ComponentConnector> children)
Sets the children for this connector. |
void |
updateCaption(ComponentConnector connector)
Update child components caption, description and error message. |
Methods inherited from interface com.vaadin.terminal.gwt.client.ServerConnector |
---|
addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, isEnabled, onUnregister, setChildren, setParent, updateEnabledState |
Methods inherited from interface com.vaadin.terminal.gwt.client.Connector |
---|
getConnectorId, getState |
Method Detail |
---|
void updateCaption(ComponentConnector connector)
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.
connector
- Child component for which service is requested.List<ComponentConnector> getChildComponents()
The children for this connector are defined as all
ComponentConnector
s whose parent is this
ComponentContainerConnector
.
void setChildComponents(List<ComponentConnector> children)
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.
children
- The new child connectorscom.google.gwt.event.shared.HandlerRegistration addConnectorHierarchyChangeHandler(ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandler handler)
handler
- The handler that should be added.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |