|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.gui.AppContextDelegate
public class AppContextDelegate
This class provides basic support for an instance of AppContext which delegates its operation to one of the basic AppContexts (usually an AppContext or an ApplicationContext.) This is similar to an interface adapter, except the default implementation of each method is to call the identical method on the delegate context.
Field Summary | |
---|---|
private AppContext |
_delegate
The app-context that implements the windowing facilities. |
Constructor Summary | |
---|---|
AppContextDelegate(AppContext context)
Create a new app context that delegates to the given context. |
Method Summary | |
---|---|
java.awt.Container |
getContentPane()
Returns the contentPane of the delegate. |
AppContext |
getDelegate()
Return the context delegate. |
javax.swing.Action |
getExitAction()
Return the exit action of the delegate. |
java.awt.Component |
getGlassPane()
Returns the glassPane of the delegate. |
java.awt.Image |
getIconImage()
Return the image icon of the delegate. |
javax.swing.JMenuBar |
getJMenuBar()
Return the menu bar of the delegate. |
javax.swing.JLayeredPane |
getLayeredPane()
Returns the layeredPane of the delegate. |
javax.swing.JRootPane |
getRootPane()
Returns the rootPane of the delegate. |
java.lang.String |
getTitle()
Return the title of the context. |
boolean |
isVisible()
Invoke the delegate's isvisible(). |
java.awt.Component |
makeComponent()
Call makeComponent() on the delegate. |
void |
setContentPane(java.awt.Container contentPane)
Set the content pane of the delegate. |
void |
setExitAction(javax.swing.Action action)
Set the exit action of the delegate. |
void |
setGlassPane(java.awt.Component glassPane)
Set the glassPane of the delegate. |
void |
setIconImage(java.awt.Image image)
Set the image icon of the delegate. |
void |
setJMenuBar(javax.swing.JMenuBar menu)
Set the menu bar of the delegate. |
void |
setLayeredPane(javax.swing.JLayeredPane layeredPane)
Set the layered pane of the delegate. |
void |
setSize(int w,
int h)
Set the size in the delegate. |
void |
setTitle(java.lang.String title)
Set the title of the context. |
void |
setVisible(boolean visible)
Invoke the delegate's setvisible(). |
void |
showStatus(java.lang.String status)
Show the status in the delegate. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private transient AppContext _delegate
Constructor Detail |
---|
public AppContextDelegate(AppContext context)
Method Detail |
---|
public java.awt.Container getContentPane()
getContentPane
in interface javax.swing.RootPaneContainer
public AppContext getDelegate()
public java.awt.Component getGlassPane()
getGlassPane
in interface javax.swing.RootPaneContainer
public javax.swing.JLayeredPane getLayeredPane()
getLayeredPane
in interface javax.swing.RootPaneContainer
public javax.swing.JRootPane getRootPane()
getRootPane
in interface javax.swing.RootPaneContainer
public java.lang.String getTitle()
getTitle
in interface AppContext
public void setContentPane(java.awt.Container contentPane)
setContentPane
in interface javax.swing.RootPaneContainer
public void setGlassPane(java.awt.Component glassPane)
setGlassPane
in interface javax.swing.RootPaneContainer
public void setLayeredPane(javax.swing.JLayeredPane layeredPane)
setLayeredPane
in interface javax.swing.RootPaneContainer
public void setExitAction(javax.swing.Action action)
setExitAction
in interface AppContext
public javax.swing.Action getExitAction()
getExitAction
in interface AppContext
public void setIconImage(java.awt.Image image)
setIconImage
in interface AppContext
public java.awt.Image getIconImage()
getIconImage
in interface AppContext
public javax.swing.JMenuBar getJMenuBar()
getJMenuBar
in interface AppContext
public void setJMenuBar(javax.swing.JMenuBar menu)
setJMenuBar
in interface AppContext
public void showStatus(java.lang.String status)
showStatus
in interface AppContext
public void setSize(int w, int h)
setSize
in interface AppContext
public void setTitle(java.lang.String title)
setTitle
in interface AppContext
public void setVisible(boolean visible)
setVisible
in interface AppContext
public boolean isVisible()
isVisible
in interface AppContext
public java.awt.Component makeComponent()
makeComponent
in interface AppContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |