org.base.apps.core.swing
Class SwingApplication<D,C extends Component>

java.lang.Object
  extended by org.base.apps.util.BaseNameable
      extended by org.base.apps.core.BaseApplication<D,C>
          extended by org.base.apps.core.swing.SwingApplication<D,C>
All Implemented Interfaces:
Application<D,C>, Nameable, Named
Direct Known Subclasses:
AccountApplication

public abstract class SwingApplication<D,C extends Component>
extends BaseApplication<D,C>

Swing implementation of Application.

Author:
Kevan Simpson

Constructor Summary
protected SwingApplication()
           
protected SwingApplication(Class<D> beanType)
           
 
Method Summary
protected abstract  C createView()
           
protected  SwingViewFactory getFactory()
           
protected  void launch()
           
static
<D,C extends Component>
void
launch(Application<D,C> appl)
          Launches the specified Application with the given view in a frame.
 
Methods inherited from class org.base.apps.core.BaseApplication
configure, getApplicationInfo, getData, getView, setApplicationInfo, setData, setView
 
Methods inherited from class org.base.apps.util.BaseNameable
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.base.apps.util.Nameable
setName
 
Methods inherited from interface org.base.apps.util.Named
getName
 

Constructor Detail

SwingApplication

protected SwingApplication()

SwingApplication

protected SwingApplication(Class<D> beanType)
Method Detail

createView

protected abstract C createView()

launch

protected void launch()

getFactory

protected SwingViewFactory getFactory()

launch

public static <D,C extends Component> void launch(Application<D,C> appl)
Launches the specified Application with the given view in a frame.

Type Parameters:
D - The type of the application's data bean.
C - The type of the application's view.
Parameters:
appl - The application.

Please visit Base Apps, hosted on Sourceforge.net.

Copyright 2011, Blue Agate Software Entity (BASE)