fr.cnes.genopus.time
Class GPDualAbsoluteDate

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GContainer
          extended by fr.cnes.genopus.time.GPDualAbsoluteDate
All Implemented Interfaces:
fr.cnes.genius.main.GClear, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GReadWrite, GPPatrius<org.orekit.time.AbsoluteDate>

public class GPDualAbsoluteDate
extends fr.cnes.genius.lowLevel.GContainer
implements fr.cnes.genius.main.GCondensedStatusInterface, GPPatrius<org.orekit.time.AbsoluteDate>, fr.cnes.genius.main.GDisplay, fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GClear

Class defining a Dual date widget containing a reference date and an external date.

Author:
mafr
Default Constraint(s):
IndexClassItemConstraint
0GLabelWithIndicatorlabel0, 0 => "newline , gapleft 0 , split 2"
0, 1 => "wmin 68"
1GChoicetypeDateChoice1, 0, 0 => "newline , gapleft 20 , split 2"
1, 0, 1 => (null)
1, 1 => "split"
2GPAbsoluteDatereferenceAbsoluteDate"newline"
(see table below)
3GPAbsoluteDateexternalAbsoluteDate"newline"
(see table below)

Default Constraint(s) for referenceAbsoluteDate:
IndexClassItemConstraint
2, 0GLabelWithIndicatorlabel2, 0, 0 => "newline , gapleft 20 , split 2"
2, 0, 1 => (null)
2, 1GPDateFielddateField(null)
2, 2GPopupListWithLabelpopupListTimeScales2, 2, 0, 0 => "split 4"
2, 2, 0, 1 => (null)
2, 2, 1 => (null)
2, 3GButtonbuttonRelativeDate(null)

Default Constraint(s) for externalAbsoluteDate:
IndexClassItemConstraint
3, 0GLabelWithIndicatorlabel3, 0, 0 => "newline , gapleft 20 , split 2"
3, 0, 1 => (null)
3, 1GPDateFielddateField(null)
3, 2GPopupListWithLabelpopupListTimeScales3, 2, 0, 0 => "split 4"
3, 2, 0, 1 => (null)
3, 2, 1 => (null)
3, 3GButtonbuttonRelativeDate(null)


Nested Class Summary
 
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
GPDualAbsoluteDate(String label)
          Constructor without geodetic point.
GPDualAbsoluteDate(String label, org.orekit.time.AbsoluteDate externalDate)
          Constructor just with externalDate.
GPDualAbsoluteDate(String label, org.orekit.time.AbsoluteDate referenceDate, org.orekit.time.AbsoluteDate externalDate)
          Constructor just with externalDate.
GPDualAbsoluteDate(String widgetId, String label)
          Constructor just with widgetId.
GPDualAbsoluteDate(String widgetId, String label, org.orekit.time.AbsoluteDate externalDate)
           
GPDualAbsoluteDate(String widgetId, String label, org.orekit.time.AbsoluteDate referenceDate, org.orekit.time.AbsoluteDate externalDate)
           
 
Method Summary
 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.
 org.orekit.time.AbsoluteDate getPatriusObject()
          Returns the PATRIUS object associated to a GENOPUS widget.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 org.orekit.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 setDefaultExternalDate(org.orekit.time.AbsoluteDate date)
          Setter for the default external date and the "external" mode by default.
 void setDefaultRefDate(org.orekit.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(org.orekit.time.AbsoluteDate externalDate)
          Method to set the external date and the "external" mode.
 void setRefDate(org.orekit.time.AbsoluteDate date)
          Method to set the reference date and the "custom" mode.
 void setSavedExternalDate(org.orekit.time.AbsoluteDate date)
          Setter for the saved reference date and the "external" mode as saved.
 void setSavedRefDate(org.orekit.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(org.orekit.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()
          
 
Methods inherited from class fr.cnes.genius.lowLevel.GContainer
put
 
Methods inherited from class fr.cnes.genius.main.GComponent
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getComponent, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setGPanel, setGParent, setGUnitInConfigFile, setInnerDescendantConstraint, setNameAndCommentInConfigFile, setNameInConfigFile, setStatus, setStringConstraint, setToolTipText, setWidth, 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

GPDualAbsoluteDate

public GPDualAbsoluteDate(String label)
Constructor without geodetic point. The widgetId will be assigned automatically. The altitude can be defined explicitly.

Parameters:
label - text to display in the label.

GPDualAbsoluteDate

public GPDualAbsoluteDate(String widgetId,
                          String label)
Constructor just with widgetId.

Parameters:
widgetId - widget identifier, if null an identifier will be automatically created.
label - text to display in the label.

GPDualAbsoluteDate

public GPDualAbsoluteDate(String label,
                          org.orekit.time.AbsoluteDate externalDate)
Constructor just with externalDate.

Parameters:
label - text to display in the label.
externalDate - date to be initially set as reference date.

GPDualAbsoluteDate

public GPDualAbsoluteDate(String label,
                          org.orekit.time.AbsoluteDate referenceDate,
                          org.orekit.time.AbsoluteDate externalDate)
Constructor just with externalDate.

Parameters:
label - text to display in the label.
referenceDate - date to show.
externalDate - date to be initially set as reference date.

GPDualAbsoluteDate

public GPDualAbsoluteDate(String widgetId,
                          String label,
                          org.orekit.time.AbsoluteDate externalDate)
Parameters:
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.

GPDualAbsoluteDate

public GPDualAbsoluteDate(String widgetId,
                          String label,
                          org.orekit.time.AbsoluteDate referenceDate,
                          org.orekit.time.AbsoluteDate externalDate)
Parameters:
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.
Method Detail

setWidgetId

public void setWidgetId(String widgetId)

Overrides:
setWidgetId in class fr.cnes.genius.main.GComponent

setConstraint

public void setConstraint(int widgetGap)
Setter for the constraints of the widget.

Parameters:
widgetGap - left gap from panel border to display the label of the widget.

getGLabel

public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
Get Reference Date Label.

Returns:
the Reference Date Label

getGChoiceDateType

public fr.cnes.genius.highLevel.GChoice getGChoiceDateType()
Get Type Date Choice.

Returns:
the Type Date Choice

getGPAbsoluteDateReference

public GPAbsoluteDate getGPAbsoluteDateReference()
Get Reference date.

Returns:
the Reference date

getGPAbsoluteDateExternal

public GPAbsoluteDate getGPAbsoluteDateExternal()
Get External date.

Returns:
the External date

attachCopyPasteMenu

public void attachCopyPasteMenu(String label,
                                fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)

Overrides:
attachCopyPasteMenu in class fr.cnes.genius.main.GComponent

getPatriusObject

public org.orekit.time.AbsoluteDate getPatriusObject()
Returns the PATRIUS object associated to a GENOPUS widget.

Specified by:
getPatriusObject in interface GPPatrius<org.orekit.time.AbsoluteDate>
Returns:
the PATRIUS object associated to the widget.

getTimeScale

public org.orekit.time.TimeScale getTimeScale()
Get Reference Time Scale.

Returns:
the Reference time scale

setRefDate

public void setRefDate(org.orekit.time.AbsoluteDate date)
Method to set the reference date and the "custom" mode.

Parameters:
date - date to be set.

setDefaultRefDate

public void setDefaultRefDate(org.orekit.time.AbsoluteDate date)
Setter for the default reference date and the "custom" mode by default.

Parameters:
date - the default date to set.

setSavedRefDate

public void setSavedRefDate(org.orekit.time.AbsoluteDate date)
Setter for the saved reference date and the "custom" mode as saved.

Parameters:
date - the saved date to set.

setExternalDate

public void setExternalDate(org.orekit.time.AbsoluteDate externalDate)
Method to set the external date and the "external" mode.

Parameters:
externalDate - date to be set.

setDefaultExternalDate

public void setDefaultExternalDate(org.orekit.time.AbsoluteDate date)
Setter for the default external date and the "external" mode by default.

Parameters:
date - the default date to set.

setSavedExternalDate

public void setSavedExternalDate(org.orekit.time.AbsoluteDate date)
Setter for the saved reference date and the "external" mode as saved.

Parameters:
date - the saved date to set.

updateExternalDate

public void updateExternalDate(org.orekit.time.AbsoluteDate externalDate)
Method to update the external date (also its saved and default value).

Parameters:
externalDate - date to be set.

isEnabled

public boolean isEnabled()

Overrides:
isEnabled in class fr.cnes.genius.main.GComponent

setEnabled

public void setEnabled(boolean b)
Enable/Disable reference date.

Overrides:
setEnabled in class fr.cnes.genius.main.GComponent
Parameters:
b - boolean to enable/disable reference date.

updateStatus

public void updateStatus()
Update the status of the widget.


updateIsModifiedIndicator

protected void updateIsModifiedIndicator()

Overrides:
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponent

isModified

public boolean isModified()

Overrides:
isModified in class fr.cnes.genius.main.GComponent

updateCondensedStatus

public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)

Specified by:
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterface

generic

public void generic()
             throws fr.cnes.genius.exception.GException

Specified by:
generic in class fr.cnes.genius.lowLevel.GContainer
Throws:
fr.cnes.genius.exception.GException

display

public void display()
             throws fr.cnes.genius.exception.GException

Specified by:
display in interface fr.cnes.genius.main.GDisplay
Throws:
fr.cnes.genius.exception.GException

read

public void read()
          throws fr.cnes.genius.exception.GException

Specified by:
read in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

write

public void write()
           throws fr.cnes.genius.exception.GException

Specified by:
write in interface fr.cnes.genius.main.GReadWrite
Throws:
fr.cnes.genius.exception.GException

clear

public void clear()
           throws fr.cnes.genius.exception.GException

Specified by:
clear in interface fr.cnes.genius.main.GClear
Throws:
fr.cnes.genius.exception.GException

before

public void before(fr.cnes.genius.main.GEvent e)
            throws fr.cnes.genius.exception.GException

Specified by:
before in interface fr.cnes.genius.main.GListener
Throws:
fr.cnes.genius.exception.GException

after

public void after(fr.cnes.genius.main.GEvent e)
           throws fr.cnes.genius.exception.GException

Specified by:
after in interface fr.cnes.genius.main.GListener
Throws:
fr.cnes.genius.exception.GException

setDisplayIsModifiedIndicatorAll

public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets.

Parameters:
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator is never shown, if Automatic the modifiedStatusIndicator is shown as needed.

getSubComponent

public fr.cnes.genius.main.GComponent getSubComponent(int position)
                                               throws fr.cnes.genius.exception.GComponentException

Overrides:
getSubComponent in class fr.cnes.genius.main.GComponent
Throws:
fr.cnes.genius.exception.GComponentException


Copyright © 2017. All rights reserved.