|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended bydiva.gui.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.
| 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 |
| Constructor Detail |
public AppContextDelegate(AppContext context)
| Method Detail |
public java.awt.Container getContentPane()
getContentPane in interface javax.swing.RootPaneContainerpublic AppContext getDelegate()
public java.awt.Component getGlassPane()
getGlassPane in interface javax.swing.RootPaneContainerpublic javax.swing.JLayeredPane getLayeredPane()
getLayeredPane in interface javax.swing.RootPaneContainerpublic javax.swing.JRootPane getRootPane()
getRootPane in interface javax.swing.RootPaneContainerpublic java.lang.String getTitle()
getTitle in interface AppContextpublic void setContentPane(java.awt.Container contentPane)
setContentPane in interface javax.swing.RootPaneContainerpublic void setGlassPane(java.awt.Component glassPane)
setGlassPane in interface javax.swing.RootPaneContainerpublic void setLayeredPane(javax.swing.JLayeredPane layeredPane)
setLayeredPane in interface javax.swing.RootPaneContainerpublic void setExitAction(javax.swing.Action action)
setExitAction in interface AppContextpublic javax.swing.Action getExitAction()
getExitAction in interface AppContextpublic void setIconImage(java.awt.Image image)
setIconImage in interface AppContextpublic java.awt.Image getIconImage()
getIconImage in interface AppContextpublic javax.swing.JMenuBar getJMenuBar()
getJMenuBar in interface AppContextpublic void setJMenuBar(javax.swing.JMenuBar menu)
setJMenuBar in interface AppContextpublic void showStatus(java.lang.String status)
showStatus in interface AppContextpublic void setSize(int w, int h)
setSize in interface AppContextpublic void setTitle(java.lang.String title)
setTitle in interface AppContextpublic void setVisible(boolean visible)
setVisible in interface AppContextpublic boolean isVisible()
isVisible in interface AppContextpublic 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 | |||||||||