public interface AppContext
extends javax.swing.RootPaneContainer
Modifier and Type | Method and Description |
---|---|
javax.swing.Action |
getExitAction()
Return the action that is called back when the user
exits the app.
|
java.awt.Image |
getIconImage()
Get the image that represents this frame.
|
javax.swing.JMenuBar |
getJMenuBar()
Return the menu bar that the container uses.
|
java.lang.String |
getTitle()
Return the title of the context.
|
boolean |
isVisible()
Return whether the context is visible.
|
java.awt.Component |
makeComponent()
Make this into a component (since Component is not an
interface.
|
void |
setExitAction(javax.swing.Action exitAction)
Set the action that is called back when the user
exits the app.
|
void |
setIconImage(java.awt.Image image)
Set the icon that represents this frame.
|
void |
setJMenuBar(javax.swing.JMenuBar menu)
Set the menu bar that the container uses.
|
void |
setSize(int w,
int h)
Set the size of the context.
|
void |
setTitle(java.lang.String title)
Set the title of the context.
|
void |
setVisible(boolean visible)
Set whether the context is visible.
|
void |
showStatus(java.lang.String status)
Show the given status string at the bottom of
the context.
|
javax.swing.Action getExitAction()
java.awt.Image getIconImage()
javax.swing.JMenuBar getJMenuBar()
java.lang.String getTitle()
boolean isVisible()
java.awt.Component makeComponent()
void setExitAction(javax.swing.Action exitAction)
void setIconImage(java.awt.Image image)
void setJMenuBar(javax.swing.JMenuBar menu)
void setTitle(java.lang.String title)
void setSize(int w, int h)
void setVisible(boolean visible)
void showStatus(java.lang.String status)