com.vaadin.terminal.gwt.client
Class WidgetSet
java.lang.Object
com.vaadin.terminal.gwt.client.WidgetSet
public class WidgetSet
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WidgetSet
public WidgetSet()
createWidget
public Paintable createWidget(UIDL uidl,
ApplicationConfiguration conf)
- Create an uninitialized component that best matches given UIDL. The
component must be a
Widget
that implements Paintable
.
- Parameters:
uidl
- UIDL to be painted with returned component.client
- the application connection that whishes to instantiate widget
- Returns:
- New uninitialized and unregistered component that can paint given
UIDL.
resolveWidgetType
protected Class<? extends Paintable> resolveWidgetType(UIDL uidl,
ApplicationConfiguration conf)
isCorrectImplementation
public boolean isCorrectImplementation(com.google.gwt.user.client.ui.Widget currentWidget,
UIDL uidl,
ApplicationConfiguration conf)
- Test if the given component implementation conforms to UIDL.
- Parameters:
currentWidget
- Current implementation of the componentuidl
- UIDL to test against
- Returns:
- true iff createWidget would return a new component of the same
class than currentWidget
getImplementationByClassName
public Class<? extends Paintable> getImplementationByClassName(String fullyqualifiedName)
- Due its nature, GWT does not support dynamic classloading. To bypass this
limitation, widgetset must have function that returns Class by its fully
qualified name.
- Parameters:
fullyQualifiedName
- applicationConfiguration
-
- Returns:
getDeferredLoadedWidgets
public Class<? extends Paintable>[] getDeferredLoadedWidgets()
loadImplementation
public void loadImplementation(Class<? extends Paintable> nextType)
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.