public class GPRecurrentRelativeDateDetector extends GPTriggeredEventDetectorAbstract
ACTION, DETECTOR_ERROR| Constructor and Description |
|---|
GPRecurrentRelativeDateDetector()
Empty constructor.
|
GPRecurrentRelativeDateDetector(String widgetId)
Constructor.
|
GPRecurrentRelativeDateDetector(String label,
CustomRecurrentRelativeDateDetector relativeDateDetector,
fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
Constructor.
|
GPRecurrentRelativeDateDetector(String label,
fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
Constructor without default relative date detector.
|
GPRecurrentRelativeDateDetector(String widgetId,
String label,
CustomRecurrentRelativeDateDetector relativeDateDetector,
fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
Constructor.
|
GPRecurrentRelativeDateDetector(String widgetId,
String label,
fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
Constructor without default relative 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() |
GPDateOffset |
getGPDateOffset()
Getter for the GPDateOffset defining the target relative date of the event detector.
|
CustomEventDetector |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.sirius.patrius.time.AbsoluteDate |
getReferenceDate()
Method to get the reference date for the relative date detector.
|
fr.cnes.sirius.patrius.time.TimeScale |
getReferenceTimeScale()
Method to get the reference time scale.
|
fr.cnes.genius.highLevel.GEntryReal |
getStep()
Getter for the detector time step.
|
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 |
setReferenceDate(fr.cnes.sirius.patrius.time.AbsoluteDate refDate,
fr.cnes.sirius.patrius.time.TimeScale timeScale)
Method to set the reference date for the relative date detector.
|
void |
setSavedEventDetector(CustomEventDetector savedEventDetector)
Setter for the reference event detector.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
buildWrapper, getGEntryIntTriggerAt, getGEntryIntTriggerFrom, getGEntryIntTriggerStep, getGEntryIntTriggerTo, getTriggerFrom, getTriggerStep, getTriggerTo, setAbstractClassDefaultValue, setAbstractClassSavedValue, setAbstractClassValueattachCopyPasteMenu, clear, getAvailableActions, getGCheckBoxExpertConfig, getGComboBoxAction, getGEntryRealMaxCheck, getGEntryRealThreshold, getGLabel, getSelectedAction, initMaxCheckAndThresholdGEntryReals, isEnabled, read, setAvailableActions, setDefaultConstraint, setDisplayExpertConfig, updateIsModifiedIndicator, updateStatus, writeactivateConstraintsByType, 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, writeConfigItempublic GPRecurrentRelativeDateDetector()
public GPRecurrentRelativeDateDetector(String widgetId)
widgetId - widget identifier, if null an identifier will be automatically created.public GPRecurrentRelativeDateDetector(String label, fr.cnes.sirius.patrius.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 GPRecurrentRelativeDateDetector(String widgetId, String label, fr.cnes.sirius.patrius.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 GPRecurrentRelativeDateDetector(String label, CustomRecurrentRelativeDateDetector relativeDateDetector, fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
label - text to display in the label.relativeDateDetector - relative date detector to set.actionsToShow - list of actions to show in the widget. If null or empty all actions will
be available.public GPRecurrentRelativeDateDetector(String widgetId, String label, CustomRecurrentRelativeDateDetector relativeDateDetector, fr.cnes.sirius.patrius.events.EventDetector.Action... actionsToShow)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.relativeDateDetector - relative date detector to set.actionsToShow - list of actions to show in the widget. If null or empty all actions will
be available.public final void setWidgetId(String widgetId)
setWidgetId in class GPTriggeredEventDetectorAbstractpublic GPDateOffset getGPDateOffset()
public fr.cnes.genius.highLevel.GEntryReal getStep()
public void setReferenceDate(fr.cnes.sirius.patrius.time.AbsoluteDate refDate,
fr.cnes.sirius.patrius.time.TimeScale timeScale)
throws fr.cnes.genius.exception.GArithmeticException
refDate - reference datetimeScale - time scale for the relative datefr.cnes.genius.exception.GArithmeticException - if refDate contains NaNs.public fr.cnes.sirius.patrius.time.AbsoluteDate getReferenceDate()
throws GPEventException
GPEventException - if the reference date is undefined.public fr.cnes.sirius.patrius.time.TimeScale getReferenceTimeScale()
throws GPEventException
GPEventException - if the reference time scale is undefined.public CustomEventDetector getPatriusObject() throws GPEventException
getPatriusObject in interface GPPatrius<CustomEventDetector>getPatriusObject in class GPEventDetectorAbstractGPEventException - if reference date or the reference time scale are undefined.public final void setEventDetector(CustomEventDetector eventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setEventDetector in class GPEventDetectorAbstracteventDetector - event detector to set.fr.cnes.genius.exception.GArithmeticException - if relative date in eventDetector is NaN.GPEventException - if the given event detector is not compatible with the widget.public final void setDefaultEventDetector(CustomEventDetector defaultEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setDefaultEventDetector in class GPEventDetectorAbstractdefaultEventDetector - default event detector to set.fr.cnes.genius.exception.GArithmeticException - if relative date in defaultEventDetector is NaN.GPEventException - if the given event detector is not compatible with the widget.public final void setSavedEventDetector(CustomEventDetector savedEventDetector) throws GPEventException, fr.cnes.genius.exception.GArithmeticException
setSavedEventDetector in class GPEventDetectorAbstractsavedEventDetector - reference event detector to set.fr.cnes.genius.exception.GArithmeticException - if relative date in savedEventDetector is NaN.GPEventException - if the given event detector is not compatible with the widget.public void setConstraint(int labelGap,
int subWidgetGap)
setConstraint in class GPTriggeredEventDetectorAbstractlabelGap - 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 GPTriggeredEventDetectorAbstractdisplayIndicatorStatus - 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 GPEventDetectorAbstracteventDetector - the event detector to be checked.public void setEnabled(boolean b)
setEnabled in class GPTriggeredEventDetectorAbstractpublic boolean isModified()
isModified in class GPTriggeredEventDetectorAbstractpublic void generic()
throws fr.cnes.genius.exception.GException
generic in class GPTriggeredEventDetectorAbstractfr.cnes.genius.exception.GExceptionpublic void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplaydisplay in class GPTriggeredEventDetectorAbstractfr.cnes.genius.exception.GExceptionpublic 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.GListenerafter in class GPTriggeredEventDetectorAbstractGPEventExceptionprotected GPItemType getXMLTag()
getXMLTag in class GPEventDetectorAbstractpublic fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class GPTriggeredEventDetectorAbstractfr.cnes.genius.exception.GComponentExceptionpublic void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterfaceupdateCondensedStatus in class GPTriggeredEventDetectorAbstractCopyright © 2025. All rights reserved.