public class TabbedView extends AbstractMonitorView
| Modifier and Type | Class and Description |
|---|---|
static class |
TabbedView.Descriptor
JavaBean that contains information required to re-create this view in its current state.
|
data, filter, formatterAVAILABLE_GROUP_FIELDS, CATEGORY, DEFAULT_GROUP_FIELD| Constructor and Description |
|---|
TabbedView() |
| Modifier and Type | Method and Description |
|---|---|
void |
addChannels(List<org.lsst.ccs.bus.data.AgentInfo> agents,
List<Map.Entry<String,AgentChannel>> channels)
Adds channels to this view.
|
TabbedView.Descriptor |
getDescriptor()
Returns a reference to the descriptor maintained by this component.
|
JComponent |
getPanel()
Returns the graphical component maintained by this view.
|
void |
removeChannels(List<org.lsst.ccs.bus.data.AgentInfo> agents,
List<Map.Entry<String,AgentChannel>> channels)
Removes 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,
AbstractMonitorView view)
Sets the view to be displayed in the tab
name. |
void |
setViewFactory(Function<String,AbstractMonitorView> factory)
Sets the factory used to create views for tabs for which the view has not been explicitly set.
|
protected String[] |
split(String displayPath)
Splits display path produced by the filter onto [tab, path inside tab].
|
void |
updateChannels(List<Map.Entry<String,Map.Entry<AgentChannel,List<String>>>> channels)
Updates channels in this view.
|
configure, connect, createChannel, disconnect, getFilter, getFormater, getGroups, isEmpty, resetChannels, setDiscardRemovedChannels, setFilter, setFormatter, statusChanged, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedit, getNamefieldToString, getFields, getGroup, install, setName, stringToField, 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, AbstractMonitorView view)
name.name - view - public void setViewFactory(Function<String,AbstractMonitorView> factory)
factory - Factory that returns view instance given the tab name.public JComponent getPanel()
MonitorViewpublic void addChannels(List<org.lsst.ccs.bus.data.AgentInfo> agents, List<Map.Entry<String,AgentChannel>> channels)
AbstractMonitorViewaddChannels in class AbstractMonitorViewagents - Newly connected agents these channels belong to.channels - New channels, each entry contains display path and channel.public void removeChannels(List<org.lsst.ccs.bus.data.AgentInfo> agents, List<Map.Entry<String,AgentChannel>> channels)
AbstractMonitorViewdiscardRemovedChannels flag is not set, the channels are updated but not removed.removeChannels in class AbstractMonitorViewagents - Names of disconnected agents.channels - Removed channels, each entry contains display path and channel.public void updateChannels(List<Map.Entry<String,Map.Entry<AgentChannel,List<String>>>> channels)
AbstractMonitorViewupdateChannels in class AbstractMonitorViewchannels - Updated channels, each element contains: {display path : {channel : list of modified 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 © 2020 LSST. All rights reserved.