|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ComponentConnector
An interface used by client-side widgets or paintable parts to receive
updates from the corresponding server-side components in the form of
UIDL.
Updates can be sent back to the server using the
ApplicationConnection#updateVariable() methods.
| Method Summary | |
|---|---|
boolean |
delegateCaptionHandling()
Return true if parent handles caption, false if the paintable handles the caption itself. |
LayoutManager |
getLayoutManager()
|
ComponentContainerConnector |
getParent()
Returns the parent of this connector. |
ComponentState |
getState()
Gets the current shared state of the connector. |
com.google.gwt.user.client.ui.Widget |
getWidget()
Returns the widget for this ComponentConnector |
boolean |
hasEventListener(String eventIdentifier)
|
boolean |
isReadOnly()
Deprecated. This belongs in AbstractFieldConnector, see #8514 |
boolean |
isRelativeHeight()
Returns true if the height of this paintable is currently
relative. |
boolean |
isRelativeWidth()
Returns true if the width of this paintable is currently
relative. |
boolean |
isUndefinedHeight()
Returns true if the height of this paintable is currently
undefined. |
boolean |
isUndefinedWidth()
Returns true if the width of this paintable is currently
undefined. |
void |
setParent(ComponentContainerConnector parent)
Sets the parent for this connector. |
void |
setWidgetEnabled(boolean widgetEnabled)
Sets the enabled state of the widget associated to this connector. |
| Methods inherited from interface com.vaadin.terminal.gwt.client.ServerConnector |
|---|
addStateChangeHandler, doInit, fireEvent, getConnection, getRpcImplementations, isEnabled, onUnregister, setState |
| Methods inherited from interface com.vaadin.terminal.gwt.client.Connector |
|---|
getConnectorId |
| Method Detail |
|---|
ComponentState getState()
Connector
getState in interface ConnectorSharedState. Never null.com.google.gwt.user.client.ui.Widget getWidget()
ComponentConnector
LayoutManager getLayoutManager()
boolean isUndefinedWidth()
true if the width of this paintable is currently
undefined. If the width is undefined, the actual width of the paintable
is defined by its contents.
true if the width is undefined, else
falseboolean isUndefinedHeight()
true if the height of this paintable is currently
undefined. If the height is undefined, the actual height of the paintable
is defined by its contents.
true if the height is undefined, else
falseboolean isRelativeWidth()
true if the width of this paintable is currently
relative. If the width is relative, the actual width of the paintable is
a percentage of the size allocated to it by its parent.
true if the width is undefined, else
falseboolean isRelativeHeight()
true if the height of this paintable is currently
relative. If the height is relative, the actual height of the paintable
is a percentage of the size allocated to it by its parent.
true if the width is undefined, else
falseComponentContainerConnector getParent()
setParent(ComponentContainerConnector).void setParent(ComponentContainerConnector parent)
Note that calling this method does not fire a
ConnectorHierarchyChangeEvent. The event is fired only when the
whole hierarchy has been updated.
parent - The new parent of the connector@Deprecated boolean isReadOnly()
boolean hasEventListener(String eventIdentifier)
boolean delegateCaptionHandling()
This should always return true and all components should let the parent handle the caption and use other attributes for internal texts in the component
void setWidgetEnabled(boolean widgetEnabled)
widgetEnabled - true if the widget should be enabled, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||