|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.terminal.gwt.client.ui.AbstractConnector
com.vaadin.terminal.gwt.client.ui.AbstractComponentConnector
public abstract class AbstractComponentConnector
| Constructor Summary | |
|---|---|
AbstractComponentConnector()
Default constructor |
|
| Method Summary | |
|---|---|
protected abstract com.google.gwt.user.client.ui.Widget |
createWidget()
Creates and returns the widget for this VPaintableWidget. |
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()
Returns the shared state object for this connector. |
protected String |
getStyleNames(String primaryStyleName)
Generates the style name for the widget based on the given primary style name and the shared state. |
com.google.gwt.user.client.ui.Widget |
getWidget()
Returns the widget associated with this paintable. |
boolean |
hasEventListener(String eventIdentifier)
Checks if there is a registered server side listener for the given event identifier. |
boolean |
isEnabled()
Tests whether the connector is enabled or not. |
boolean |
isReadOnly()
Deprecated. |
static boolean |
isRealUpdate(UIDL uidl)
Deprecated. |
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 |
onStateChanged(StateChangeEvent stateChangeEvent)
|
void |
onUnregister()
Event called when connector has been unregistered. |
void |
setParent(ComponentContainerConnector parent)
Sets the parent for this connector. |
void |
setState(SharedState state)
Sets the shared state for the paintable widget. |
void |
setWidgetEnabled(boolean widgetEnabled)
Sets the enabled state of the widget associated to this connector. |
| Methods inherited from class com.vaadin.terminal.gwt.client.ui.AbstractConnector |
|---|
addStateChangeHandler, doInit, ensureHandlerManager, fireEvent, getConnection, getConnectorId, getRpcImplementations, init, isConnectorEnabled, registerRpc, 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.terminal.gwt.client.ServerConnector |
|---|
addStateChangeHandler, doInit, fireEvent, getConnection, getRpcImplementations |
| Methods inherited from interface com.vaadin.terminal.gwt.client.Connector |
|---|
getConnectorId |
| Constructor Detail |
|---|
public AbstractComponentConnector()
| Method Detail |
|---|
protected abstract com.google.gwt.user.client.ui.Widget createWidget()
public com.google.gwt.user.client.ui.Widget getWidget()
getWidget in interface ComponentConnectorpublic ComponentState getState()
#createState() must be overridden.
getState in interface ComponentConnectorgetState in interface Connector@Deprecated public static boolean isRealUpdate(UIDL uidl)
public void onStateChanged(StateChangeEvent stateChangeEvent)
onStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractConnectorpublic void setWidgetEnabled(boolean widgetEnabled)
ComponentConnector
setWidgetEnabled in interface ComponentConnectorwidgetEnabled - true if the widget should be enabled, false otherwisepublic boolean isRelativeHeight()
ComponentConnectortrue 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.
isRelativeHeight in interface ComponentConnectortrue if the width is undefined, else
falsepublic boolean isRelativeWidth()
ComponentConnectortrue 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.
isRelativeWidth in interface ComponentConnectortrue if the width is undefined, else
falsepublic boolean isUndefinedHeight()
ComponentConnectortrue 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.
isUndefinedHeight in interface ComponentConnectortrue if the height is undefined, else
falsepublic boolean isUndefinedWidth()
ComponentConnectortrue 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.
isUndefinedWidth in interface ComponentConnectortrue if the width is undefined, else
falsepublic boolean isEnabled()
ServerConnector
isEnabled in interface ServerConnectorpublic boolean delegateCaptionHandling()
ComponentConnectorThis should always return true and all components should let the parent handle the caption and use other attributes for internal texts in the component
delegateCaptionHandling in interface ComponentConnectorprotected String getStyleNames(String primaryStyleName)
This method can be overridden to provide additional style names for the component
primaryStyleName - The primary style name to use when generating the final style
names
UIObject.setStyleName(String)@Deprecated public boolean isReadOnly()
ComponentConnector
isReadOnly in interface ComponentConnectorpublic final void setState(SharedState state)
setState in interface ServerConnectornew - shared state (must be compatible with the return value of
getState() - ComponentState if
getState() is not overriddenpublic LayoutManager getLayoutManager()
getLayoutManager in interface ComponentConnectorpublic ComponentContainerConnector getParent()
ComponentConnector
getParent in interface ComponentConnectorComponentConnector.setParent(ComponentContainerConnector).public void setParent(ComponentContainerConnector parent)
ComponentConnector
Note that calling this method does not fire a
ConnectorHierarchyChangeEvent. The event is fired only when the
whole hierarchy has been updated.
setParent in interface ComponentConnectorparent - The new parent of the connectorpublic boolean hasEventListener(String eventIdentifier)
hasEventListener in interface ComponentConnectoreventIdentifier - The identifier to check for
public void onUnregister()
ServerConnector
onUnregister in interface ServerConnectoronUnregister in class AbstractConnector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||