|
||||||||||
| 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.AbstractApplicationPage
public abstract class AbstractApplicationPage
Abstract "convenience" implementation of ApplicationPage.
| Constructor Summary | |
|---|---|
protected |
AbstractApplicationPage()
|
| Method Summary | |
|---|---|
void |
addPageComponentListener(PageComponentListener listener)
|
ToolView |
addToolView(ToolViewDescriptor viewDescriptor)
|
boolean |
close()
Closes this ApplicationPage. |
void |
close(PageComponent pageComponent)
Closes the given PageComponent. |
boolean |
closeAllDocViews()
|
protected ToolView |
createToolView(ToolViewDescriptor descriptor)
Creates a PageComponent for the given PageComponentDescriptor. |
protected abstract PageComponentPane |
createToolViewPane(ToolView toolView)
|
protected abstract void |
doAddToolView(ToolView toolView)
This method must add the given tool view in the UI. |
protected abstract void |
doHideToolView(ToolView toolView)
This method must hide the given tool view in the UI. |
protected abstract void |
doRemoveToolView(ToolView toolView)
This method must remove the given tool view from the UI. |
protected abstract void |
doShowToolView(ToolView toolView)
This method must show the given tool view in the UI. |
protected void |
fireClosed(PageComponent component)
|
protected void |
fireFocusGained(PageComponent component)
|
protected void |
fireFocusLost(PageComponent component)
|
protected void |
fireHidden(PageComponent component)
|
protected void |
fireOpened(PageComponent component)
|
protected void |
fireShown(PageComponent component)
|
PageComponent |
getActiveComponent()
Returns the active PageComponent, or null if none. |
PageComponent |
getPageComponent(String id)
|
ToolView |
getToolView(String id)
|
abstract ToolViewDescriptor |
getToolViewDescriptor(String id)
|
ToolView[] |
getToolViews()
|
protected abstract boolean |
giveFocusTo(PageComponent pageComponent)
This method must transfer the focus to the given PageComponent. |
void |
hideToolView(ToolView toolView)
|
DocView |
openDocView(Object editorInput)
|
protected void |
pageComponentChanged(PropertyChangeEvent evt)
Called when the PageComponent changes any of its properties (display
name, caption, icon, ...). |
void |
removePageComponentListener(PageComponentListener listener)
|
protected abstract void |
setActiveComponent()
Set the active page component by determing it. |
void |
setActiveComponent(PageComponent pageComponent)
Activates the given PageComponent. |
ToolView |
showToolView(String id)
|
ToolView |
showToolView(ToolViewDescriptor viewDescriptor)
|
| 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.ApplicationPage |
|---|
getCommandManager, getSelectionManager, getWindow |
| Methods inherited from interface org.esa.beam.framework.ui.application.ControlFactory |
|---|
getControl |
| Constructor Detail |
|---|
protected AbstractApplicationPage()
| Method Detail |
|---|
public void addPageComponentListener(PageComponentListener listener)
addPageComponentListener in interface PageComponentServicepublic void removePageComponentListener(PageComponentListener listener)
removePageComponentListener in interface PageComponentServicepublic PageComponent getActiveComponent()
PageComponent, or null if none.
getActiveComponent in interface PageComponentServicePageComponentpublic void close(PageComponent pageComponent)
PageComponent. This method disposes the
PageComponent, triggers all necessary events ("focus lost" and
"closed"), and will activate another PageComponent (if there is
one).
Does nothing if this ApplicationPage doesn't contain the given
PageComponent.
close in interface ApplicationPagepageComponent - the PageComponentpublic boolean close()
ApplicationPage. This method calls
close(PageComponent) for each open PageComponent.
close in interface ApplicationPagetrue if the operation was successfull, false
otherwise.public PageComponent getPageComponent(String id)
getPageComponent in interface ApplicationPagepublic ToolView[] getToolViews()
getToolViews in interface ApplicationPagepublic ToolView getToolView(String id)
getToolView in interface ApplicationPagepublic abstract ToolViewDescriptor getToolViewDescriptor(String id)
public ToolView addToolView(ToolViewDescriptor viewDescriptor)
addToolView in interface ApplicationPagepublic ToolView showToolView(String id)
showToolView in interface ApplicationPagepublic ToolView showToolView(ToolViewDescriptor viewDescriptor)
showToolView in interface ApplicationPagepublic void hideToolView(ToolView toolView)
hideToolView in interface ApplicationPagepublic DocView openDocView(Object editorInput)
openDocView in interface ApplicationPagepublic boolean closeAllDocViews()
closeAllDocViews in interface ApplicationPageprotected ToolView createToolView(ToolViewDescriptor descriptor)
descriptor - the descriptor
protected void pageComponentChanged(PropertyChangeEvent evt)
PageComponent changes any of its properties (display
name, caption, icon, ...).
This method should be overridden when these changes must be reflected in the UI.
evt - protected void fireOpened(PageComponent component)
protected void fireClosed(PageComponent component)
protected void fireShown(PageComponent component)
protected void fireHidden(PageComponent component)
protected void fireFocusGained(PageComponent component)
protected void fireFocusLost(PageComponent component)
protected abstract void setActiveComponent()
JDesktopPane, the active component
is determined by its active JInternalFrame.
public void setActiveComponent(PageComponent pageComponent)
PageComponent. Does nothing if it is already
the active one.
Does nothing if this ApplicationPage doesn't contain the given
PageComponent.
pageComponent - the PageComponentprotected abstract void doAddToolView(ToolView toolView)
toolView - the tool viewprotected abstract void doRemoveToolView(ToolView toolView)
toolView - the tool viewprotected abstract void doShowToolView(ToolView toolView)
toolView - the tool viewprotected abstract void doHideToolView(ToolView toolView)
toolView - the tool viewprotected abstract boolean giveFocusTo(PageComponent pageComponent)
PageComponent.
This could involve making an internal frame visible, selecting a tab in a tabbed
pane, ...
pageComponent - the PageComponent
true if the operation was successful, false
otherwiseprotected abstract PageComponentPane createToolViewPane(ToolView toolView)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||