net.sf.doolin.gui.app.support
Class GUIWindowStartup<B>

java.lang.Object
  extended by net.sf.doolin.gui.app.support.GUIWindowStartup<B>
Type Parameters:
B - Type of the bean of the window
All Implemented Interfaces:
GUIStartup

public class GUIWindowStartup<B>
extends Object
implements GUIStartup

Starts the application by creating a window and displaying it.

Author:
Damien Coraboeuf

Constructor Summary
GUIWindowStartup()
           
 
Method Summary
 DataFactory<B> getDataFactory()
          Gets the data factory.
 GUIWindowDescriptor<B> getWindowDescriptor()
          Gets the window descriptor.
 void setDataFactory(DataFactory<B> dataFactory)
          Data factory that creates the bean for the window
 void setWindowDescriptor(GUIWindowDescriptor<B> windowDescriptor)
          Descriptor for the window to create
 void start(GUIApplication application, String[] arguments)
          Starts the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIWindowStartup

public GUIWindowStartup()
Method Detail

getDataFactory

public DataFactory<B> getDataFactory()
Gets the data factory.

Returns:
the data factory

getWindowDescriptor

public GUIWindowDescriptor<B> getWindowDescriptor()
Gets the window descriptor.

Returns:
the window descriptor

setDataFactory

public void setDataFactory(DataFactory<B> dataFactory)
Data factory that creates the bean for the window

Parameters:
dataFactory - the new data factory

setWindowDescriptor

public void setWindowDescriptor(GUIWindowDescriptor<B> windowDescriptor)
Descriptor for the window to create

Parameters:
windowDescriptor - the new window descriptor

start

public void start(GUIApplication application,
                  String[] arguments)
Starts the application..

Specified by:
start in interface GUIStartup
Parameters:
application - the application
arguments - Starting arguments


Copyright © 2011. All Rights Reserved.