public class AppContextDelegate extends 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 |
|---|---|
Container |
getContentPane()
Returns the contentPane of the delegate.
|
AppContext |
getDelegate()
Return the context delegate.
|
Action |
getExitAction()
Return the exit action of the delegate.
|
Component |
getGlassPane()
Returns the glassPane of the delegate.
|
Image |
getIconImage()
Return the image icon of the delegate.
|
JMenuBar |
getJMenuBar()
Return the menu bar of the delegate.
|
JLayeredPane |
getLayeredPane()
Returns the layeredPane of the delegate.
|
JRootPane |
getRootPane()
Returns the rootPane of the delegate.
|
String |
getTitle()
Return the title of the context.
|
boolean |
isVisible()
Invoke the delegate's isvisible().
|
Component |
makeComponent()
Call makeComponent() on the delegate.
|
void |
setContentPane(Container contentPane)
Set the content pane of the delegate.
|
void |
setExitAction(Action action)
Set the exit action of the delegate.
|
void |
setGlassPane(Component glassPane)
Set the glassPane of the delegate.
|
void |
setIconImage(Image image)
Set the image icon of the delegate.
|
void |
setJMenuBar(JMenuBar menu)
Set the menu bar of the delegate.
|
void |
setLayeredPane(JLayeredPane layeredPane)
Set the layerd pane of the delegate.
|
void |
setSize(int w,
int h)
Set the size in the delegate.
|
void |
setTitle(String title)
Set the title of the context.
|
void |
setVisible(boolean visible)
Invoke the delegate's setvisible().
|
void |
showStatus(String status)
Show the status in the delegate.
|
public AppContextDelegate(AppContext context)
public Container getContentPane()
getContentPane in interface RootPaneContainerpublic AppContext getDelegate()
public Component getGlassPane()
getGlassPane in interface RootPaneContainerpublic JLayeredPane getLayeredPane()
getLayeredPane in interface RootPaneContainerpublic JRootPane getRootPane()
getRootPane in interface RootPaneContainerpublic String getTitle()
getTitle in interface AppContextpublic void setContentPane(Container contentPane)
setContentPane in interface RootPaneContainerpublic void setGlassPane(Component glassPane)
setGlassPane in interface RootPaneContainerpublic void setLayeredPane(JLayeredPane layeredPane)
setLayeredPane in interface RootPaneContainerpublic void setExitAction(Action action)
setExitAction in interface AppContextpublic Action getExitAction()
getExitAction in interface AppContextpublic void setIconImage(Image image)
setIconImage in interface AppContextpublic Image getIconImage()
getIconImage in interface AppContextpublic JMenuBar getJMenuBar()
getJMenuBar in interface AppContextpublic void setJMenuBar(JMenuBar menu)
setJMenuBar in interface AppContextpublic void showStatus(String status)
showStatus in interface AppContextpublic void setSize(int w,
int h)
setSize in interface AppContextpublic void setTitle(String title)
setTitle in interface AppContextpublic void setVisible(boolean visible)
setVisible in interface AppContextpublic boolean isVisible()
isVisible in interface AppContextpublic Component makeComponent()
makeComponent in interface AppContextCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.