JUICe

com.lafros.juice.app
Class AbstractApp

java.lang.Object
  extended by com.lafros.juice.app.AbstractApp
All Implemented Interfaces:
IApp

public abstract class AbstractApp
extends Object
implements IApp

provides more convenient alternative to impl'ting IApp, where no other class needs to be extended. Supplies empty implementations of all IApp methods except IApp.init(AppContext).

Version:
$Id: AbstractApp.java 2745 2008-02-09 09:23:47Z rob $
Author:
Rob Dickens

Constructor Summary
AbstractApp()
           
 
Method Summary
 void displayApplication(JFrame frame)
          calls Window.pack() followed by Component.setVisible(boolean).
static Properties getProperties(Class _class)
          returns a new object containing the properties loaded from a file by the name of "properties" located in the same directory as the specified class file, or null if no such file could be found.
 void restartApplet()
          does nothing.
static void setProperties(Class _class)
          calls getProperties(Class), then calls System.setProperty(String, String) for each property.
 void start()
          does nothing.
 void stopApplet()
          does nothing.
 void terminate()
          does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lafros.juice.app.IApp
init
 

Constructor Detail

AbstractApp

public AbstractApp()
Method Detail

getProperties

public static Properties getProperties(Class _class)
returns a new object containing the properties loaded from a file by the name of "properties" located in the same directory as the specified class file, or null if no such file could be found.


setProperties

public static void setProperties(Class _class)
calls getProperties(Class), then calls System.setProperty(String, String) for each property.


displayApplication

public void displayApplication(JFrame frame)
calls Window.pack() followed by Component.setVisible(boolean).

Specified by:
displayApplication in interface IApp

start

public void start()
does nothing.

Specified by:
start in interface IApp

stopApplet

public void stopApplet()
does nothing.

Specified by:
stopApplet in interface IApp

restartApplet

public void restartApplet()
does nothing.

Specified by:
restartApplet in interface IApp

terminate

public void terminate()
does nothing.

Specified by:
terminate in interface IApp

JUICe

Copyright © 2001-2008 Latterfrosken Software Development Limited. All Rights Reserved.