com.itmill.toolkit.terminal.gwt.client
Interface WidgetSet

All Superinterfaces:
com.google.gwt.core.client.EntryPoint
All Known Implementing Classes:
DefaultWidgetSet

public interface WidgetSet
extends com.google.gwt.core.client.EntryPoint


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.
 
Methods inherited from interface com.google.gwt.core.client.EntryPoint
onModuleLoad
 

Method Detail

createWidget

Paintable createWidget(UIDL uidl)
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.
Returns:
New uninitialized and unregistered component that can paint given UIDL.

isCorrectImplementation

boolean isCorrectImplementation(com.google.gwt.user.client.ui.Widget currentWidget,
                                UIDL uidl)
Test if the given component implementation conforms to UIDL.

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.