|
||||||||||
| 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.AbstractHasComponentsConnector
com.vaadin.client.ui.AbstractSingleComponentContainerConnector
com.vaadin.client.ui.ui.UIConnector
public class UIConnector
| Field Summary |
|---|
| Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector |
|---|
SIGNIFICANT_MOVE_THRESHOLD |
| Constructor Summary | |
|---|---|
UIConnector()
|
|
| Method Summary | |
|---|---|
protected void |
activateTheme(java.lang.String newTheme)
Activates the new theme. |
void |
analyzeLayouts()
Invokes the layout analyzer on the server |
protected static void |
forceStateChangeRecursively(AbstractConnector connector)
Force a full recursive recheck of every connector's state variables. |
java.lang.String |
getActiveTheme()
Returns the name of the theme currently in used by the UI |
protected ComponentConnector |
getContent()
Returns the content (only/first child) of the container. |
com.vaadin.shared.ui.ui.PageState |
getPageState()
Returns the state of the Page associated with the UI. |
com.vaadin.shared.ui.ui.UIState |
getState()
Returns the shared state object for this connector. |
java.util.List<WindowConnector> |
getSubWindows()
Return an iterator for current subwindows. |
VUI |
getWidget()
Returns the widget associated with this paintable. |
boolean |
hasSubWindow(WindowConnector wc)
Deprecated. Should be replaced by a more generic mechanism for getting non-ComponentConnector children |
boolean |
hasTooltip()
Check whether there might be a tooltip for this component. |
protected void |
init()
Called when the connector has been initialized. |
void |
init(java.lang.String rootPanelId,
ApplicationConnection applicationConnection)
|
protected void |
onChildSizeChange()
|
void |
onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event)
|
void |
onStateChanged(StateChangeEvent stateChangeEvent)
Notifies the event handler that the state has changed. |
protected void |
replaceTheme(java.lang.String oldTheme,
java.lang.String newTheme,
java.lang.String oldThemeUrl,
java.lang.String newThemeUrl)
Loads the new theme and removes references to the old theme |
void |
scrollIntoView(ComponentConnector componentConnector)
Tries to scroll the viewport so that the given connector is in view. |
void |
showServerDebugInfo(ServerConnector serverConnector)
Sends a request to the server to print details to console that will help the developer to locate the corresponding server-side connector in the source code. |
void |
showServerDesign(ServerConnector connector)
Sends a request to the server to print a design to the console for the given component. |
void |
updateCaption(ComponentConnector component)
Update child components caption, description and error message. |
void |
updateFromUIDL(UIDL uidl,
ApplicationConnection client)
|
| Methods inherited from class com.vaadin.client.ui.AbstractSingleComponentContainerConnector |
|---|
getContentWidget |
| Methods inherited from class com.vaadin.client.ui.AbstractHasComponentsConnector |
|---|
addConnectorHierarchyChangeHandler, getChildComponents, setChildComponents |
| 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, 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.HasComponentsConnector |
|---|
addConnectorHierarchyChangeHandler, getChildComponents, setChildComponents |
| Methods inherited from interface com.vaadin.client.ServerConnector |
|---|
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, hasEventListener, isEnabled, onUnregister, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, updateEnabledState |
| Methods inherited from interface com.vaadin.shared.Connector |
|---|
getConnectorId |
| Constructor Detail |
|---|
public UIConnector()
| Method Detail |
|---|
protected void init()
AbstractConnector
init in class AbstractConnector
public void updateFromUIDL(UIDL uidl,
ApplicationConnection client)
updateFromUIDL in interface Paintable
public void init(java.lang.String rootPanelId,
ApplicationConnection applicationConnection)
public void updateCaption(ComponentConnector component)
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 HasComponentsConnectorcomponent - Child component for which service is requested.public VUI getWidget()
AbstractComponentConnector
getWidget in interface ComponentConnectorgetWidget in class AbstractComponentConnectorprotected ComponentConnector getContent()
AbstractSingleComponentContainerConnector
getContent in class AbstractSingleComponentContainerConnectorprotected void onChildSizeChange()
@Deprecated public boolean hasSubWindow(WindowConnector wc)
wc -
public java.util.List<WindowConnector> getSubWindows()
public com.vaadin.shared.ui.ui.UIState getState()
AbstractConnector
getState in interface ComponentConnectorgetState in interface ServerConnectorgetState in class AbstractComponentConnectorpublic com.vaadin.shared.ui.ui.PageState getPageState()
Note that state is considered an internal part of the connector. You should not rely on the state object outside of the connector who owns it. If you depend on the state of other connectors you should use their public API instead of their state object directly. The page state might not be an independent state object but can be embedded in UI state.
public void onConnectorHierarchyChange(ConnectorHierarchyChangeEvent event)
onConnectorHierarchyChange in interface ConnectorHierarchyChangeEvent.ConnectorHierarchyChangeHandlerpublic boolean hasTooltip()
ComponentConnectorComponentConnector.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.
hasTooltip in interface ComponentConnectorhasTooltip in class AbstractComponentConnectortrue if some part of the component might have a
tooltip, otherwise falsepublic void scrollIntoView(ComponentConnector componentConnector)
componentConnector - The connector which should be visiblepublic void onStateChanged(StateChangeEvent stateChangeEvent)
StateChangeEvent.StateChangeHandler
onStateChanged in interface StateChangeEvent.StateChangeHandleronStateChanged in class AbstractComponentConnectorstateChangeEvent - the state change event with details about the changepublic void analyzeLayouts()
public void showServerDebugInfo(ServerConnector serverConnector)
serverConnector - the connector to locatepublic void showServerDesign(ServerConnector connector)
connector - the component connector to output a declarative design for
protected void replaceTheme(java.lang.String oldTheme,
java.lang.String newTheme,
java.lang.String oldThemeUrl,
java.lang.String newThemeUrl)
oldTheme - The name of the old themenewTheme - The name of the new themeoldThemeUrl - The url of the old themenewThemeUrl - The url of the new themeprotected void activateTheme(java.lang.String newTheme)
newTheme - The name of the new themeprotected static void forceStateChangeRecursively(AbstractConnector connector)
AbstractConnector.forceStateChange()public java.lang.String getActiveTheme()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||