|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.ui.application.support.AbstractControlFactory
org.esa.beam.framework.ui.application.support.AbstractToolView
public abstract class AbstractToolView
An abstract base class for client ToolViews.
Clients should use this class a base class for their tool view implementations.
| Constructor Summary | |
|---|---|
protected |
AbstractToolView()
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
componentClosed()
The default implementation does nothing. |
void |
componentFocusGained()
The default implementation does nothing. |
void |
componentFocusLost()
The default implementation does nothing. |
void |
componentHidden()
The default implementation does nothing. |
void |
componentOpened()
The default implementation does nothing. |
void |
componentShown()
The default implementation does nothing. |
void |
dispose()
The default implementation does nothing. |
PageComponentContext |
getContext()
Gets the actual tool window component as part of the application's main frame window. |
PageComponentDescriptor |
getDescriptor()
Gets the descriptor. |
Icon |
getIcon()
|
String |
getId()
Gets the tool window identifier. |
Container |
getPaneControl()
Gets the content pane of this tool window's part. |
Window |
getPaneWindow()
Gets the first Window ancestor of this tool window's content pane, or
null if it is (currently) not contained inside a Window. |
com.bc.ceres.swing.selection.SelectionContext |
getSelectionContext()
Gets the current selection context, if any. |
String |
getTitle()
|
boolean |
isVisible()
Returns whether the toolview is visible. |
protected void |
registerLocalCommandExecutors(PageComponentContext context)
Template method called once when this view is initialized. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
|
void |
setContext(PageComponentContext context)
Sets the tool window's context. |
void |
setDescriptor(PageComponentDescriptor descriptor)
Sets the descriptor. |
void |
setTitle(String title)
Sets the actual window title which may be different from what PageComponentDescriptor.getTitle() returns. |
| Methods inherited from class org.esa.beam.framework.ui.application.support.AbstractControlFactory |
|---|
createControl, createControlIfNecessary, getControl, isControlCreated, isSingleton, setSingleton |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.esa.beam.framework.ui.application.ControlFactory |
|---|
getControl |
| Constructor Detail |
|---|
protected AbstractToolView()
| Method Detail |
|---|
public PageComponentDescriptor getDescriptor()
PageComponent
getDescriptor in interface PageComponentPageComponent.setDescriptor(PageComponentDescriptor)public final void setDescriptor(PageComponentDescriptor descriptor)
PageComponentClients must not call this method directly. It is called only once by the framework after a PageComponentContext
has been created and before the framework calls the PageComponent.setContext(org.esa.beam.framework.ui.application.PageComponentContext) method.
setDescriptor in interface PageComponentdescriptor - the descriptorPageComponent.getDescriptor()public PageComponentContext getContext()
getContext in interface PageComponentsetContext(PageComponentContext) method
or null if the too window has not yet been initialised.public final void setContext(PageComponentContext context)
Clients may override this method in order configure their tool window.
However, after calling this method,
getContext() shall return the same context.
Clients must not call this method directly, it is called only once by the framework after a PageComponentContext
has been created for this tool window.
setContext in interface PageComponentcontext - The tool window part.public String getId()
getId in interface PageComponentpublic String getTitle()
getTitle in interface PageComponentpublic Icon getIcon()
getIcon in interface PageComponentpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface com.bc.ceres.binding.PropertyChangeEmitter
public void addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
addPropertyChangeListener in interface com.bc.ceres.binding.PropertyChangeEmitterpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface com.bc.ceres.binding.PropertyChangeEmitter
public void removePropertyChangeListener(String propertyName,
PropertyChangeListener listener)
removePropertyChangeListener in interface com.bc.ceres.binding.PropertyChangeEmitterprotected void registerLocalCommandExecutors(PageComponentContext context)
context - the view contextpublic void dispose()
Clients shall not call this method directly.
dispose in interface PageComponentpublic Container getPaneControl()
public Window getPaneWindow()
Window ancestor of this tool window's content pane, or
null if it is (currently) not contained inside a Window.
Window ancestor, or null.public void setTitle(String title)
PageComponentDescriptor.getTitle() returns.
title - The window's title.public void componentOpened()
Clients shall not call this method directly.
componentOpened in interface PageComponentpublic void componentClosed()
Clients shall not call this method directly.
componentClosed in interface PageComponentpublic void componentShown()
Clients shall not call this method directly.
componentShown in interface PageComponentpublic void componentHidden()
Clients shall not call this method directly.
componentHidden in interface PageComponentpublic void componentFocusGained()
Clients shall not call this method directly.
componentFocusGained in interface PageComponentpublic void componentFocusLost()
Clients shall not call this method directly.
componentFocusLost in interface PageComponentpublic com.bc.ceres.swing.selection.SelectionContext getSelectionContext()
getSelectionContext in interface PageComponentnull if none exists.public boolean isVisible()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||