sk.uniba.euromath.gene.gui
Class WidgetInstanceProvider

java.lang.Object
  extended by sk.uniba.euromath.gene.gui.WidgetInstanceProvider

public final class WidgetInstanceProvider
extends Object

Provides instances of widgets intended to configure a coordinator.

Author:
Martin Vysny

Method Summary
static WidgetInstanceProvider getInstance()
          Returns singleton instance of the provider.
 IUserInputWidget getWidget(CoordinatorInfo info, IConfigurator configurator, Composite parent)
          Returns a widget that is able to configure given coordinator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static WidgetInstanceProvider getInstance()
Returns singleton instance of the provider.

Returns:
instance, never null.

getWidget

public IUserInputWidget getWidget(CoordinatorInfo info,
                                  IConfigurator configurator,
                                  Composite parent)
Returns a widget that is able to configure given coordinator. Each change to the widget should be applied immediately to underlying coordinator model.

Parameters:
info - the coordinator to configure
configurator - coordinator's configurator, never null.
parent - place the widget here.
Returns:
widget instance or null if this factory is not able to configure given coordinator.


Copyright © 2003-2006 null. All Rights Reserved.