public class ComboGroupView extends GroupView
MonitorView that divides channels into groups and displays one group at a time, using combo boxes to select the group.| Modifier and Type | Class and Description |
|---|---|
static class |
ComboGroupView.Descriptor |
GroupView.Filter| Modifier and Type | Field and Description |
|---|---|
static String |
CREATOR_PATH |
currentGroup, depth, descriptor, selectionHistorycompactFields, data, fields, filter, formatterCATEGORY| Constructor and Description |
|---|
ComboGroupView(int depth,
List<String> labels) |
| Modifier and Type | Method and Description |
|---|---|
ComboGroupView.Descriptor |
getDescriptor()
Returns a reference to the descriptor maintained by this component.
|
JComponent |
getPanel()
Returns the graphical component maintained by this view.
|
protected void |
groupsAdded(List<String> groups) |
protected void |
groupSelected()
On group selection, re-populate all combo boxes.
|
protected void |
groupsRemoved(List<String> groups) |
protected void |
selectGroup(String group)
Selects and displays the view for the specified group.
|
addChannels, createView, getPath, getSubgroups, getView, hasGroup, mergeGroup, removeChannels, restore, save, separateGroup, setFormatter, test1, updateChannelsconfigure, connect, createChannel, disconnect, getFilter, getFormater, getGroup, getGroupFields, getGroups, isEmpty, resetChannels, setDiscardRemovedChannels, setFilter, statusChanged, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitedit, getNameinstall, setName, uninstallgetCategory, getPath, restorepublic static final String CREATOR_PATH
@Create(category="MonitorView", name="Group Combo", path="Built-In/Grouped/Combo", description="Monitoring data view that divides channels into groups, and displays one group at a time. Combo boxes are used to select the group to display, and tree views are used for each group.") public ComboGroupView(@Par(def="1",desc="Depth of group hierarchy (number of combo boxes, maximum 6). If 0, the display path is expected in \"group/.../name//rest/of/.../path\" format, and the depth is determined by the number of slash-separated segments in \"group/.../name\". If positive N, the fist N segments of the display path ware used as a group name.") int depth, @Par(def="_null_",desc="List of labels for combo boxes. If not specified, no labels are used.") List<String> labels)
public JComponent getPanel()
MonitorViewprotected void selectGroup(String group)
GroupView"", the default group is selected.
On exit from this method currentGroup is set and selectionHistory is updated.selectGroup in class GroupViewgroup - Group or prefix that specifies a group of groups.protected void groupsAdded(List<String> groups)
groupsAdded in class GroupViewprotected void groupsRemoved(List<String> groups)
groupsRemoved in class GroupViewprotected void groupSelected()
groupSelected in class GroupViewpublic ComboGroupView.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.getDescriptor in interface PersistablegetDescriptor in class GroupViewCopyright © 2023 LSST. All rights reserved.