public final class JasPanelManager extends Object implements PanelManager, org.freehep.application.mdi.PageListener
PanelManager.| Constructor and Description |
|---|
JasPanelManager(org.freehep.application.studio.Studio studio) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(PanelListener listener) |
void |
addListener(PanelListener listener,
Component component) |
void |
close(Component component) |
org.freehep.application.mdi.PageContext |
findPage(PanelType type,
String title) |
Object |
get(Component component,
Object key)
Returns a property of the specified graphical console panel.
|
static org.freehep.application.mdi.PageContext |
getContext(Component component)
Returns
PageContext instance whose view is the specified component or one of its ancestors. |
org.freehep.application.mdi.PageManager |
getPageManager(PanelType type) |
JComponent |
getPanel(Component component) |
static JComponent |
getPanel(org.freehep.application.mdi.PageContext context)
Returns managed panel corresponding to the specified context.
|
List<JComponent> |
getPanels()
Returns the list of panels managed by this
PanelManager. |
boolean |
isInState(Component panel,
Map<?,?> properties) |
void |
open(Component panel,
Map<?,?> properties) |
void |
pageChanged(org.freehep.application.mdi.PageEvent pe) |
void |
removeListener(PanelListener listener) |
void |
removeListener(PanelListener listener,
Component component) |
void |
set(Component component,
Object key,
Object value)
Sets a property on the graphical console panel that contains the specified component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, close, get, getOrDefault, getPanels, getPanels, getPanels, getSelectedPanel, openpublic JasPanelManager(org.freehep.application.studio.Studio studio)
public void open(Component panel, Map<?,?> properties)
open in interface PanelManagerpublic void close(Component component)
close in interface PanelManagerpublic List<JComponent> getPanels()
PanelManagerPanelManager.getPanels in interface PanelManagerPanelManager.public Object get(Component component, Object key)
get in interface PanelManagercomponent - Graphical console panel or one of its descendants.key - Property key.null is the property is not set.IllegalArgumentException - if the specified component is not a descendant of a panel managed by this PanelManager.public boolean isInState(Component panel, Map<?,?> properties)
isInState in interface PanelManagerpublic JComponent getPanel(Component component)
getPanel in interface PanelManagerpublic void set(Component component, Object key, Object value)
set in interface PanelManagercomponent - Graphical console panel or one of its descendants.key - Property key.value - The new property value.IllegalArgumentException - if the specified component is not a descendant of a panel managed by this PanelManager.public void pageChanged(org.freehep.application.mdi.PageEvent pe)
pageChanged in interface org.freehep.application.mdi.PageListenerpublic void addListener(PanelListener listener)
addListener in interface PanelManagerpublic void addListener(PanelListener listener, Component component)
addListener in interface PanelManagerpublic void removeListener(PanelListener listener)
removeListener in interface PanelManagerpublic void removeListener(PanelListener listener, Component component)
removeListener in interface PanelManagerpublic org.freehep.application.mdi.PageManager getPageManager(PanelType type)
public static org.freehep.application.mdi.PageContext getContext(Component component)
PageContext instance whose view is the specified component or one of its ancestors.
Note that this method returns non-null value only for components that are currently
managed by this panel manager (meaning that they or their ancestors have been
passed to the open(...) method, and have not been closed after that.component - The graphical component whose context needs to be found.PageContext that handles the specified panel, or null if there is none.public static JComponent getPanel(org.freehep.application.mdi.PageContext context)
context - Page context as known to freehep-application.PanelManager.Copyright © 2023 LSST. All rights reserved.