fr.cnes.genopus.attitudes
Class GPAttitudeSequence.GPAttitudeSequenceSwitch

java.lang.Object
  extended by fr.cnes.genius.main.GComponent
      extended by fr.cnes.genius.lowLevel.GPanel
          extended by fr.cnes.genopus.attitudes.GPAttitudeSequence.GPAttitudeSequenceSwitch
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, Cloneable
Enclosing class:
GPAttitudeSequence

public static class GPAttitudeSequence.GPAttitudeSequenceSwitch
extends fr.cnes.genius.lowLevel.GPanel
implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GClear, Cloneable, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GCondensedStatusInterface

Widget for attitude sequence switches with an attitude law before and after a given event chosen by an event selector.

Author:
ffsm

Nested Class Summary
 
Nested classes/interfaces inherited from class fr.cnes.genius.lowLevel.GPanel
fr.cnes.genius.lowLevel.GPanel.Panel, fr.cnes.genius.lowLevel.GPanel.ScrollBarVisibility
 
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
GPAttitudeSequence.GPAttitudeSequenceSwitch()
          Creates a new instance.
 
Method Summary
 void after(fr.cnes.genius.main.GEvent e)
          
 void before(fr.cnes.genius.main.GEvent e)
          
 void clear()
          
 Object clone()
          
 void display()
          
 void generic()
          
 CustomEventDetector getEventDetector()
          Get event detector for the switching condition.
 GPEventSelector getGPEventSelector()
          Getter for the GPEventSelector subwidget.
 fr.cnes.genius.highLevel.GComboBoxWithLabel getLawAfter()
          Get law after.
 int getLawAfterNum()
          Get law after index.
 String getLawAfterSelectedName()
          Get law after name.
 fr.cnes.genius.highLevel.GComboBoxWithLabel getLawBefore()
          Get law before.
 int getLawBeforeNum()
          Get law before index.
 String getLawBeforeSelectedName()
          Get law before name.
 fr.cnes.genius.main.GComponent getSubComponent(int position)
          
 void read()
          
 void setLawAfter(fr.cnes.genius.highLevel.GComboBoxWithLabel lawAfter)
          Set law after.
 void setLawBefore(fr.cnes.genius.highLevel.GComboBoxWithLabel lawBefore)
          Set law before.
 void setWidgetId(String widgetId)
          
 void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
          
protected  void updateStatus()
          Update the global status of the widget following the status of its components.
 void write()
          
 
Methods inherited from class fr.cnes.genius.lowLevel.GPanel
getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, put, setClassConstraint, setColumnConstraints, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setPreferredSize, setRowConstraints, setVerticalScroll
 
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, getWidgetId, handleCopyPasteEvent, handleProcessEventException, isCopyPasteEvent, isEnabled, isModified, launchInvalidPositionException, parseSimpleConstraint, processGEvent, setBusyCursor, setCommentInConfigFile, setConstraint, setCopyPasteMenuEnabled, setCurrentOperation, setDataForConstraintsByType, setDisplayIsModifiedIndicator, setElement, setEnabled, 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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GPAttitudeSequence.GPAttitudeSequenceSwitch

public GPAttitudeSequence.GPAttitudeSequenceSwitch()
Creates a new instance.

Method Detail

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

setWidgetId

public void setWidgetId(String widgetId)

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

generic

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

Specified by:
generic in class fr.cnes.genius.lowLevel.GPanel
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

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

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

getLawBefore

public fr.cnes.genius.highLevel.GComboBoxWithLabel getLawBefore()
Get law before.

Returns:
the law before

setLawBefore

public void setLawBefore(fr.cnes.genius.highLevel.GComboBoxWithLabel lawBefore)
Set law before.

Parameters:
lawBefore - the law before

getLawAfter

public fr.cnes.genius.highLevel.GComboBoxWithLabel getLawAfter()
Get law after.

Returns:
the law after

setLawAfter

public void setLawAfter(fr.cnes.genius.highLevel.GComboBoxWithLabel lawAfter)
Set law after.

Parameters:
lawAfter - the law after

getLawBeforeSelectedName

public String getLawBeforeSelectedName()
Get law before name.

Returns:
the law before name

getLawAfterSelectedName

public String getLawAfterSelectedName()
Get law after name.

Returns:
the law after name

getLawBeforeNum

public int getLawBeforeNum()
Get law before index.

Returns:
the law before index

getLawAfterNum

public int getLawAfterNum()
Get law after index.

Returns:
the law after index

getGPEventSelector

public GPEventSelector getGPEventSelector()
Getter for the GPEventSelector subwidget.

Returns:
the GPEventSelector subwidget

getEventDetector

public CustomEventDetector getEventDetector()
                                     throws GPAttitudeException
Get event detector for the switching condition.

Returns:
the event detector for the switching condition
Throws:
GPAttitudeException - if the event detector cannot be retrieved.

clone

public Object clone()
             throws CloneNotSupportedException

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

updateStatus

protected void updateStatus()
Update the global status of the widget following the status of its components.


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

updateCondensedStatus

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

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


Copyright © 2017. All rights reserved.