|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.cnes.genius.main.GComponent
fr.cnes.genius.lowLevel.GTextField
fr.cnes.genopus.time.GPDateField
public class GPDateField
Field representing a date. This widget represents a date in different formats-origins and in any given time
scales. Allowed formats-origins:
- Cal: <DD>/<MM>/<YYYY>
<HH>h<MM>m<SS>s[<AAA>ms][<BBB>us][<CCC>ns] or <DD> <MM>
<YYYY> <HH> <MM> <SS>[ <AAA>[ <BBB>[ <CCC>]]]
- jj: ["-"]<Days>[
"."<FractionOfDay>][
"~1950"| "~2000"]
- jj_sec: ["-"]<Days>[ <SecInDay>
"." <SecInDayFraction>][
"~1950"| "~2000"]
, with <FractionOfDay> up to 14 digits and
<SecInDayFraction> up to 9 digits.
<SecInDay> must be lower than 86400.
| Nested Class Summary | |
|---|---|
static class |
GPDateField.GPDateFormat
Date formats. |
| Nested classes/interfaces inherited from class fr.cnes.genius.lowLevel.GTextField |
|---|
fr.cnes.genius.lowLevel.GTextField.GDocumentFieldFilterAbstract |
| Nested classes/interfaces inherited from class fr.cnes.genius.main.GComponent |
|---|
fr.cnes.genius.main.GComponent.CopyPasteOperation, fr.cnes.genius.main.GComponent.DisplayIndicatorStatus, fr.cnes.genius.main.GComponent.ItemType, fr.cnes.genius.main.GComponent.Operation |
| Field Summary |
|---|
| Fields inherited from class fr.cnes.genius.main.GComponent |
|---|
NAME_ATTRIBUTE |
| Constructor Summary | |
|---|---|
GPDateField(org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale)
Constructor. |
|
GPDateField(String widgetId,
org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale)
Constructor. |
|
| Method Summary | |
|---|---|
void |
after(fr.cnes.genius.main.GEvent e)
|
void |
before(fr.cnes.genius.main.GEvent e)
|
static String |
formatDate(org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale,
GPDateField.GPDateFormat dateFormat)
Format an AbsoluteDate in the specified format-origin. |
static String |
formatDateCal(org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale)
Format an AbsoluteDate in calendar format: <DD>/<MM>/<YYYY> <HH>h<MM>m<SS>s[<AAA>ms][<BBB>us][<CCC>ns]. |
static String |
formatDateISO8601(org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale)
Format an AbsoluteDate in ISO-8601 format: <YYYY>-<MM>-<DD>T<HH>:<MM>:<SS.SSSSSSSSS>. |
static String |
formatDateJJ(org.orekit.time.AbsoluteDate date,
org.orekit.time.AbsoluteDate dateOrigin,
org.orekit.time.TimeScale timeScale)
Format an AbsoluteDate in jj format: ["-" ]<Days>["." <FractionOfDay>][ "~1950"| "~2000"] , with <FractionOfDay> up to 14 digits. |
static String |
formatDateJJSec(org.orekit.time.AbsoluteDate date,
org.orekit.time.AbsoluteDate dateOrigin,
org.orekit.time.TimeScale timeScale)
Format an AbsoluteDate in jj_sec format: ["-" ]<Days>[ <SecInDay> "." <SecInDayFraction>][ "~1950"| "~2000"] , with <SecInDayFraction> up to 9 digits and <SecInDay> lower than 86400. |
org.orekit.time.AbsoluteDate |
getDate()
Date getter. |
GPDateField.GPDateFormat |
getFormat()
Date format-origin getter. |
org.orekit.time.TimeScale |
getScale()
Time scale getter. |
static org.orekit.time.AbsoluteDate |
parseDateCal(String stringDate,
org.orekit.time.TimeScale timeScale)
Parse a given date string in calendar format as an AbsoluteDate. |
static org.orekit.time.AbsoluteDate |
parseDateISO8601(String stringDate,
org.orekit.time.TimeScale timeScale)
Parse a given date string in ISO-8601 format as an AbsoluteDate. |
org.orekit.time.AbsoluteDate |
parseDateJJ(String stringDate,
org.orekit.time.TimeScale timeScale)
Parse a given date string in jj format as an AbsoluteDate. |
org.orekit.time.AbsoluteDate |
parseDateJJSec(String stringDate,
org.orekit.time.TimeScale timeScale)
Parse a given date string in jj_sec format as an AbsoluteDate. |
org.orekit.time.AbsoluteDate |
parseDateString(String stringDate,
org.orekit.time.TimeScale timeScale)
Parse a given date string as an AbsoluteDate. |
void |
setDate(org.orekit.time.AbsoluteDate date)
Date setter. |
void |
setEnabled(boolean b)
|
void |
setFormat(GPDateField.GPDateFormat dateFormat)
Date format-origin setter. |
void |
setScale(org.orekit.time.TimeScale timeScale)
Time scale setter. |
void |
setValue(String stringDate)
Set date from string. |
void |
setWidgetId(String widgetId)
|
| Methods inherited from class fr.cnes.genius.lowLevel.GTextField |
|---|
actionPerformed, computeDefaultWidth, display, focusGained, focusLost, getCharWidth, getComponent, getJTextField, getText, keyPressed, keyReleased, keyTyped, setDocumentFilter, setText |
| Methods inherited from class fr.cnes.genius.main.GComponent |
|---|
activateConstraintsByType, attachCopyPasteMenu, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getSubComponent, getWidgetId, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isModified, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, updateIsModifiedIndicator, writeCollection, writeCollection, writeCollection, writeCollection, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem, writeConfigItem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GPDateField(org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale)
date - initial date.timeScale - time scale in which the date is defined.
public GPDateField(String widgetId,
org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale)
widgetId - widget identifier.date - initial date.timeScale - time scale in which the date is defined.| Method Detail |
|---|
public void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic org.orekit.time.AbsoluteDate getDate()
public void setDate(org.orekit.time.AbsoluteDate date)
date - date to set in the DateField
public void setValue(String stringDate)
throws GPDateException
stringDate - date to set in the DateField
GPDateException - if string is in bad format.public org.orekit.time.TimeScale getScale()
public void setScale(org.orekit.time.TimeScale timeScale)
timeScale - time scale in which to show the date in the DateFieldpublic void setFormat(GPDateField.GPDateFormat dateFormat)
dateFormat - format (and origin) in which the date will be shown in the DateFieldpublic GPDateField.GPDateFormat getFormat()
public static String formatDate(org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale,
GPDateField.GPDateFormat dateFormat)
date - date to formattimeScale - date time scaledateFormat - date format-origin
public static String formatDateCal(org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale)
date - date to formattimeScale - date time scale
public static String formatDateISO8601(org.orekit.time.AbsoluteDate date,
org.orekit.time.TimeScale timeScale)
date - date to formattimeScale - date time scale
public static String formatDateJJ(org.orekit.time.AbsoluteDate date,
org.orekit.time.AbsoluteDate dateOrigin,
org.orekit.time.TimeScale timeScale)
date - date to formatdateOrigin - origin of datetimeScale - date time scale
public static String formatDateJJSec(org.orekit.time.AbsoluteDate date,
org.orekit.time.AbsoluteDate dateOrigin,
org.orekit.time.TimeScale timeScale)
date - date to formatdateOrigin - origin of datetimeScale - date time scale
public org.orekit.time.AbsoluteDate parseDateString(String stringDate,
org.orekit.time.TimeScale timeScale)
throws GPDateException
stringDate - date string to parse in calendar, jj or jj_sec (1950 or 2000) formattimeScale - time scale
GPDateException - if calendar date or reference epoch does not exist
public static org.orekit.time.AbsoluteDate parseDateCal(String stringDate,
org.orekit.time.TimeScale timeScale)
throws GPDateException
stringDate - date string in calendar format to parsetimeScale - time scale
GPDateException - if calendar date does not exist
public static org.orekit.time.AbsoluteDate parseDateISO8601(String stringDate,
org.orekit.time.TimeScale timeScale)
throws GPDateException
stringDate - date string in calendar format to parsetimeScale - time scale
GPDateException - if formatted date does not exist
public org.orekit.time.AbsoluteDate parseDateJJ(String stringDate,
org.orekit.time.TimeScale timeScale)
throws GPDateException
stringDate - date string in jj format to parsetimeScale - time scale
GPDateException - if reference epoch does not exist
public org.orekit.time.AbsoluteDate parseDateJJSec(String stringDate,
org.orekit.time.TimeScale timeScale)
throws GPDateException
stringDate - date string in jj_sec format to parsetimeScale - time scale
GPDateException - if reference epoch does not existpublic void setEnabled(boolean b)
setEnabled in class fr.cnes.genius.lowLevel.GTextFieldpublic void before(fr.cnes.genius.main.GEvent e)
before in interface fr.cnes.genius.main.GListenerbefore in class fr.cnes.genius.lowLevel.GTextField
public void after(fr.cnes.genius.main.GEvent e)
throws GPDateException
after in interface fr.cnes.genius.main.GListenerafter in class fr.cnes.genius.lowLevel.GTextFieldGPDateException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||