public class AppContextDelegate extends java.lang.Object implements AppContext
Constructor and Description |
---|
AppContextDelegate(AppContext context)
Create a new app context that delegates to the given context.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public AppContextDelegate(AppContext context)
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