public interface OptionalPage
Console.addOptionalPage(OptionalPage).| Modifier and Type | Method and Description |
|---|---|
default boolean |
agentDisconnected(org.lsst.ccs.bus.data.AgentInfo agent)
Called whenever an agent for which a page has been opened disconnects from the buses.
|
default void |
closed(String page)
Called when the page is closed by the user.
|
String |
getPage(org.lsst.ccs.bus.data.AgentInfo agent)
Called whenever a new subsystem is detected on the buses.
|
String |
getPath()
Returns a unique slash-separated path that determines placement of the menu item that opens this page.
|
default boolean |
isAutoOpen()
Returns the default auto-open value.
|
JComponent |
open(org.lsst.ccs.bus.data.AgentInfo agent,
JComponent existingComponent)
Called when a page is being opened.
|
default void |
opened(String page)
Called after the page has been opened and made visible by the graphical console.
|
String getPath()
default boolean isAutoOpen()
true, the page(s) will be open automatically on compatible subsystem discovery.
The default implementation returns true.
auto-open value.String getPage(org.lsst.ccs.bus.data.AgentInfo agent)
null. If an empty string is returned, the subsystem name is used.
If auto-open is true, the open(...) function will be called immediately
following this call. Otherwise, a menu item with the page name is added to
the graphical console "Window" menu with a path determined by getPath().
agent - Agent that has been discovered on the buses.JComponent open(org.lsst.ccs.bus.data.AgentInfo agent, JComponent existingComponent)
null is returned, the page is not displayed.
If a page with the name returned by getPage(AgentInfo) already exists
(this can happen if a single page communicates with multiple subsystems),
it is passed to this method as existingComponent. In this case, the
component returned by this method is ignored.agent - Agent.existingComponent - Existing component with the specified name.default boolean agentDisconnected(org.lsst.ccs.bus.data.AgentInfo agent)
true to request closing the page. Regardless of the return value,
the page is closed if there are no more active agents associated with it.
The default implementation returns false.
agent - Agent.true to closed the page.default void opened(String page)
The default implementation does nothing.
page - Name of the opened page.default void closed(String page)
The default implementation does nothing.
page - Name of the closed page.Copyright © 2018 LSST. All rights reserved.