|
||||||||||
| 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.GPanel
fr.cnes.genopus.vehicle.GPVehiclePropulsiveProps
public class GPVehiclePropulsiveProps
Widget representing a vehicle propulsive properties (list of tanks and engines).
| Index | Class | Item | Constraint |
| 0 | GEntryReal | ergMassEntryReal | 0, 0, 0 => "newline , gapleft 20 , split 2" 0, 0, 1 => (null) 0, 1 => (null) 0, 2 => (null) |
| 1 | GSeparator | enginesSeparator | "newline , gapleft 20 , spanx 4 , growx" |
| 2 | GOpenCloseButton | enginesOpenCloseButton | "newline , gapleft 0 , split 2" |
| 3 | GLabelWithIndicator | enginesLabel | 3, 0 => (null) 3, 1 => (null) |
| 4 | GComponentList | enginesList | "newline , gapleft 20 , spanx 4 , growx" (see table below) |
| 5 | GSeparator | tanksSeparator | "newline , gapleft 20 , spanx 4 , growx" |
| 6 | GOpenCloseButton | tanksOpenCloseButton | "newline , gapleft 0 , split 2" |
| 7 | GLabelWithIndicator | tanksLabel | 7, 0 => (null) 7, 1 => (null) |
| 8 | GComponentList | tanksList | "newline , gapleft 20 , spanx 4 , growx" (see table below) |
| Index | Class | Item | Constraint |
| 4, 0 | GHeaderPanel | header | "hmin 40" (see table below) |
| 4, 1 | GLabel | spaceLabel | "newline , height 0" |
| Index | Class | Item | Constraint |
| 4, 0, 0 | GEntryInt | totalNumberItemsEntry | 4, 0, 0, 0, 0 =>
"newline , split 2" 4, 0, 0, 0, 1 => (null) 4, 0, 0, 1 => "skip 2 , width 50" |
| 4, 0, 1 | GEntryInt | currentItemRankEntry | 4, 0,
1, 0, 0 => "split 2" 4, 0, 1, 0, 1 => (null) 4, 0, 1, 1 => "width 50" |
| 4, 0, 2 | GButton | decrButton | "alignx Right , height 20" |
| 4, 0, 3 | GButton | incrButton | "height 20" |
| 4, 0, 4 | GPopupList | menu | (null) |
| Index | Class | Item | Constraint |
| 8, 0 | GHeaderPanel | header | "hmin 40" (see table below) |
| 8, 1 | GLabel | spaceLabel | "newline , height 0" |
| Index | Class | Item | Constraint |
| 8, 0, 0 | GEntryInt | totalNumberItemsEntry | 8, 0, 0, 0, 0 =>
"newline , split 2" 8, 0, 0, 0, 1 => (null) 8, 0, 0, 1 => "skip 2 , width 50" |
| 8, 0, 1 | GEntryInt | currentItemRankEntry | 8, 0,
1, 0, 0 => "split 2" 8, 0, 1, 0, 1 => (null) 8, 0, 1, 1 => "width 50" |
| 8, 0, 2 | GButton | decrButton | "alignx Right , height 20" |
| 8, 0, 3 | GButton | incrButton | "height 20" |
| 8, 0, 4 | GPopupList | menu | (null) |
| 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 | |
|---|---|
GPVehiclePropulsiveProps(String widgetId,
String name)
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
after(fr.cnes.genius.main.GEvent e)
|
void |
before(fr.cnes.genius.main.GEvent e)
|
void |
clear()
|
void |
display()
|
void |
generic()
|
String[] |
getEngineNames()
Method to get the list of engine names. |
ArrayList<CustomEngine> |
getEnginesList()
Get list of engines. |
double |
getErgMass()
Get ergol mass. |
fr.cnes.genius.highLevel.GComponentList |
getGComponentListEngines()
Getter for the list of engines. |
fr.cnes.genius.highLevel.GComponentList |
getGComponentListTanks()
Getter for the list of tanks. |
fr.cnes.genius.highLevel.GEntryReal |
getGEntryRealErgMass()
Getter for the entry real with the mass of ergols. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelEngines()
Getter for the label for the engines. |
fr.cnes.genius.highLevel.GLabelWithIndicator |
getGLabelTanks()
Getter for the label for the tanks. |
fr.cnes.genius.highLevel.GOpenCloseButton |
getGOpenCloseButtonEngines()
Getter for the open close button for the engines. |
fr.cnes.genius.highLevel.GOpenCloseButton |
getGOpenCloseButtonTanks()
Getter for the open close button for the tanks. |
fr.cnes.genius.lowLevel.GSeparator |
getGSeparatorEngines()
Getter for the separator for the engines. |
fr.cnes.genius.lowLevel.GSeparator |
getGSeparatorTanks()
Getter for the separator for the tanks. |
fr.cnes.genius.main.GComponent |
getSubComponent(int position)
|
String[] |
getTankNames()
Method to get the list of tank names. |
ArrayList<CustomFuelTank> |
getTanksList()
Get list of tanks. |
boolean |
isEnabled()
|
boolean |
isModified()
|
void |
read()
|
void |
setConstraint(int widgetGap)
Setter for the constraints of the widget. |
void |
setDefaultEnginesList(ArrayList<CustomEngine> enginesList)
Setter for the default list of engines. |
void |
setDefaultTanksList(ArrayList<CustomFuelTank> tanksList)
Setter for the default list of fuel tanks. |
void |
setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
Controls the display of the isModified indicator of all sub-widgets. |
void |
setEnabled(boolean b)
|
void |
setEnginesList(ArrayList<CustomEngine> enginesList)
Setter for the list of engines. |
void |
setSavedEnginesList(ArrayList<CustomEngine> enginesList)
Setter for the saved list of engines. |
void |
setSavedTanksList(ArrayList<CustomFuelTank> tanksList)
Setter for the saved list of tanks. |
void |
setTanksList(ArrayList<CustomFuelTank> tanksList)
Setter for the list of fuel tanks. |
void |
setWidgetId(String widgetId)
|
void |
updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
|
protected void |
updateEnginesIsModifiedIndicator()
Update the engines label modified indicator depending on the engines list modified status. |
protected void |
updateTanksIsModifiedIndicator()
Update the tanks label modified indicator depending on the tanks list modified status. |
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, 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 GPVehiclePropulsiveProps(String widgetId,
String name)
widgetId - widget identifier, if null an identifier will be automatically createdname - name in configuration file| Method Detail |
|---|
public void setWidgetId(String widgetId)
setWidgetId in class fr.cnes.genius.main.GComponentpublic void setConstraint(int widgetGap)
widgetGap - left gap from panel border to display the label of the widget.public fr.cnes.genius.highLevel.GEntryReal getGEntryRealErgMass()
public fr.cnes.genius.lowLevel.GSeparator getGSeparatorEngines()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelEngines()
public fr.cnes.genius.highLevel.GOpenCloseButton getGOpenCloseButtonEngines()
public fr.cnes.genius.highLevel.GComponentList getGComponentListEngines()
public fr.cnes.genius.lowLevel.GSeparator getGSeparatorTanks()
public fr.cnes.genius.highLevel.GLabelWithIndicator getGLabelTanks()
public fr.cnes.genius.highLevel.GOpenCloseButton getGOpenCloseButtonTanks()
public fr.cnes.genius.highLevel.GComponentList getGComponentListTanks()
public void generic()
throws fr.cnes.genius.exception.GException
generic in class fr.cnes.genius.lowLevel.GPanelfr.cnes.genius.exception.GException
public void display()
throws fr.cnes.genius.exception.GException
display in interface fr.cnes.genius.main.GDisplayfr.cnes.genius.exception.GException
public void read()
throws fr.cnes.genius.exception.GException
read in interface fr.cnes.genius.main.GReadWritefr.cnes.genius.exception.GException
public void write()
throws fr.cnes.genius.exception.GException
write in interface fr.cnes.genius.main.GReadWritefr.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.GListenerfr.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.GListenerfr.cnes.genius.exception.GExceptionpublic String[] getEngineNames()
public String[] getTankNames()
public ArrayList<CustomFuelTank> getTanksList()
public ArrayList<CustomEngine> getEnginesList()
public double getErgMass()
public void updateCondensedStatus(fr.cnes.genius.main.GCondensedStatus condensedStatus)
updateCondensedStatus in interface fr.cnes.genius.main.GCondensedStatusInterfacepublic 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.GComponentprotected void updateTanksIsModifiedIndicator()
protected void updateEnginesIsModifiedIndicator()
public void setDisplayIsModifiedIndicatorAll(fr.cnes.genius.main.GComponent.DisplayIndicatorStatus displayIndicatorStatus)
displayIndicatorStatus - if Always the modifiedStatusIndicator is always shown, if Never the modifiedStatusIndicator
is never shown, if Automatic the modifiedStatusIndicator is shown as needed.
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.GComponentException
public void clear()
throws fr.cnes.genius.exception.GException
clear in interface fr.cnes.genius.main.GClearfr.cnes.genius.exception.GException
public void setEnginesList(ArrayList<CustomEngine> enginesList)
throws GPVehicleException
enginesList - the list of engines
GPVehicleException - if the list of tanks is not coherent with the max and min of the list of engines.
public void setTanksList(ArrayList<CustomFuelTank> tanksList)
throws GPVehicleException
tanksList - the list of fuel tanks
GPVehicleException - if the list of tanks is not coherent with the max and min of the list of tanks.public void setDefaultEnginesList(ArrayList<CustomEngine> enginesList)
enginesList - the default list of enginespublic void setDefaultTanksList(ArrayList<CustomFuelTank> tanksList)
tanksList - the default list of fuel tankspublic void setSavedEnginesList(ArrayList<CustomEngine> enginesList)
enginesList - the saved list of enginespublic void setSavedTanksList(ArrayList<CustomFuelTank> tanksList)
tanksList - the saved list of tanks
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||