|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
java.applet.Applet
javax.swing.JApplet
org.vizzini.ui.AbstractApp
public abstract class AbstractApp
Provides a base class for applets and applications.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JApplet |
---|
JApplet.AccessibleJApplet |
Nested classes/interfaces inherited from class java.applet.Applet |
---|
Applet.AccessibleApplet |
Nested classes/interfaces inherited from class java.awt.Panel |
---|
Panel.AccessibleAWTPanel |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JApplet |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
AbstractApp()
Construct this object. |
Method Summary | |
---|---|
void |
aboutActionPerformed(ActionEvent event)
Callback for the about button. |
protected void |
checkActions()
Check the action enabled states. |
protected void |
cleanup()
Cleanup as necessary before exiting. |
void |
doMain(String[] args)
Start this applet as an application. |
String |
getAppName()
Return the application name. |
protected JFrame |
getFrame()
Return the frame which contains this applet. |
protected Dimension |
getInitialDimension()
Return the initial frame dimensions. |
protected JMenuBar |
getMenuBar()
Get the menu bar, either from the applet or the application's frame. |
protected Container |
getMenuBarContainer()
Return the appropriate container to hold the menu bar. |
void |
init()
Initialize. |
protected void |
macOSXRegistration()
Generic registration with the Mac OS X application menu. |
void |
onlineHelpActionPerformed(ActionEvent event)
Callback for the online help button. |
void |
preferencesActionPerformed(ActionEvent event)
Display the preferences dialog. |
void |
quitActionPerformed(ActionEvent event)
Callback for the quit button. |
void |
setCursorBusy(boolean busy)
Set the cursor to busy depending upon the given state. |
protected boolean |
usePreferencesMenu()
Return true if this application uses the preferences application menu item. |
protected boolean |
useSplashScreen()
Return true if this application uses a splash screen upon startup. |
Methods inherited from class javax.swing.JApplet |
---|
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.applet.Applet |
---|
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop |
Methods inherited from class java.awt.Panel |
---|
addNotify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractApp()
Method Detail |
---|
public void aboutActionPerformed(ActionEvent event)
aboutActionPerformed
in interface IOSXApp
public void doMain(String[] args)
public String getAppName()
public void init()
init
in class Applet
public void onlineHelpActionPerformed(ActionEvent event)
public void preferencesActionPerformed(ActionEvent event)
preferencesActionPerformed
in interface IOSXApp
public void quitActionPerformed(ActionEvent event)
quitActionPerformed
in interface IOSXApp
public void setCursorBusy(boolean busy)
protected void checkActions()
protected void cleanup()
protected JFrame getFrame()
protected Dimension getInitialDimension()
protected JMenuBar getMenuBar()
protected Container getMenuBarContainer()
protected void macOSXRegistration()
protected boolean usePreferencesMenu()
protected boolean useSplashScreen()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |