public class GPFuelTank extends fr.cnes.genius.lowLevel.GPanel implements fr.cnes.genius.main.GReadWrite, fr.cnes.genius.main.GListener, fr.cnes.genius.main.GCondensedStatusInterface, fr.cnes.genius.main.GClear, Cloneable, GPPatrius<fr.cnes.sirius.patrius.assembly.properties.TankProperty>
Index | Class | Item | Constraint |
0 | GLabelWithIndicator | label | 0, 0 => "newline , gapleft 0" 0, 1 => (null) |
1 | GEntryString | entryStringTankName | 1, 0, 0 =>
"newline , gapleft 20" 1, 0, 1 => (null) 1, 1 => (null) |
2 | GEntryReal | entryRealPropMass | 2, 0, 0 =>
"newline , gapleft 20" 2, 0, 1 => (null) 2, 1 => (null) 2, 2 => (null) |
Constructor and Description |
---|
GPFuelTank()
Default constructor
|
GPFuelTank(String label)
Constructor without tank.
|
GPFuelTank(String widgetId,
String label)
Constructor.
|
GPFuelTank(String widgetId,
String label,
String tankName,
fr.cnes.sirius.patrius.assembly.properties.TankProperty tank)
Constructor.
|
GPFuelTank(String label,
String tankName,
fr.cnes.sirius.patrius.assembly.properties.TankProperty tank)
Constructor.
|
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) |
static void |
checkTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty tank)
Checks if the the propellant mass in the input tank is NaN.
|
void |
clear() |
GPFuelTank |
clone() |
void |
display() |
void |
generic() |
static int |
getCount()
Getter for the tanks counter.
|
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealPropellantMass()
Getter for the GEntryReal (m_propellantMass) of the widget.
|
fr.cnes.genius.highLevel.GEntryString |
getGEntryStingTankName()
Getter for the GEntryString (m_tankName) of the widget.
|
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabel()
Getter for the GLabel of the widget.
|
String |
getLabel()
Get tank label
|
fr.cnes.sirius.patrius.assembly.properties.TankProperty |
getPatriusObject()
Get tank.
|
fr.cnes.genius.main.GComponent |
getSubComponent(int position) |
String |
getTankName()
Get tank name.
|
boolean |
isEnabled() |
boolean |
isModified() |
void |
read() |
static void |
setCount(int count)
Getter for the tanks counter.
|
void |
setDefaultConstraints()
Setter for the default constraint of the widget.
|
void |
setDefaultTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty defaultTank)
Setter for the default tank.
|
void |
setEnabled(boolean b) |
void |
setSavedTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty savedTank)
Setter for the reference tank.
|
void |
setTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty tank)
Setter for the tank.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
updateIsModifiedIndicator() |
void |
write() |
clearConstraint, getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getLayoutConstraints, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, put, setClassConstraint, setColumnConstraints, setConstraint, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setMargins, setPanelConstraints, setPreferredSize, setRowConstraints, setVerticalScroll
activateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, clearAllInnerDescendantConstraint, clearInnerDescendantContraint, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, 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, 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 GPFuelTank()
public GPFuelTank(String label)
label
- text to display in the label.public GPFuelTank(String label, String tankName, fr.cnes.sirius.patrius.assembly.properties.TankProperty tank)
label
- text to display in the label.tankName
- name of the tanktank
- default tank to set in the widget.public GPFuelTank(String widgetId, String label)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.public GPFuelTank(String widgetId, String label, String tankName, fr.cnes.sirius.patrius.assembly.properties.TankProperty tank)
widgetId
- widget identifier, if null an identifier will be automatically created.label
- text to display in the label.tankName
- name of the tanktank
- default tank to set in the widget.public static int getCount()
public static void setCount(int count)
count
- the number of already created tanks until now.public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabel()
public fr.cnes.genius.highLevel.GEntryString getGEntryStingTankName()
public fr.cnes.genius.highLevel.GEntryReal getGEntryRealPropellantMass()
public void setTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty tank) throws fr.cnes.genius.exception.GArithmeticException
tank
- tank to set.fr.cnes.genius.exception.GArithmeticException
- if propellant mass in tank is NaN.public void setDefaultTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty defaultTank) throws fr.cnes.genius.exception.GArithmeticException
defaultTank
- default tank to set.fr.cnes.genius.exception.GArithmeticException
- if propellant mass in defaultTank is NaN.public void setSavedTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty savedTank) throws fr.cnes.genius.exception.GArithmeticException
savedTank
- reference tank to set.fr.cnes.genius.exception.GArithmeticException
- if propellant mass in savedTank is NaN.public void attachCopyPasteMenu(String label, fr.cnes.genius.main.GComponent.CopyPasteOperation... operationList)
attachCopyPasteMenu
in class fr.cnes.genius.main.GComponent
public void updateIsModifiedIndicator()
updateIsModifiedIndicator
in class fr.cnes.genius.main.GComponent
public boolean isEnabled()
isEnabled
in class fr.cnes.genius.main.GComponent
public void setEnabled(boolean b)
setEnabled
in class fr.cnes.genius.main.GComponent
public boolean isModified()
isModified
in class fr.cnes.genius.main.GComponent
public void generic() throws fr.cnes.genius.exception.GException
generic
in class fr.cnes.genius.lowLevel.GPanel
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 String getTankName()
public String getLabel()
public fr.cnes.sirius.patrius.assembly.properties.TankProperty getPatriusObject()
getPatriusObject
in interface GPPatrius<fr.cnes.sirius.patrius.assembly.properties.TankProperty>
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
public void setDefaultConstraints()
setDefaultConstraints
in class fr.cnes.genius.lowLevel.GPanel
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 updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus
in interface fr.cnes.genius.main.GCondensedStatusInterface
public void setWidgetId(String widgetId)
setWidgetId
in class fr.cnes.genius.main.GComponent
public GPFuelTank clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public static void checkTank(fr.cnes.sirius.patrius.assembly.properties.TankProperty tank) throws fr.cnes.genius.exception.GArithmeticException
tank
- to be checkedfr.cnes.genius.exception.GArithmeticException
- if the propellant mass in tank is NaN.Copyright © 2018. All rights reserved.