public class LazyTreeView extends AbstractMonitorView
MonitorView that displays monitoring data as a tree of tables.
Unlike the original TreeView, this class is optimized for working with a large number of channels.
All access to instances of this class, including construction, should happen on the EDT.| Modifier and Type | Class and Description |
|---|---|
static class |
LazyTreeView.Descriptor
JavaBean that contains information required to re-create this view in its current state.
|
protected class |
LazyTreeView.DisplayNode
Leaf node that displays data.
|
static class |
LazyTreeView.InterNodeDescriptor |
protected class |
LazyTreeView.MonitorTableNode
Tree node that displays a monitor table.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
CREATOR_PATH |
static String |
CREATOR_PATH_CONF |
compactFields, data, fields, filter, formatterCATEGORY| Constructor and Description |
|---|
LazyTreeView() |
LazyTreeView(List<String> fields) |
| Modifier and Type | Method and Description |
|---|---|
LazyTreeView.Descriptor |
getDescriptor()
Returns a reference to the descriptor maintained by this view.
|
JComponent |
getPanel()
Returns the graphical component maintained by this view.
|
protected void |
resetChannels()
Called on EDT whenever channels have been added or removed.
|
void |
restore(Persistable.Descriptor descriptor)
Restores this view to the state described by the provided descriptor, to the extent possible.
|
LazyTreeView.Descriptor |
save()
Returns a descriptor that contains information required to re-create this view in its current state.
|
addChannels, configure, connect, createChannel, disconnect, getFilter, getFormater, getGroup, getGroupFields, getGroups, isEmpty, removeChannels, setDiscardRemovedChannels, setFilter, setFormatter, statusChanged, update, updateChannelsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedit, getNameinstall, setName, uninstallgetCategory, getPath, restorepublic static final String CREATOR_PATH
public static final String CREATOR_PATH_CONF
@Create(category="MonitorView", name="Lazy Tree View", path="Built-In/Basic/Tree", description="Monitoring data view that displays its data in a tree of tables.") public LazyTreeView()
@Create(category="MonitorView", name="Lazy Tree View", path="Built-In/Basic/Tree, Configurable", description="Monitoring data view that displays its data in a tree of tables.") public LazyTreeView(@Par(def="_null_",desc="List of fields to display. If not specified, the set of fields provided by the filter is used. Available standard fields: VALUE, UNITS, LOW_WARN, LOW_ALARM, ALERT_LOW, HIGH_WARN, HIGH_ALARM, ALERT_HIGH, DESCR") List<String> fields)
protected void resetChannels()
AbstractMonitorViewdata field.
Empty implementation is provided.resetChannels in class AbstractMonitorViewpublic JComponent getPanel()
public LazyTreeView.Descriptor save()
save in interface Persistablesave in interface Savablesave in class AbstractMonitorViewnull is this view does not support saving.public void restore(Persistable.Descriptor descriptor)
descriptor - View descriptor.public LazyTreeView.Descriptor getDescriptor()
getDescriptor in interface PersistablegetDescriptor in class AbstractMonitorViewCopyright © 2023 LSST. All rights reserved.