Menu

ChangeToGM

Erik Fließwasser
Attachments
ChangeType_Part1_komp.png (185852 bytes)
ChangeType_Part2.png (55622 bytes)

Changing type of calculation

This page describes the procedure of changing the type of calculation to global matrix calculation


Initializing

  1. By using the menu, the user calls the changeTypeOfCalculation method of the MainGUI_Frame with global matrix (as an item of the enumerator EtypesOfCalculations) as the parameter
  2. This method also calls the createTable method and passes the global matrix parameter for creating the needed child of JTable. In this case JTableGM
  3. After returning of the createTable method a new instance of GlobalMatrixBean is created. Now the new bean creates a new TableModelGM, which later is used by the JTableGM.
  4. Additonally the createEmptyData method is called and creates a new two dimensional Object array, called 'data' and fills it with descriptions for the rows of the table and the associated default values.
  5. In the last step this Object array is given to the TableModelGM by the setData method.

ChangeType_Part1


Setting

Now there are only missing some get and set operations.

  1. The MainGUI_Frame calls the setDataBean method of the JTableGM and passes the bean (GlobalMatrixBean), created in the begining.
  2. In the next step the MainGUI_Frame takes the table model, created in the bean, and passes it to the JTableGM calling the setModel method. After returning the changing of the type of calculation is finished.

ChangeType_Part2


Related

Wiki: DynDescriptions

MongoDB Logo MongoDB