public class FilteringRulesTable extends AbstractTableModel
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_COL
Table column indices
|
static int |
ALERT_COL |
static int |
EVENT_MESSAGE_COL |
static int |
EVENT_TYPE_COL |
static int |
RULE_NAME_COL |
static int |
SEVERITY_COL |
static int |
SHOW_COL |
static int |
SOURCE_COL |
listenerList| Constructor and Description |
|---|
FilteringRulesTable()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addRule(FilteringRule rule,
int index)
Add rule into the list of rules.
|
void |
doNotifyAllObservers()
Notify all observers
|
AlertType |
getAlertType(org.yamcs.protobuf.Yamcs.Event event) |
Class |
getColumnClass(int col) |
int |
getColumnCount() |
String |
getColumnName(int col) |
FilteringRule |
getFilteringRule(int index)
Access to filtering rule on the specified index.
|
Vector<String> |
getNames()
Obtain names of all filtering rules.
|
int |
getRowCount() |
FilteringRule |
getRule(int index)
Access to rule on the specified index.
|
Vector<FilteringRule> |
getRules()
Access to the raw filtering table.
|
int |
getSize()
Number of rules in the table.
|
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isEventVisible(org.yamcs.protobuf.Yamcs.Event event)
Query about the event visibility
|
void |
registerObserver(Observer observer)
Add observers.
|
void |
removeRule(int index)
Remove rule on the index.
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
void |
switchRuleActivation(int index,
boolean active)
Switch active status of the rule
|
void |
switchRules(int xpos,
int ypos)
Switch rules on the specified positions.
|
void |
writeFilteringRules()
Store all filtering rules to storage.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListenerpublic static final int ACTIVE_COL
public static final int RULE_NAME_COL
public static final int SOURCE_COL
public static final int EVENT_TYPE_COL
public static final int EVENT_MESSAGE_COL
public static final int SEVERITY_COL
public static final int ALERT_COL
public static final int SHOW_COL
public void registerObserver(Observer observer)
observer - Observer to be added.public void doNotifyAllObservers()
public void addRule(FilteringRule rule, int index)
rule - Rule to be addedpublic FilteringRule getRule(int index)
index - Index of the rulepublic void switchRuleActivation(int index,
boolean active)
index - Index of the ruleactive - Status to be set.public int getSize()
public void removeRule(int index)
index - Index of the rule to be removedpublic Vector<FilteringRule> getRules()
public void switchRules(int xpos,
int ypos)
xpos - Position of the first ruleypos - Position of the second rulepublic Vector<String> getNames()
public FilteringRule getFilteringRule(int index)
index - Index of the rulepublic boolean isEventVisible(org.yamcs.protobuf.Yamcs.Event event)
event - Event to be queriedpublic void writeFilteringRules()
public AlertType getAlertType(org.yamcs.protobuf.Yamcs.Event event)
event - public String getColumnName(int col)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic Class getColumnClass(int col)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic int getRowCount()
public int getColumnCount()
public Object getValueAt(int rowIndex, int columnIndex)
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelCopyright © 2018 Space Applications Services. All rights reserved.