public interface IlvMainWindow
IlvSwingMainWindow
: This class
should be used if the main window of the application cannot inherit from
IlvMDIMainFrame
or
IlvMDIApplet
. This class also allows
the main window of the application to be a main frame or an applet depending
on the launching mode of the application.IlvMDIMainFrame
: for frame main
windows.IlvMDIApplet
: for applets.Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTAINER_TEMPLATE_NAME
Name of the default container template.
|
Modifier and Type | Method and Description |
---|---|
void |
containerActivated(IlvViewContainer viewContainer)
Invoked when a view container owned by this main window has been
activated.
|
IlvViewContainer |
getActiveViewContainer()
Returns the active view container.
|
IlvApplication |
getApplication()
Returns the application of the main window.
|
IlvContainerTemplate |
getContainerTemplate(String name)
Returns the container template stored by the main window with the specified
name.
|
Object[] |
getMainBars()
Returns the menu and toolbars of the main window that do not depend on a
specific document type.
|
void |
registerStaticContainer(String name,
IlvViewContainer container)
Registers the specified view container as a static container within the
main window.
|
void |
registerStaticView(String name,
IlvDocumentView view)
Registers the specified document view as a static view within the
main window.
|
void |
setApplication(IlvApplication application)
Sets the application of the main window.
|
boolean |
unregisterStaticContainer(IlvViewContainer container)
Unregisters the specified view container from the main window.
|
void |
unregisterStaticView(IlvDocumentView view)
Unregisters the specified document view from the main window.
|
static final String DEFAULT_CONTAINER_TEMPLATE_NAME
IlvViewContainer getActiveViewContainer()
IlvApplication getApplication()
void setApplication(IlvApplication application)
application
- The application of the window.getApplication()
IlvContainerTemplate getContainerTemplate(String name)
name
- The name of the container template to retrieve.null
if no container template has been added with this name.IlvAbstractMainWindow.addContainerTemplate(java.lang.String, ilog.views.appframe.docview.IlvContainerTemplate)
Object[] getMainBars()
JToolBar
instance or a JMenuBar
instance.void containerActivated(IlvViewContainer viewContainer)
This method can be overridden for setting the focus to
specific components owned by the specified viewContainer
.
viewContainer
- The view container that has been activated.void registerStaticView(String name, IlvDocumentView view)
IlvDocumentView.initializeView(ilog.views.appframe.docview.IlvDocument)
called for all the new activated documents with a document template that
refers to this view through a view configuration having a template name equal to
the specified name
.name
- The name that identifies this view. This name is used to make
this view correspond with an IlvDocumentViewConfiguration
using the
method IlvDocumentViewConfiguration.getTemplateName()
.view
- The static view to register.unregisterStaticView(ilog.views.appframe.docview.IlvDocumentView)
void unregisterStaticView(IlvDocumentView view)
view
- The static view to unregister.registerStaticView(java.lang.String, ilog.views.appframe.docview.IlvDocumentView)
void registerStaticContainer(String name, IlvViewContainer container)
The views contained by the specified container have
their IlvDocumentView.initializeView(ilog.views.appframe.docview.IlvDocument)
called for all the new activated documents with a document template
that refers to this container through a view configuration having a
template name equal to the specified name
.
name
- The name that identifies this container. This name is
used to make the view container correspond with an
IlvDocumentViewConfiguration
using the
IlvDocumentViewConfiguration.getTemplateName()
method.container
- The static container to register.unregisterStaticContainer(ilog.views.appframe.docview.IlvViewContainer)
boolean unregisterStaticContainer(IlvViewContainer container)
container
- The static container to unregister.true
if the specified container was previously
registered to this main window; false
otherwise.registerStaticContainer(java.lang.String, ilog.views.appframe.docview.IlvViewContainer)
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.