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 RootPaneContainer
public AppContext getDelegate()
public Component getGlassPane()
getGlassPane
in interface RootPaneContainer
public JLayeredPane getLayeredPane()
getLayeredPane
in interface RootPaneContainer
public JRootPane getRootPane()
getRootPane
in interface RootPaneContainer
public String getTitle()
getTitle
in interface AppContext
public void setContentPane(Container contentPane)
setContentPane
in interface RootPaneContainer
public void setGlassPane(Component glassPane)
setGlassPane
in interface RootPaneContainer
public void setLayeredPane(JLayeredPane layeredPane)
setLayeredPane
in interface RootPaneContainer
public void setExitAction(Action action)
setExitAction
in interface AppContext
public Action getExitAction()
getExitAction
in interface AppContext
public void setIconImage(Image image)
setIconImage
in interface AppContext
public Image getIconImage()
getIconImage
in interface AppContext
public JMenuBar getJMenuBar()
getJMenuBar
in interface AppContext
public void setJMenuBar(JMenuBar menu)
setJMenuBar
in interface AppContext
public void showStatus(String status)
showStatus
in interface AppContext
public void setSize(int w, int h)
setSize
in interface AppContext
public void setTitle(String title)
setTitle
in interface AppContext
public void setVisible(boolean visible)
setVisible
in interface AppContext
public boolean isVisible()
isVisible
in interface AppContext
public Component makeComponent()
makeComponent
in interface AppContext
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.