| org.columba.api.gui.frame.IContainer
All known Subclasses: org.columba.core.gui.frame.DefaultContainer,
IContainer | public interface IContainer (Code) | | A container is actually a JFrame, which encapsulates a component called
IFrameMediator in our case.
The basic default container is a JFrame, with a core menu, toolbar and
statusbar. Additionally, it has a content pane in the center.
FrameMeditator extends the menu and toolbar. It also places its main ui
components in the content pane.
author: fdietz |
MAIN_TOOLBAR | final public static String MAIN_TOOLBAR(Code) | | internally used toolbar ID
|
addToolBar | public void addToolBar(JComponent c)(Code) | | Add another toolbar to this container. These are simply JComponent
objects which are appended vertically currently.
Parameters: c - new toolbar-like component |
close | public void close()(Code) | | Save window properties and close the window. This includes telling the
frame model that this window/frame is closing, so it can be
"unregistered" correctly
|
enableToolBar | public void enableToolBar(String id, boolean enable)(Code) | | Show/Hide toolbar.
Parameters: id - id of toolbar Parameters: enable - if true, show toolbar. Otherwise, hide toolbar. |
extendMenu | void extendMenu(IFrameMediator mediator, InputStream is)(Code) | | Extend current Columba menu from xml file.
Parameters: mediator - current framemediator Parameters: fileUrl - path to xml file |
extendToolbar | void extendToolbar(IFrameMediator mediator, InputStream is)(Code) | | Extend current toolbar from xml element.
Parameters: mediator - current framemediator Parameters: is - xml element |
getFrame | JFrame getFrame()(Code) | | Get current swing JFrame. This could become handy when directly accessing
JFrame functionality. For example, you don't want to use Columba's menu
or toolbar framework.
swing JFrame |
getFrameMediator | IFrameMediator getFrameMediator()(Code) | | Get current framemediator this container encapsulates.
current container |
getJMenuBar | JMenuBar getJMenuBar()(Code) | | Get the menubar of this container.
current menubar |
getStatusBar | public IStatusBar getStatusBar()(Code) | | Get statusbar.
current statusbar |
isToolBarEnabled | public boolean isToolBarEnabled(String id)(Code) | | Check if toolbar is visible.
Parameters: id - id of toolbar true, if visible. False, otherwise. |
setCloseOperation | void setCloseOperation(boolean close)(Code) | | Window closing action
Parameters: close - if true, close window. Otherwise, don't close windowautomatically. |
setContentPane | void setContentPane(JPanel view)(Code) | | Set the content pane of this component. This is the center of the JFrame,
right between the menu/toolbar and statusbar.
Parameters: view - new content pane |
setFrameMediator | void setFrameMediator(IFrameMediator m)(Code) | | Set new framemediator this container should encapsulate.
Parameters: m - new framemediator |
setJMenuBar | void setJMenuBar(JMenuBar menuBar)(Code) | | Set the menubar of this container.
Parameters: menuBar - new menubar |
setToolBar | void setToolBar(JToolBar toolbar)(Code) | | Set toolbar of this container.
Parameters: toolbar - new toolbar |
setWindowName | void setWindowName(String name)(Code) | | Sets the window name which is displayed in the title.
Parameters: name - |
switchFrameMediator | void switchFrameMediator(IFrameMediator m)(Code) | | Switch to new framemediator. This also ensures that the menu, toolbar,
infobar, etc. get also replaced correctly.
Parameters: m - new framemediator |
|
|