public class TabbedView extends AbstractMonitorView1
| Modifier and Type | Class and Description |
|---|---|
static class |
TabbedView.Descriptor
JavaBean that contains information required to re-create this view in its current state.
|
filter, formatterCATEGORY| Constructor and Description |
|---|
TabbedView() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,AgentChannel> channels)
Adds channels to display.
|
protected void |
connect(org.lsst.ccs.bus.data.AgentInfo agent) |
protected void |
disconnect(org.lsst.ccs.bus.data.AgentInfo agent) |
TabbedView.Descriptor |
getDescriptor()
Returns a reference to the descriptor maintained by this component.
|
JComponent |
getPanel()
Returns the graphical component maintained by this view.
|
protected void |
removeChannels(org.lsst.ccs.bus.data.AgentInfo agent,
List<String> paths)
Removes a channels from this view.
|
void |
restore(Persistable.Descriptor descriptor)
Restores this view to the state described by the provided descriptor, to the extent possible.
|
TabbedView.Descriptor |
save()
Returns a descriptor that contains information required to re-create this view in its current state.
|
void |
setTab(String name,
AbstractMonitorView1 view)
Sets the view to be displayed in the tab
name. |
void |
setViewFactory(Function<String,AbstractMonitorView2> factory)
Sets the factory used to create views for tabs for which the view has not been explicitly set.
|
protected void |
updateChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,Map.Entry<AgentChannel,List<String>>> channels)
Called to notify this view that the specified channels have been updated.
|
configure, connect, disconnect, getFilter, getFormater, isChannelListFixed, setFilter, setFormatter, statusChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedit, getNameinstall, isEmpty, setName, uninstallgetCategory, restore@Create(category="MonitorView", name="Tabbed View", path="Built-In/Tabbed", description="Monitoring data view that displays its data in a set of tabs.") public TabbedView()
public void setTab(String name, AbstractMonitorView1 view)
name.name - view - public void setViewFactory(Function<String,AbstractMonitorView2> factory)
factory - Factory that returns view instance given the tab name.public JComponent getPanel()
MonitorViewprotected void connect(org.lsst.ccs.bus.data.AgentInfo agent)
connect in class AbstractMonitorView1protected void disconnect(org.lsst.ccs.bus.data.AgentInfo agent)
disconnect in class AbstractMonitorView1protected void addChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,AgentChannel> channels)
AbstractMonitorView1addChannels in class AbstractMonitorView1agent - Source agent.channels - Map of display paths to channels.protected void removeChannels(org.lsst.ccs.bus.data.AgentInfo agent,
List<String> paths)
AbstractMonitorView1removeChannels in class AbstractMonitorView1agent - Source agent.paths - Display paths to remove.protected void updateChannels(org.lsst.ccs.bus.data.AgentInfo agent,
Map<String,Map.Entry<AgentChannel,List<String>>> channels)
AbstractMonitorView1updateChannels in class AbstractMonitorView1agent - Source agent.channels - Map of display paths to key-value pairs, where the key is as AgentChannel object
and the value is a list of changed attributes.public TabbedView.Descriptor save()
public void restore(Persistable.Descriptor descriptor)
descriptor - View descriptor.public TabbedView.Descriptor getDescriptor()
Persistablenull, and
that any properties set on the descriptor returned by this method are reflected by
descriptors subsequently returned by save(), unless modified between the two calls.Copyright © 2019 LSST. All rights reserved.