We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.
Class WidgetSet
java.lang.Object
com.vaadin.terminal.gwt.client.WidgetSet
- extends Object
public class WidgetSet
Constructor Summary | |
---|---|
WidgetSet()
|
Method Summary | |
---|---|
Paintable |
createWidget(UIDL uidl,
ApplicationConfiguration conf)
Create an uninitialized component that best matches given UIDL. |
Class<? extends Paintable>[] |
getDeferredLoadedWidgets()
|
Class<? extends Paintable> |
getImplementationByClassName(String fullyqualifiedName)
Due its nature, GWT does not support dynamic classloading. |
boolean |
isCorrectImplementation(com.google.gwt.user.client.ui.Widget currentWidget,
UIDL uidl,
ApplicationConfiguration conf)
Test if the given component implementation conforms to UIDL. |
void |
loadImplementation(Class<? extends Paintable> nextType)
|
protected Class<? extends Paintable> |
resolveWidgetType(UIDL uidl,
ApplicationConfiguration conf)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
WidgetSet
public WidgetSet()
Method Detail |
---|
createWidget
public Paintable createWidget(UIDL uidl,
ApplicationConfiguration conf)
- 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.
Create an uninitialized component that best matches given UIDL. The
component must be a Widget
that implements Paintable
.
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)
- 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
Test if the given component implementation conforms to UIDL.
getImplementationByClassName
public Class<? extends Paintable> getImplementationByClassName(String fullyqualifiedName)
- Parameters:
fullyQualifiedName
-applicationConfiguration
-- Returns:
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.
getDeferredLoadedWidgets
public Class<? extends Paintable>[] getDeferredLoadedWidgets()
loadImplementation
public void loadImplementation(Class<? extends Paintable> nextType)