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<CustomFuelTank>
| 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()
Constructor without tank and label (convenient for GComponentList).
|
GPFuelTank(CustomFuelTank tank)
Constructor.
|
GPFuelTank(String tankName)
Constructor without tank.
|
GPFuelTank(String label,
CustomFuelTank tank)
Constructor.
|
GPFuelTank(String widgetId,
String tankName)
Constructor.
|
GPFuelTank(String widgetId,
String label,
CustomFuelTank 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(CustomFuelTank 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.
|
CustomFuelTank |
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 |
setDefaultTank(CustomFuelTank defaultTank)
Setter for the default tank.
|
void |
setEnabled(boolean b) |
void |
setSavedTank(CustomFuelTank savedTank)
Setter for the reference tank.
|
void |
setTank(CustomFuelTank tank)
Setter for the tank.
|
void |
setWidgetId(String widgetId) |
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus) |
void |
updateIsModifiedIndicator() |
void |
write() |
getClassConstraint, getComponent, getHorizontalScroll, getInnerDescendantClassConstraint, getJPanel, getJScrollPane, getStringClassConstraint, getVerticalScroll, mainClear, mainDisplay, put, setClassConstraint, setColumnConstraints, setHorizontalScroll, setInnerDescendantClassConstraint, setLayoutConstraints, setPreferredSize, setRowConstraints, setVerticalScrollactivateConstraintsByType, attachCopyPasteMenu, beginOfElement, beginOfElement, beginOfElement, beginOfElement, composeWidgetId, doDisplay, endOfElement, getCommentInConfigFile, getConstraint, getCurrentOperation, getDisplayIndicatorStatus, getDisplayIsModifiedIndicator, getElement, getGClassName, getGPanel, getGParent, getGUnitInConfigFile, getInnerDescendantConstraint, getName, getNameInConfigFile, getOperationSaveValue, getSimpleWidgetId, getStatus, getStringConstraint, getWidgetId, handleCopyPasteEvent, 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, writeConfigItempublic GPFuelTank()
public GPFuelTank(CustomFuelTank tank)
tank - default tank to set in the widget.public GPFuelTank(String tankName)
tankName - text to display in the label.public GPFuelTank(String label, CustomFuelTank tank)
label - text to display in the label.tank - default tank to set in the widget.public GPFuelTank(String widgetId, String tankName)
widgetId - widget identifier, if null an identifier will be automatically created.tankName - text to display in the label.public GPFuelTank(String widgetId, String label, CustomFuelTank tank)
widgetId - widget identifier, if null an identifier will be automatically created.label - text to display in the label.tank - 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(CustomFuelTank 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(CustomFuelTank 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(CustomFuelTank 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.GComponentpublic void updateIsModifiedIndicator()
updateIsModifiedIndicator in class fr.cnes.genius.main.GComponentpublic boolean isEnabled()
isEnabled in class fr.cnes.genius.main.GComponentpublic void setEnabled(boolean b)
setEnabled in class fr.cnes.genius.main.GComponentpublic boolean isModified()
isModified in class fr.cnes.genius.main.GComponentpublic void generic()
throws fr.cnes.genius.exception.GException
generic in class fr.cnes.genius.lowLevel.GPanelfr.cnes.genius.exception.GExceptionpublic void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GExceptionpublic void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GExceptionpublic String getTankName()
public CustomFuelTank getPatriusObject()
getPatriusObject in interface GPPatrius<CustomFuelTank>public fr.cnes.genius.main.GComponent getSubComponent(int position)
throws fr.cnes.genius.exception.GComponentException
getSubComponent in class fr.cnes.genius.main.GComponentfr.cnes.genius.exception.GComponentExceptionpublic void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearfr.cnes.genius.exception.GExceptionpublic void before(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
before in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GExceptionpublic void after(fr.cnes.genius.main.GEvent e)
throws fr.cnes.genius.exception.GException
after in interface fr.cnes.genius.main.GListenerfr.cnes.genius.exception.GExceptionpublic void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterfacepublic void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic GPFuelTank clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic static void checkTank(CustomFuelTank tank) throws fr.cnes.genius.exception.GArithmeticException
tank - to be checkedfr.cnes.genius.exception.GArithmeticException - if the propellant mass in tank is NaN.Copyright © 2017. All rights reserved.