public class GPDualAbsoluteDate extends fr.cnes.genius.lowLevel.GContainer implements fr.cnes.genius.main.GCondensedStatusInterface, GPPatrius<fr.cnes.sirius.patrius.time.AbsoluteDate>, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GClear
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0 , split 2" 0, 1 => "wmin 68" |
1 | GChoice | typeDateChoice | 1, 0, 0 =>
"newline , gapleft 20 , split 2" 1, 0, 1 => (null) 1, 1 => "split" |
2 | GPAbsoluteDate | referenceAbsoluteDate | "newline" (see table below) |
3 | GPAbsoluteDate | externalAbsoluteDate | "newline" (see table below) |
Index | Class | Item | Constraint |
2, 0 | GLabelWithIndicator | label | 2, 0, 0 =>
"newline , gapleft 20 , split 2" 2, 0, 1 => (null) |
2, 1 | GPDateField | dateField | (null) |
2, 2 | GPopupListWithLabel | popupListTimeScales | 2, 2, 0, 0 => "split 4" 2, 2, 0, 1 => (null) 2, 2, 1 => (null) |
2, 3 | GButton | buttonRelativeDate | (null) |
Index | Class | Item | Constraint |
3, 0 | GLabelWithIndicator | label | 3, 0, 0 =>
"newline , gapleft 20 , split 2" 3, 0, 1 => (null) |
3, 1 | GPDateField | dateField | (null) |
3, 2 | GPopupListWithLabel | popupListTimeScales | 3, 2, 0, 0 => "split 4" 3, 2, 0, 1 => (null) 3, 2, 1 => (null) |
3, 3 | GButton | buttonRelativeDate | (null) |
Constructor and Description |
---|
GPDualAbsoluteDate(String label)
Constructor without geodetic point.
|
GPDualAbsoluteDate(String label,
fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
Constructor just with externalDate.
|
GPDualAbsoluteDate(String label,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
Constructor just with externalDate.
|
GPDualAbsoluteDate(String widgetId,
String label)
Constructor just with widgetId.
|
GPDualAbsoluteDate(String widgetId,
String label,
fr.cnes.sirius.patrius.time.AbsoluteDate externalDate) |
GPDualAbsoluteDate(String widgetId,
String label,
fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate,
fr.cnes.sirius.patrius.time.AbsoluteDate externalDate) |
Modifier and Type | Method and Description |
---|---|
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.highLevel.GChoice |
getGChoiceDateType()
Get Type Date Choice.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Get Reference Date Label.
|
GPAbsoluteDate |
getGPAbsoluteDateExternal()
Get External date.
|
GPAbsoluteDate |
getGPAbsoluteDateReference()
Get Reference date.
|
fr.cnes.sirius.patrius.time.AbsoluteDate |
getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
fr.cnes.sirius.patrius.time.TimeScale |
getTimeScale()
Get Reference Time Scale.
|
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget.
|
void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
void |
setDefaultExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
Setter for the default external date and the "external" mode by default.
|
void |
setDefaultRefDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
Setter for the default reference date and the "custom" mode by default.
|
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.
|
void |
setEnabled(boolean b)
Enable/Disable reference date.
|
void |
setExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
Method to set the external date and the "external" mode.
|
void |
setRefDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
Method to set the reference date and the "custom" mode.
|
void |
setSavedExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
Setter for the saved reference date and the "external" mode as saved.
|
void |
setSavedRefDate(fr.cnes.sirius.patrius.time.AbsoluteDate date)
Setter for the saved reference date and the "custom" mode as saved.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
updateExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
Method to update the external date (also its saved and default value).
|
protected void |
updateIsModifiedIndicator() |
void |
updateStatus()
Update the status of the widget.
|
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, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setForcedStatus, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem
public GPDualAbsoluteDate(String label)
label
- text to display in the label.public GPDualAbsoluteDate(String widgetId, String label)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.public GPDualAbsoluteDate(String label, fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
label
- text to display in the label.externalDate
- date to be initially set as reference date.public GPDualAbsoluteDate(String label, fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate, fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
label
- text to display in the label.referenceDate
- date to show.externalDate
- date to be initially set as reference date.public GPDualAbsoluteDate(String widgetId, String label, fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.externalDate
- date to be initially set as reference date.public GPDualAbsoluteDate(String widgetId, String label, fr.cnes.sirius.patrius.time.AbsoluteDate referenceDate, fr.cnes.sirius.patrius.time.AbsoluteDate externalDate)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.referenceDate
- date to show.externalDate
- date to be initially set as reference date.public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public void setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.main.GComponent
public void setConstraint(int widgetGap)
widgetGap
- left gap from panel border to display the label of the widget.public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GChoice getGChoiceDateType()
public GPAbsoluteDate getGPAbsoluteDateReference()
public GPAbsoluteDate getGPAbsoluteDateExternal()
public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
public fr.cnes.sirius.patrius.time.AbsoluteDate getPatriusObject()
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.time.AbsoluteDate>
public fr.cnes.sirius.patrius.time.TimeScale getTimeScale()
public void setRefDate(fr.cnes.sirius.patrius.time.AbsoluteDate date) throws fr.cnes.genius.exception.GArithmeticException
date
- date to be set.fr.cnes.genius.exception.GArithmeticException
- if date contains NaNs.public void setDefaultRefDate(fr.cnes.sirius.patrius.time.AbsoluteDate date) throws fr.cnes.genius.exception.GArithmeticException
date
- the default date to set.fr.cnes.genius.exception.GArithmeticException
- if date contains NaNs.public void setSavedRefDate(fr.cnes.sirius.patrius.time.AbsoluteDate date) throws fr.cnes.genius.exception.GArithmeticException
date
- the saved date to set.fr.cnes.genius.exception.GArithmeticException
- if date contains NaNs.public void setExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate) throws fr.cnes.genius.exception.GArithmeticException
externalDate
- date to be set.fr.cnes.genius.exception.GArithmeticException
- if date contains NaNs.public void setDefaultExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate date) throws fr.cnes.genius.exception.GArithmeticException
date
- the default date to set.fr.cnes.genius.exception.GArithmeticException
- if date contains NaNs.public void setSavedExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate date) throws fr.cnes.genius.exception.GArithmeticException
date
- the saved date to set.fr.cnes.genius.exception.GArithmeticException
- if date contains NaNs.public void updateExternalDate(fr.cnes.sirius.patrius.time.AbsoluteDate externalDate) throws fr.cnes.genius.exception.GArithmeticException
externalDate
- date to be set.fr.cnes.genius.exception.GArithmeticException
- if date contains NaNs.public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
public void setEnabled(boolean b)
setEnabled
in class fr.cnes.genius.main.GComponent
b
- boolean to enable/disable reference date.public void updateStatus()
protected void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class fr.cnes.genius.main.GComponent
public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
public void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GContainer
fr.cnes.genius.exception.GException
public void display() throws fr.cnes.genius.exception.GException
display
in interface fr.cnes.genius.main.GDisplay
fr.cnes.genius.exception.GException
public void read() throws fr.cnes.genius.exception.GException
read
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void write() throws fr.cnes.genius.exception.GException
write
in interface fr.cnes.genius.main.GReadWrite
fr.cnes.genius.exception.GException
public void clear() throws fr.cnes.genius.exception.GException
clear
in interface fr.cnes.genius.main.GClear
fr.cnes.genius.exception.GException
public void before(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
before
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
public void after(fr.cnes.genius.main.GEvent e) throws fr.cnes.genius.exception.GException
after
in interface fr.cnes.genius.main.GListener
fr.cnes.genius.exception.GException
public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
displayIndicatorStatus
- if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is never shown, if Automatic the modifiedStatusIndicator is shown as needed.public fr.cnes.genius.main.GComponent getSubComponent(int position) throws fr.cnes.genius.exception.GComponentException
getSubComponent
in class fr.cnes.genius.main.GComponent
fr.cnes.genius.exception.GComponentException
Copyright © 2018. All rights reserved.