public class GLogEventTablePanel extends GPanel implements GDisplay, GListener
GLogger. Multiple actions can
be linked to the table through the after method or the container class. An example of the table
usage can be found in GLogEventTableTest_0160.java.
This class represents the table to hold the events from the GLogger. Multiple actions can
be linked to the table through the after(GEvent) method or the container class. An
example of the table usage can be found in GLogEventTableTest_0160.java. The class defines a
panel type GPanel including:GLogEventTable to display log file messages,GLogEventTableFilterDialogGLogEventTableAddDialog| Index | Class | Item | Constraint |
| 0 | GCheckBox | lockCheckBox | "split 4 , alignx Left" |
| 1 | GButton | addEventButton | "alignx Left" |
| 2 | GButton | filterEventsButton | "alignx Left" |
| 3 | GButton | clearFilterEventsButton | "alignx Left" |
| 4 | GButton | clearButton | "alignx Right" |
| 5 | GLogEventTable | eventTable | "newline , pushx , pushy , growx , growy" |
| 6 | GLogEventTableAddDialog | addEventDialog | "newline , pushx , pushy , growx , growy" (see table below) |
| 7 | GLogEventTableFilterDialog | filterEventDialog | "newline , pushx , pushy , growx , growy"
(see table below) |
| Index | Class | Item | Constraint |
| 6, 0 | GChoice | criticityChoice | 6, 0, 0, 0 =>
"split 5" 6, 0, 0, 1 => (null) 6, 0, 1 => "split" |
| 6, 1 | GEntryString | sourceEntry | 6, 1, 0, 0 =>
"newline , spanx 2 , split 3" 6, 1, 0, 1 => (null) 6, 1, 1 => "growx" |
| 6, 2 | GLabel | descriptionLabel | "newline" |
| 6, 3 | GTextArea | descriptionText | "newline , pushx , pushy , spanx 2 , growx , growy , hmin 100" |
| 6, 4 | GButton | cancelButton | "newline" |
| 6, 5 | GButton | addButton | (null) |
| Index | Class | Item | Constraint |
| 7, 0 | GMultipleChoice | criticityChoice | "newline" (see table below) |
| 7, 1 | GCheckBox | allCriticities | "newline" |
| 7, 2 | GMultipleChoice | typeChoice | "newline" (see table below) |
| 7, 3 | GCheckBox | allTypes | "newline" |
| 7, 4 | GEntryString | sourceEntry | 7, 4, 0, 0 => "newline , spanx 2 , split 3" 7, 4, 0, 1 => (null) 7, 4, 1 => "growx" |
| 7, 5 | GLabel | descriptionLabel | "newline" |
| 7, 6 | GTextArea | descriptionText | "newline , pushx , pushy , spanx 2 , growx , growy , hmin 100" |
| 7, 7 | GButton | cancelButton | "newline" |
| 7, 8 | GButton | filterButton | (null) |
| Index | Class | Item | Constraint |
| 7, 0, 0 | GLabelWithIndicator | label | 7, 0, 0, 0
=> "split 5" 7, 0, 0, 1 => (null) |
| 7, 0, 1 | GCheckBox | checkBox0 | "split 1" |
| 7, 0, 2 | GCheckBox | checkBox1 | (null) |
| 7, 0, 3 | GCheckBox | checkBox2 | (null) |
| ... | ... | ... | ... |
| 7, 0, i+1 | GCheckBox | checkBoxi | (null) |
| Index | Class | Item | Constraint |
| 7, 2, 0 | GLabelWithIndicator | label | 7, 2, 0, 0 =>
"newline , split 5" 7, 2, 0, 1 => (null) |
| 7, 2, 1 | GCheckBox | checkBox0 | "split 1" |
| 7, 2, 2 | GCheckBox | checkBox1 | (null) |
| 7, 2, 3 | GCheckBox | checkBox2 | (null) |
| ... | ... | ... | ... |
| 7, 2, i+1 | GCheckBox | checkBoxi | (null) |
GPanel.Panel, GPanel.ScrollBarVisibilityGComponent.CopyPasteOperation, GComponent.DisplayIndicatorStatus, GComponent.ItemType, GComponent.OperationNAME_ATTRIBUTE| Constructor and Description |
|---|
GLogEventTablePanel(String widgetId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(fr.cnes.genius.logger.GLogEventTableItem item)
Add a new event item in the Log Event Table.
|
void |
after(GEvent e)
Called after the event is processed.
|
void |
before(GEvent e)
Called before the event is processed.
|
void |
display()
Called when the element is to be displayed, so it can perform the actions required for its display, and
the display of its inmmediate descendants.
|
void |
generic()
Abstract generic function that need to be implemented by the descendants.
|
GComponent |
getSubComponent(int position)
Gets the subcomponent occupying the position defined by position.
|
protected void |
setDefaultConstraints()
set the defaults constraints
|
clearConstraint, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, processMouseWheelEvent, put, setClassConstraint, setColumnConstraints, setConstraint, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setUnitIncrement, setVerticalScroll, unputactivateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isForcedStatus, isModified, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setEnabled, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidgetId, setWidth, setWindowBusyCursor, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItempublic GLogEventTablePanel(String widgetId)
widgetId - widget identifier.protected void setDefaultConstraints()
GPanelsetDefaultConstraints in class GPanelpublic void add(fr.cnes.genius.logger.GLogEventTableItem item)
item - the event item to be added.public void display()
throws GException
display in interface GDisplayGException - in case of problem while reading the value from file.public void generic()
throws GException
generic in class GPanelGException - in case of problem.public void before(GEvent e) throws GException
before in interface GListenere - event to processed.GException - in case there is a problem managing the event.public void after(GEvent e) throws GException
after in interface GListenere - processed event.GException - in case there is a problem managing the event.public GComponent getSubComponent(int position) throws GComponentException
getSubComponent in class GComponentposition - position of the requested component.GComponentException - in case the position argument is invalid.Copyright © 2024. All rights reserved.