public interface ComponentConnector extends ServerConnector
UIDL
.
Updates can be sent back to the server using the
ApplicationConnection#updateVariable()
methods.Modifier and Type | Method and Description |
---|---|
boolean |
delegateCaptionHandling()
Return true if parent handles caption, false if the paintable handles the
caption itself.
|
void |
flush()
Called for the active (focused) connector when a situation occurs that
the focused connector might have buffered changes which need to be
processed before other activity takes place.
|
LayoutManager |
getLayoutManager() |
AbstractComponentState |
getState()
Gets the current shared state of the connector.
|
TooltipInfo |
getTooltipInfo(com.google.gwt.dom.client.Element element)
Gets the tooltip info for the given element.
|
com.google.gwt.user.client.ui.Widget |
getWidget()
Returns the widget for this
ComponentConnector |
boolean |
hasTooltip()
Check whether there might be a tooltip for this component.
|
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 |
setWidgetEnabled(boolean widgetEnabled)
Sets the enabled state of the widget associated to this connector.
|
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, updateEnabledState
getConnectorId
AbstractComponentState getState()
ServerConnector
getState
in interface ServerConnector
SharedState
. 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
false
boolean 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
false
boolean 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
false
boolean 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
false
@Deprecated boolean isReadOnly()
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 otherwiseTooltipInfo getTooltipInfo(com.google.gwt.dom.client.Element element)
When overriding this method, hasTooltip()
should also be
overridden to return true
in all situations where this
method might return a non-empty result.
element
- The element to lookup a tooltip forboolean hasTooltip()
getTooltipInfo(Element)
) if this method returns true.
This is only done to optimize performance, so in cases where the status
is not known, it's safer to return true
so that there will
be a tooltip handler even though it might not be needed in all cases.
true
if some part of the component might have a
tooltip, otherwise false
void flush()
This is currently called when the user changes the fragment using the back/forward button in the browser and allows the focused field to submit its value to the server before the fragment change event takes place.
Copyright © 2019 Vaadin Ltd. All rights reserved.