|
JUICe | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AppContext
app context, as passed to IApp.init(AppContext)
. This provides the
app with access to its environment, as supplied by the JUICe application
framework.
Method Summary | |
---|---|
String[] |
getArgs()
in the case of an applet, those named arg0 ,
arg1 , etc. |
Exe |
getCancelExe()
the built-in Exe for interrupting the command (ICmd.IDisj ) currently running in the background. |
Container |
getContentPane()
corresponds to the getContentPane() of JFrame and JApplet. |
Exe.Tog |
getEnableSoundEffectsExe()
enables audible feedback if execution of any ICmd throws an exception. |
JMenuBar |
getMenuBar()
corresponds to the getJMenuBar() of JFrame and JApplet, except that here the JMenuBar is created for you. |
Exe.Tog |
getMuteExe()
See TheAlertsController.setMuted(boolean) . |
AbstractButton[] |
getPlafButtons()
for changing the platform look-and-feel. |
AbstractButton[] |
getPlafMenuItems()
for changing the platform look-and-feel. |
Exe |
getQuitExe()
the built-in Exe for exiting the application. |
Container |
getRoot()
the root JFrame or JApplet (depending on whether the app is run as an application or an applet). |
JRootPane |
getRootPane()
corresponds to the getRootPane() of JFrame and JApplet. |
Exe |
getTestBeepExe()
See TheAlertsController.beep() . |
Exe.Tog |
getUseSystemBeepExe()
See TheAlertsController.setUseSystemBeep(boolean) . |
boolean |
isApplet()
indicates whether the app is running as an application or applet. |
void |
setConfirmQuitReason(String text)
sets the opening text of the prompt displayed by the quit Exe . |
void |
setMsgLine(MsgLine msgLine)
displays messages from JUICe Cmds. |
Method Detail |
---|
String[] getArgs()
arg0
,
arg1
, etc.
JMenuBar getMenuBar()
Exe getCancelExe()
Exe
for interrupting the command (ICmd.IDisj
) currently running in the background.
Exe getQuitExe()
Exe
for exiting the application. Note that
this does nothing in the case of an applet.
JRootPane getRootPane()
Container getContentPane()
Container getRoot()
void setConfirmQuitReason(String text)
Exe
. By default (or if null
is supplied), the
user is not prompted.
text
- e.g. "Still Connected!"AbstractButton[] getPlafButtons()
AbstractButton[] getPlafMenuItems()
boolean isApplet()
Exe.Tog getMuteExe()
TheAlertsController.setMuted(boolean)
.
Exe getTestBeepExe()
TheAlertsController.beep()
.
Exe.Tog getUseSystemBeepExe()
TheAlertsController.setUseSystemBeep(boolean)
.
Exe.Tog getEnableSoundEffectsExe()
ICmd
throws an exception.
void setMsgLine(MsgLine msgLine)
|
JUICe | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |