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.RootPaneContainerA 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.ActiongetExitAction()Return the action that is called back when the user exits the app.java.awt.ImagegetIconImage()Get the image that represents this frame.javax.swing.JMenuBargetJMenuBar()Return the menu bar that the container uses.java.lang.StringgetTitle()Return the title of the context.booleanisVisible()Return whether the context is visible.java.awt.ComponentmakeComponent()Make this into a component (since Component is not an interface.voidsetExitAction(javax.swing.Action exitAction)Set the action that is called back when the user exits the app.voidsetIconImage(java.awt.Image image)Set the icon that represents this frame.voidsetJMenuBar(javax.swing.JMenuBar menu)Set the menu bar that the container uses.voidsetSize(int w, int h)Set the size of the context.voidsetTitle(java.lang.String title)Set the title of the context.voidsetVisible(boolean visible)Set whether the context is visible.voidshowStatus(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.
-
-