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
 com.google.gwt.user.client.ui.Widget 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  String resolveWidgetTypeName(UIDL uidl)
           
 
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 com.google.gwt.user.client.ui.Widget createWidget(UIDL uidl)
Description copied from interface: WidgetSet
Create an uninitialized component that best matches given UIDL.

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.

resolveWidgetTypeName

protected String resolveWidgetTypeName(UIDL uidl)

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-2008 IT Mill Ltd. All Rights Reserved.