com.vaadin.client.ui.
Class UnknownComponentConnector
- java.lang.Object
-
- com.vaadin.client.ui.AbstractConnector
-
- com.vaadin.client.ui.AbstractComponentConnector
-
- com.vaadin.client.ui.UnknownComponentConnector
-
All Implemented Interfaces:
com.google.gwt.event.shared.EventHandler
,StateChangeEvent.StateChangeHandler
,ComponentConnector
,HasWidget
,ServerConnector
,HasErrorIndicator
,Connector
,Serializable
public class UnknownComponentConnector extends AbstractComponentConnector
A placeholder connector class for when a component's connector cannot be determined.
Author:
Vaadin Ltd
See Also:
-
-
Field Summary
-
Fields inherited from class com.vaadin.client.ui.AbstractComponentConnector
SIGNIFICANT_MOVE_THRESHOLD
-
-
Constructor Summary
Constructors Constructor Description UnknownComponentConnector()
-
Method Summary
All Methods Modifier and Type Method Description static String
createMessage(String serverClassName)
Creates a message that warns about the issue with the named component and gives debugging hints.
boolean
delegateCaptionHandling()
Return true if parent handles caption, false if the paintable handles the caption itself.
VUnknownComponent
getWidget()
Returns the widget associated with this paintable.
void
setServerSideClassName(String serverClassName)
Updates the placeholder widget's caption to mention the component whose connector cannot be determined.
-
Methods inherited from class com.vaadin.client.ui.AbstractComponentConnector
createWidget, flush, getIcon, getIconUri, getLayoutManager, getState, getTooltipInfo, hasTooltip, isErrorIndicatorVisible, isRealUpdate, isRelativeHeight, isRelativeWidth, isUndefinedHeight, isUndefinedWidth, onDragSourceAttached, onDragSourceDetached, onDropTargetAttached, onDropTargetDetached, onStateChanged, onUnregister, registerTouchHandlers, sendContextClickEvent, setWidgetEnabled, setWidgetStyleName, setWidgetStyleNameWithPrefix, shouldHandleLongTap, unregisterTouchHandlers, updateComponentSize, updateComponentSize, updateEnabledState, updateWidgetSize, updateWidgetStyleNames
-
Methods inherited from class com.vaadin.client.ui.AbstractConnector
addStateChangeHandler, addStateChangeHandler, createState, doInit, ensureHandlerManager, fireEvent, forceStateChange, getChildren, getConnection, getConnectorId, getParent, getResourceUrl, getRpcImplementations, getRpcProxy, getStateType, getTag, hasEventListener, init, isEnabled, registerRpc, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag, 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.shared.Connector
getConnectorId
-
Methods inherited from interface com.vaadin.client.ServerConnector
addStateChangeHandler, addStateChangeHandler, doInit, fireEvent, getChildren, getConnection, getParent, getRpcImplementations, getTag, hasEventListener, isEnabled, removeStateChangeHandler, removeStateChangeHandler, setChildren, setParent, setTag
-
-
-
-
Method Detail
-
delegateCaptionHandling
public boolean delegateCaptionHandling()
Description copied from interface:
ComponentConnector
Return true if parent handles caption, false if the paintable handles the caption itself.
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
Specified by:
delegateCaptionHandling
in interfaceComponentConnector
Overrides:
delegateCaptionHandling
in classAbstractComponentConnector
Returns:
true if caption handling is delegated to the parent, false if parent should not be allowed to render caption
-
getWidget
public VUnknownComponent getWidget()
Description copied from class:
AbstractComponentConnector
Returns the widget associated with this paintable. The widget returned by this method must not changed during the life time of the paintable.
Specified by:
getWidget
in interfaceHasWidget
Overrides:
getWidget
in classAbstractComponentConnector
Returns:
The widget associated with this paintable
-
setServerSideClassName
public void setServerSideClassName(String serverClassName)
Updates the placeholder widget's caption to mention the component whose connector cannot be determined.
Parameters:
serverClassName
- the class name of the component
-
-