com.itmill.toolkit.terminal.gwt.client
Class DefaultWidgetSet

java.lang.Object
  extended by com.itmill.toolkit.terminal.gwt.client.DefaultWidgetSet
All Implemented Interfaces:
com.google.gwt.core.client.EntryPoint, WidgetSet

public class DefaultWidgetSet
extends Object
implements WidgetSet


Constructor Summary
DefaultWidgetSet()
           
 
Method Summary
 Paintable createWidget(UIDL uidl)
          Create an uninitialized component that best matches given UIDL.
 boolean isCorrectImplementation(com.google.gwt.user.client.ui.Widget currentWidget, UIDL uidl)
          Test if the given component implementation conforms to UIDL.
 void onModuleLoad()
          This is the entry point method.
protected  Class resolveWidgetType(UIDL uidl)
           
protected  String resolveWidgetTypeName(UIDL uidl)
          Deprecated. use resolveWidgetType instead
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultWidgetSet

public DefaultWidgetSet()
Method Detail

onModuleLoad

public void onModuleLoad()
This is the entry point method. It will start the first

Specified by:
onModuleLoad in interface com.google.gwt.core.client.EntryPoint

createWidget

public Paintable createWidget(UIDL uidl)
Description copied from interface: WidgetSet
Create an uninitialized component that best matches given UIDL. The component must be a Widget that implements Paintable.

Specified by:
createWidget in interface WidgetSet
Parameters:
uidl - UIDL to be painted with returned component.
Returns:
New uninitialized and unregistered component that can paint given UIDL.

resolveWidgetType

protected Class resolveWidgetType(UIDL uidl)

resolveWidgetTypeName

@Deprecated
protected String resolveWidgetTypeName(UIDL uidl)
Deprecated. use resolveWidgetType instead

Kept here to support 5.2 era widget sets


isCorrectImplementation

public boolean isCorrectImplementation(com.google.gwt.user.client.ui.Widget currentWidget,
                                       UIDL uidl)
Description copied from interface: WidgetSet
Test if the given component implementation conforms to UIDL.

Specified by:
isCorrectImplementation in interface WidgetSet
Parameters:
currentWidget - Current implementation of the component
uidl - UIDL to test against
Returns:
true iff createWidget would return a new component of the same class than currentWidget


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.