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 |
close(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.
|
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 close the page.default void close(String page)
page - Name of the closed page.Copyright © 2017 LSST. All rights reserved.