|
JUICe | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lafros.juice.app.AbstractApp
public abstract class AbstractApp
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)
.
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 |
---|
public AbstractApp()
Method Detail |
---|
public static Properties getProperties(Class _class)
public static void setProperties(Class _class)
getProperties(Class)
, then calls System.setProperty(String, String)
for each property.
public void displayApplication(JFrame frame)
Window.pack()
followed by Component.setVisible(boolean)
.
displayApplication
in interface IApp
public void start()
start
in interface IApp
public void stopApplet()
stopApplet
in interface IApp
public void restartApplet()
restartApplet
in interface IApp
public void terminate()
terminate
in interface IApp
|
JUICe | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |