Previous Next        Current Page: NeXtMidas Training / Macros - Part 2 (Graphics) / Plotting and Listing / Listing
back
Start Here   
Background   
Common Midas Concepts   
Getting Started - Part 1   
Getting Started - Part 2   
Working with Files   
Option Trees   
Macros - Part 1 (Basics)   
Macros - Part 2 (Graphics)   
   + Intro to Graphics   
   + GControls   
   + Lab 1 - Macro Graphics   
   - Plotting and Listing   
      - Introduction   
      - Plotting   
      - Listing   
   + Panel Setup   
   + Lab 2 - Macro Graphics   
   + Conclusion   
   + Lab 3 - Macro Graphics   
NetBeans - Part 1 (Setup)   
NetBeans - Part 2 (GUIs)   
NetBeans - Part 3 (Profiler)   
Eclipse - Part 1 (Setup)   
Eclipse - Part 2 (GUIs)   
Primitives   
WebStart   
Maps & Imagery   
X-Midas Interoperability   
RMIF & Remoting   
Installing NeXtMidas   
Support & Maintenance   
File Handlers   


  • Listing:
    • While a LIST2 is up, it is possible to add/remove/update rows from the list.
      • LIST2 uses tables to add/remove/update the data for a row.
      • A special feature of the files implementing ListFile (which LIST2 uses) is that their add/set/update row methods are designed to work with "mis-match" tables following these rules:
        • Where a key in the table matches a column in the file, LIST2 will use that value (in cases where the file specifies an internal format the value will be converted to that format). (Automatic type conversion!)
        • Any keys not matching a column name are ignored. (Extra values are ignored!)
        • Any columns for which there is not a matching key get default values. (Missing values get the default!)
    • While an instance of LIST2 is up and running, its template can be altered in one of two ways:
      1. SET - Setting a new template discards the old template and uses a new one.
      2. UPDATE - Updating a template modifies the template currently in use by adding/changing some of the entries.
        • This is very useful since it allows for simple modifications to an existing template.
          invoke ,, reg.list2.updateTemplate({ABSC={FGCOLOR="RED"}})
          In the above example the color of the ABSC column is changed to red, but nothing else is altered.
    • See the API for nxm.sys.libg.MJList for more details.
    • See the %test_list2 macro in the test area of SYS for examples.

back