public class GPAbsoluteDate extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GClear, GPPatrius<fr.cnes.sirius.patrius.time.AbsoluteDate>
| Index | Class | Item | Constraint |
| 0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => (null) |
| 1 | GPDateField | dateField | (null) |
| 2 | GPopupListWithLabel | popupListTimeScales | 2, 0, 0 => "split 4" 2, 0, 1 => (null) 2, 1 => (null) |
| 3 | GButton | buttonRelativeDate | (null) |
| Modifier and Type | Class and Description |
|---|---|
static class |
GPAbsoluteDate.GPDateTimeScale
Time scales (with the same names used in PATRIUS).
|
| Constructor and Description |
|---|
GPAbsoluteDate()
Empty constructor.
|
GPAbsoluteDate(String label)
Constructor without date.
|
GPAbsoluteDate(String label,
fr.cnes.sirius.patrius.time.AbsoluteDate date)
Constructor.
|
GPAbsoluteDate(String label,
fr.cnes.sirius.patrius.time.AbsoluteDate date,
GPAbsoluteDate.GPDateTimeScale[] timescales)
Constructor.
|
GPAbsoluteDate(String widgetId,
String label)
Constructor without date.
|
GPAbsoluteDate(String widgetId,
String label,
fr.cnes.sirius.patrius.time.AbsoluteDate date)
Constructor.
|
GPAbsoluteDate(String widgetId,
String label,
fr.cnes.sirius.patrius.time.AbsoluteDate date,
GPAbsoluteDate.GPDateTimeScale[] timescales)
Constructor without date.
|
GPAbsoluteDate(String widgetId,
String label,
GPAbsoluteDate.GPDateTimeScale[] timescales)
Constructor without date.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInterval(GPDateInterval interval)
Adds a validity interval for the date.
|
void |
after(fr.cnes.genius.main.GEvent e) |
void |
attachCopyPasteMenu(String label,
fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList) |
void |
before(fr.cnes.genius.main.GEvent e) |
void |
clear() |
void |
display() |
void |
generic() |
fr.cnes.genius.lowLevel.GButton |
getGButton()
Getter for the GButton used to open the dialog defining a relative date.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the label of the GPAbsoluteDate widget.
|
GPDateField |
getGPDateField()
Getter for the GPDateField defining the date string.
|
fr.cnes.genius.lowLevel.GTime |
getGPDateOffset()
Getter for the GTime used to define the relative date.
|
fr.cnes.genius.highLevel.GPopupListWithLabel |
getGPopupList()
Getter for the GPopupList defining the time scale.
|
fr.cnes.genius.lowLevel.GStandardDialog |
getGStandardDialog()
Getter for the GStandardDialog used to define the relative date.
|
fr.cnes.sirius.patrius.time.AbsoluteDate |
getPatriusObject()
Getter for the date.
|
static fr.cnes.sirius.patrius.time.TimeScale |
getPatriusTimeScale(GPAbsoluteDate.GPDateTimeScale dateTimeScale)
Getter for the Orekit TimeScale associated to a Genopus DateTimeScale.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
boolean |
isDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
Check whether a given date is equal to the one defined in the widget.
|
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
void |
removeInterval(GPDateInterval interval)
Removes a validity interval for the date.
|
void |
setConstraint(int labelGap)
Setter for the constraints of the widget.
|
void |
setDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
Setter for the date.
|
void |
setDefaultDate(fr.cnes.sirius.patrius.time.AbsoluteDate defaultDate)
Setter for the default date.
|
void |
setEnabled(boolean b) |
void |
setSavedDate(fr.cnes.sirius.patrius.time.AbsoluteDate savedDate)
Setter for the saved date.
|
void |
setTimeScale(GPAbsoluteDate.GPDateTimeScale timeScale)
Method to modify the time scale in the widget.
|
void |
setWidgetId(String widgetId) |
protected void |
updateIsModifiedIndicator() |
void |
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, writeConfigItempublic GPAbsoluteDate()
public GPAbsoluteDate(String label)
label - text to display in the label.public GPAbsoluteDate(String label, fr.cnes.sirius.patrius.time.AbsoluteDate date)
label - text to display in the label.date - date to showpublic GPAbsoluteDate(String label, fr.cnes.sirius.patrius.time.AbsoluteDate date, GPAbsoluteDate.GPDateTimeScale[] timescales)
label - text to display in the label.date - date to showtimescales - time scales to displaypublic GPAbsoluteDate(String widgetId, String label)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.public GPAbsoluteDate(String widgetId, String label, GPAbsoluteDate.GPDateTimeScale[] timescales)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.timescales - time scales to displaypublic GPAbsoluteDate(String widgetId, String label, fr.cnes.sirius.patrius.time.AbsoluteDate date)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.date - date to showpublic GPAbsoluteDate(String widgetId, String label, fr.cnes.sirius.patrius.time.AbsoluteDate date, GPAbsoluteDate.GPDateTimeScale[] timescales)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.date - datetimescales - time scales to displaypublic final void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public GPDateField getGPDateField()
public fr.cnes.genius.highLevel.GPopupListWithLabel getGPopupList()
public fr.cnes.genius.lowLevel.GButton getGButton()
public fr.cnes.genius.lowLevel.GTime getGPDateOffset()
public fr.cnes.genius.lowLevel.GStandardDialog getGStandardDialog()
public void setConstraint(int labelGap)
labelGap - left gap from panel border to display the labelpublic fr.cnes.sirius.patrius.time.AbsoluteDate getPatriusObject()
getPatriusObject in interface GPPatrius<fr.cnes.sirius.patrius.time.AbsoluteDate>public void setTimeScale(GPAbsoluteDate.GPDateTimeScale timeScale) throws GPDateException
timeScale - time scale to be set.GPDateException - if Patrius Data Set has not been initialized.public final void setDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
throws fr.cnes.genius.exception.GArithmeticException
date - the date to set.fr.cnes.genius.exception.GArithmeticException - if date contains NaNs.public final void setDefaultDate(fr.cnes.sirius.patrius.time.AbsoluteDate defaultDate)
throws fr.cnes.genius.exception.GArithmeticException
defaultDate - the default date to set.fr.cnes.genius.exception.GArithmeticException - if the defaultDate contains NaNs.public final void setSavedDate(fr.cnes.sirius.patrius.time.AbsoluteDate savedDate)
throws fr.cnes.genius.exception.GArithmeticException
savedDate - the saved date to set.fr.cnes.genius.exception.GArithmeticException - if the savedDate contains NaNs.public static fr.cnes.sirius.patrius.time.TimeScale getPatriusTimeScale(GPAbsoluteDate.GPDateTimeScale dateTimeScale) throws GPDateException
dateTimeScale - the GENOPUS GPDateTimeScaleGPDateException - if UTC-TAI data is not initializedpublic void addInterval(GPDateInterval interval) throws fr.cnes.genius.exception.GIntervalException
interval - to add.fr.cnes.genius.exception.GIntervalException - In case the new interval overlaps with an existing interval in the list.public void removeInterval(GPDateInterval interval)
interval - to be removed.public boolean isDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
throws fr.cnes.genius.exception.GArithmeticException
date - to compare with specified date in the widget.fr.cnes.genius.exception.GArithmeticException - if date contains NaNs.public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu in class fr.cnes.genius.main.GComponentprotected void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentpublic void before(fr.cnes.genius.main.GEvent e)
before in interface fr.cnes.genius.main.GListenerpublic void after(fr.cnes.genius.main.GEvent e)
throws GPDateException
after in interface fr.cnes.genius.main.GListenerGPDateExceptionpublic void generic()
generic in class fr.cnes.genius.lowLevel.GContainerpublic void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GExceptionpublic void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentpublic void setEnabled(boolean b)
setEnabled in class fr.cnes.genius.main.GComponentpublic boolean isModified()
isModified in class fr.cnes.genius.main.GComponentpublic void clear()
clear in interface fr.cnes.genius.main.GClearpublic fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class fr.cnes.genius.main.GComponentfr.cnes.genius.exception.GComponentExceptionCopyright © 2025. All rights reserved.