table_widget4 (library)

Author(s): Isabel Martín García.

In addition to the features explained in the introduction, predicates exported by this module display tables in which the font weight for the elements placed in the first row and column is bold. The remaining elements are in medium weight font.

If the arguments are not in a correct format the exception error8 will be thrown.


Usage and interface

Documentation on exports

PREDICATE
tablewidget4(Title,Header,ElementTable,Footer)

Shows a regular table in a window. The system sets a default background image for the widget.

Example:

tablewidget4('Some sterEUtypes',
  'Source: Eurostat yearbook, 1999',
  [['Country','Adult alcohol intake per year (litres)',
       'Cigarettes smoked per day per adult',
             'Suicides per 100000 people'],
      ['Finland','8.4','2.2','26.3'],['Spain','11.4','5.3','7.5'],
      ['Austria','11.9','4.6','20.7'],['Britain','9.4','4.2','7.1'],
      ['USA','4.7','4.9','13'],['European Union','11.1','4.5','11.9']],
  'This is part of the published table').

Usage:

  • The following properties should hold at call time:
    (genbar1:title/1)Title is a text (an atom) to be used as label, usually not very long.
    (genbar1:header/1)Header is a text (an atom) describing the header of the graph.
    (table_widget1:table/1)table_widget1:table(ElementTable)
    (genbar1:footer/1)Footer is a text (an atom) describing the footer of the graph.

PREDICATE
tablewidget4(Title,Header,ElementTable,Footer,BackgroundImage)

This predicate and tablewidget4/4 are comparable, except that in the already defined you must set the background image.

Example:

tablewidget4('Some sterEUtypes',
  'Source: Eurostat yearbook, 1999',
  [['Country','Adult alcohol intake per year (litres)',
       'Cigarettes smoked per day per adult',
           'Suicides per 100000 people'],
      ['Finland','8.4','2.2','26.3'],['Spain','11.4','5.3','7.5'],
      ['Austria','11.9','4.6','20.7'],['Britain','9.4','4.2','7.1'],
      ['USA','4.7','4.9','13'],['European Union','11.1','4.5','11.9']],
  'This is part of the published table',
  './images/rain.gif').

Usage:

  • The following properties should hold at call time:
    (genbar1:title/1)Title is a text (an atom) to be used as label, usually not very long.
    (genbar1:header/1)Header is a text (an atom) describing the header of the graph.
    (table_widget1:table/1)table_widget1:table(ElementTable)
    (genbar1:footer/1)Footer is a text (an atom) describing the footer of the graph.
    (table_widget1:image/1)table_widget1:image(BackgroundImage)