HAWHAW

PHP

Class HAW_table

HAW_table

public class HAW_table

This class allows to insert tables into a HAW_deck or HAW_form object.

Note: Not all WAP clients are able to display tables properly! HDML is not supporting tables at all. For HDML users the table's content will be generated column-by-column, respectively row-by-row, where each table cell will result in one separate line on the display.

Examples:

...
$myTable = new HAW_table();
$row1 = new HAW_row();
$row1->add_column($image1);
$row1->add_column($text1);
$myTable->add_row($row1);
$row2 = new HAW_row();
$row2->add_column($image2);
$row2->add_column($text2);
$myTable->add_row($row2);
$myDeck->add_table($myTable);
...

See Also:
HAW_deck, HAW_form, HAW_row

Constructor Summary
HAW_table()
          Constructor
 
Method Summary
 void add_row(var $row)
          Adds a HAW_row object to HAW_table.
 void set_voice_text(var $text, var $audio_src)
          Sets text to be spoken by voice browsers.
 

Constructor Detail

HAW_table

public HAW_table()
Constructor
Method Detail

add_row

public void add_row(var $row)
Adds a HAW_row object to HAW_table.
Parameters:
row - Some HAW_row object.

set_voice_text

public void set_voice_text(var $text,
                           var $audio_src)
Sets text to be spoken by voice browsers.
Note: Tables should be avoided whenever voice users are targeted. Anyway, the HAWHAW API allows to assign voice output to HAW_table objects in order to say some introducing words before the table content is spoken.
Parameters:
text - Some helpful text.
audio_src - Some audio file (e.g. *.wav file) to play (optional).

© Norbert Huffschmid
assembled from PHP source
using sed and javadoc