public abstract class IlvAbstractMainWindow extends Object implements IlvMainWindow
DEFAULT_CONTAINER_TEMPLATE_NAME
Constructor and Description |
---|
IlvAbstractMainWindow()
Constructs an
IlvAbstractMainWindow . |
Modifier and Type | Method and Description |
---|---|
void |
addContainerTemplate(String name,
IlvContainerTemplate containerTemplate)
Adds the specified container template to the list of container templates
managed by the main window.
|
void |
containerActivated(IlvViewContainer viewContainer)
Invoked when a view container owned by this main window is
activated.
|
abstract IlvApplication |
getApplication()
Returns the application associated with the main window.
|
IlvContainerTemplate |
getContainerTemplate(String name)
Returns the container template of the main window with the specified
name.
|
String |
getContainerTemplateName(IlvContainerTemplate containerTemplate)
Returns the name that was used to register the specified
containerTemplate to the main window. |
IlvContainerTemplate[] |
getContainerTemplates()
Returns the array of container templates added to this main window.
|
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 |
removeContainerTemplate(IlvContainerTemplate containerTemplate)
Removes the specified container template from the list of container templates
managed by 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActiveViewContainer, getMainBars
public IlvAbstractMainWindow()
IlvAbstractMainWindow
.public abstract IlvApplication getApplication()
getApplication
in interface IlvMainWindow
setApplication(ilog.views.appframe.IlvApplication)
public void setApplication(IlvApplication application)
setApplication
in interface IlvMainWindow
application
- The application of the main window.getApplication()
public IlvContainerTemplate getContainerTemplate(String name)
getContainerTemplate
in interface IlvMainWindow
name
- The name of the container template to retrieve.null
if no container template has been added with the specified name.addContainerTemplate(java.lang.String, ilog.views.appframe.docview.IlvContainerTemplate)
public String getContainerTemplateName(IlvContainerTemplate containerTemplate)
containerTemplate
to the main window.containerTemplate
- The container template to retrieve the
registered name of.addContainerTemplate(java.lang.String, ilog.views.appframe.docview.IlvContainerTemplate)
public IlvContainerTemplate[] getContainerTemplates()
public void addContainerTemplate(String name, IlvContainerTemplate containerTemplate)
IlvDocumentViewConfiguration
with template name (see
IlvDocumentViewConfiguration.getTemplateName()
) equal to the
specified name
.name
- The name that uniquely identifies the container template.containerTemplate
- The new container template.removeContainerTemplate(ilog.views.appframe.docview.IlvContainerTemplate)
public void removeContainerTemplate(IlvContainerTemplate containerTemplate)
containerTemplate
- The container template to remove.addContainerTemplate(java.lang.String, ilog.views.appframe.docview.IlvContainerTemplate)
public 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 that has a template name equal to
the specified name
.registerStaticView
in interface IlvMainWindow
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)
public void unregisterStaticView(IlvDocumentView view)
unregisterStaticView
in interface IlvMainWindow
view
- The static view to unregister.registerStaticView(java.lang.String, ilog.views.appframe.docview.IlvDocumentView)
public void registerStaticContainer(String name, IlvViewContainer container)
The views contained by the specified container will 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 that has a template name equal to
the specified name
.
registerStaticContainer
in interface IlvMainWindow
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)
public boolean unregisterStaticContainer(IlvViewContainer container)
unregisterStaticContainer
in interface IlvMainWindow
container
- The static container to unregister.true
if the specified container was previously
registered with this main window; false
otherwise.registerStaticContainer(java.lang.String, ilog.views.appframe.docview.IlvViewContainer)
public void containerActivated(IlvViewContainer viewContainer)
This method can be overridden to set the focus on
specific components owned by the specified viewContainer
.
containerActivated
in interface IlvMainWindow
viewContainer
- The view container that has been activated.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.