public class GPDateDetector extends GPEventDetectorAbstract
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
1 | GComboBoxWithLabel | comboBoxAction | 1, 0, 0 =>
"newline , gapleft 30 , split 2" 1, 0, 1 => (null) 1, 1 => (null) |
2 | GCheckBox | checkBoxExpertConfig | "newline , gapleft 30 , split 2" |
3 | GEntryReal | entryRealMaxCheck | 3, 0, 0 => "newline , gapleft 30 , split 2" 3, 0, 1 => (null) 3, 1 => "split 2" 3, 2 => (null) |
4 | GEntryReal | entryRealThreshold | 4, 0, 0 =>
"newline , gapleft 30 , split 2" 4, 0, 1 => (null) 4, 1 => "split 2" 4, 2 => (null) |
5 | GPAbsoluteDate | date | "newline" (see table below) |
Index | Class | Item | Constraint |
5, 0 | GLabelWithIndicator | label | 5, 0, 0 =>
"newline , gapleft 30 , split 2" 5, 0, 1 => (null) |
5, 1 | GPDateField | dateField | (null) |
5, 2 | GPopupListWithLabel | popupListTimeScales | 5, 2, 0, 0 => "split 4" 5, 2, 0, 1 => (null) 5, 2, 1 => (null) |
5, 3 | GButton | buttonRelativeDate | (null) |
ACTION, DETECTOR_ERROR
Constructor and Description |
---|
GPDateDetector()
Empty constructor.
|
GPDateDetector(String widgetId)
Constructor.
|
GPDateDetector(String label,
CustomDateDetector dateDetector,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor.
|
GPDateDetector(String label,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor without default date detector.
|
GPDateDetector(String widgetId,
String label,
CustomDateDetector dateDetector,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor.
|
GPDateDetector(String widgetId,
String label,
fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
Constructor without default date detector.
|
Modifier and Type | Method and Description |
---|---|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
before(fr.cnes.genius.main.GEvent e) |
void |
display() |
void |
generic() |
GPAbsoluteDate |
getGPAbsoluteDate()
Getter for the GPAbsoluteDate defining the target date of the event detector.
|
CustomDateDetector |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
protected GPItemType |
getXMLTag()
Getter for the tag to be used int the XML configuration file.
|
boolean |
isModified() |
boolean |
isNativeEventDetector(CustomEventDetector eventDetector)
Check if a given event detector is defined in the native type of event detector of the widget.
|
void |
setConstraint(int labelGap,
int subWidgetGap)
Setter for the constraints of the Event Detector widget.
|
void |
setDefaultEventDetector(CustomEventDetector defaultEventDetector)
Setter for the default event detector.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean b) |
void |
setEventDetector(CustomEventDetector eventDetector)
Setter for the event detector.
|
void |
setSavedEventDetector(CustomEventDetector savedEventDetector)
Setter for the reference event detector.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
attachCopyPasteMenu, clear, getAvailableActions, getGCheckBoxExpertConfig, getGComboBoxAction, getGEntryRealMaxCheck, getGEntryRealThreshold, getGLabel, getSelectedAction, initMaxCheckAndThresholdGEntryReals, isEnabled, read, setAbstractClassDefaultValue, setAbstractClassSavedValue, setAbstractClassValue, setAvailableActions, setDefaultConstraint, setDisplayExpertConfig, updateIsModifiedIndicator, updateStatus, write
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getPathInConfigFile, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isForcedStatus, launchInvalidPositionException, mouseWheelMoved, parseSimpleConstraint, processGEvent, processMouseWheelEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDefaultConstraints, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setName, setNameAndCommentInConfigFile, setNameInConfigFile, setPathInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, setWindowBusyCursor, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPDateDetector()
public GPDateDetector(String widgetId)
widgetId
- widget identifier, if null an identifier will be automatically created.public GPDateDetector(String label, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
label
- text to display in the label.actionsToShow
- list of actions to show in the widget. If null or empty all actions will be available.public GPDateDetector(String widgetId, String label, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.actionsToShow
- list of actions to show in the widget. If null or empty all actions will be available.public GPDateDetector(String label, CustomDateDetector dateDetector, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
label
- text to display in the label.dateDetector
- date detector to set.actionsToShow
- list of actions to show in the widget. If null or empty all actions will be available.public GPDateDetector(String widgetId, String label, CustomDateDetector dateDetector, fr.cnes.sirius.patrius.propagation.events.EventDetector.Action... actionsToShow)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.dateDetector
- date detector to set.actionsToShow
- list of actions to show in the widget. If null or empty all actions will be available.public void setWidgetId(String widgetId)
GPEventDetectorAbstract
setWidgetId
in class GPEventDetectorAbstract
public GPAbsoluteDate getGPAbsoluteDate()
public CustomDateDetector getPatriusObject()
getPatriusObject
in interface GPPatrius<CustomEventDetector>
getPatriusObject
in class GPEventDetectorAbstract
public void setEventDetector(CustomEventDetector eventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setEventDetector
in class GPEventDetectorAbstract
eventDetector
- event detector to set.fr.cnes.genius.exception.GArithmeticException
- if the target date in eventDetector contains NaN.GPEventException
- if the given event detector is not compatible with the widget.public void setDefaultEventDetector(CustomEventDetector defaultEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setDefaultEventDetector
in class GPEventDetectorAbstract
defaultEventDetector
- default event detector to set.fr.cnes.genius.exception.GArithmeticException
- if the target date in defaultEventDetector contains NaN.GPEventException
- if the given event detector is not compatible with the widget.public void setSavedEventDetector(CustomEventDetector savedEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setSavedEventDetector
in class GPEventDetectorAbstract
savedEventDetector
- reference event detector to set.fr.cnes.genius.exception.GArithmeticException
- if the target date in savedEventDetector contains NaN.GPEventException
- if the given event detector is not compatible with the widget.public void setConstraint(int labelGap, int subWidgetGap)
setConstraint
in class GPEventDetectorAbstract
labelGap
- left gap from panel border to display the label of the event.subWidgetGap
- left gap from panel border to display the sub-widgets of the event.public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
setDisplayIsModifiedIndicatorAll
in class GPEventDetectorAbstract
displayIndicatorStatus
- if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is always shown, if Automatic the modifiedStatusIndicator is shown as needed.public boolean isNativeEventDetector(CustomEventDetector eventDetector)
isNativeEventDetector
in class GPEventDetectorAbstract
eventDetector
- the event detector to be checked.public void setEnabled(boolean b)
setEnabled
in class GPEventDetectorAbstract
public boolean isModified()
isModified
in class GPEventDetectorAbstract
public void generic() throws fr.cnes.genius.exception.GException
generic
in class GPEventDetectorAbstract
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
display
in class GPEventDetectorAbstract
fr.cnes.genius.exception.GException
public void before(fr.cnes.genius.main.GEvent e)
public void after(fr.cnes.genius.main.GEvent e) throws GPEventException
after
in interface fr.cnes.genius.main.GListener
after
in class GPEventDetectorAbstract
GPEventException
protected GPItemType getXMLTag()
getXMLTag
in class GPEventDetectorAbstract
public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class GPEventDetectorAbstract
fr.cnes.genius.exception.GComponentException
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
updateCondensedStatus
in class GPEventDetectorAbstract
Copyright © 2023. All rights reserved.