Package diva.gui
Interface AppContext
-
- All Superinterfaces:
javax.swing.RootPaneContainer
- All Known Subinterfaces:
MDIContext
- All Known Implementing Classes:
AppContextDelegate
,AppletContext
,AppletTutorial
,ApplicationContext
,BasicFrame
,BasicGraphDemoApplet
,BubbleGraphDemoApplet
,DesktopContext
public interface AppContext extends javax.swing.RootPaneContainer
A context for either an application or an applet that wants to use the diva.gui infrastructure.- Version:
- $Id$
- Author:
- Steve Neuendorffer, Michael Shilman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
getExitAction
javax.swing.Action getExitAction()
Return the action that is called back when the user exits the app.
-
getIconImage
java.awt.Image getIconImage()
Get the image that represents this frame.
-
getJMenuBar
javax.swing.JMenuBar getJMenuBar()
Return the menu bar that the container uses.
-
getTitle
java.lang.String getTitle()
Return the title of the context.
-
isVisible
boolean isVisible()
Return whether the context is visible.
-
makeComponent
java.awt.Component makeComponent()
Make this into a component (since Component is not an interface.
-
setExitAction
void setExitAction(javax.swing.Action exitAction)
Set the action that is called back when the user exits the app.
-
setIconImage
void setIconImage(java.awt.Image image)
Set the icon that represents this frame.
-
setJMenuBar
void setJMenuBar(javax.swing.JMenuBar menu)
Set the menu bar that the container uses.
-
setTitle
void setTitle(java.lang.String title)
Set the title of the context.
-
setSize
void setSize(int w, int h)
Set the size of the context. Won't do anything for an applet.
-
setVisible
void setVisible(boolean visible)
Set whether the context is visible. May be meaningless if the context is always visible.
-
showStatus
void showStatus(java.lang.String status)
Show the given status string at the bottom of the context. Note: application implementation may implement this as an empty method.
-
-