HAW_text Class Reference

List of all members.

Public Member Functions

 HAW_text ($text, $attrib=HAW_TEXTFORMAT_NORMAL)
 set_color ($color, $boxcolor="")
 set_css_class ($css_class)
 set_br ($br)
 set_voice_text ($text, $audio_src="")
 set_voice_navigation ()

Detailed Description

This class allows to insert plain text into a HAW_deck, HAW_form or HAW_table object.

Examples:

$myText1 = new HAW_text("Hello WAP!");
$myText2 = new HAW_text("Welcome to HAWHAW", HAW_TEXTFORMAT_BOLD);
$myText3 = new HAW_text("Good Morning", HAW_TEXTFORMAT_BOLD | HAW_TEXTFORMAT_BIG);

$myText3->set_br(2);

See also:
HAW_deck

HAW_form

HAW_row


Member Function Documentation

HAW_text::HAW_text ( text,
attrib = HAW_TEXTFORMAT_NORMAL 
)

Constructor

Parameters:
text Some string you want to display
attrib (optional)
HAW_TEXTFORMAT_NORMAL (default)
HAW_TEXTFORMAT_BOLD
HAW_TEXTFORMAT_UNDERLINE
HAW_TEXTFORMAT_ITALIC
HAW_TEXTFORMAT_BIG
HAW_TEXTFORMAT_SMALL
HAW_TEXTFORMAT_BOXED (text in a colored box for headings etc.)

HAW_text::set_color ( color,
boxcolor = "" 
)

Sets the color of this object in a (X)HTML page.

Parameters:
color See HTML specification for possible values (e.g. "#CCFFFF", "red", ...).
boxcolor (optional)
box background for attribute HAW_TEXTFORMAT_BOXED

HAW_text::set_css_class ( css_class  ) 

Sets a css class for this object in a (X)HTML page.

Parameters:
css_class CSS class to be defined in the deck's central CSS file

HAW_text::set_br ( br  ) 

Sets the number of line breaks (CRLF) after text. (default: 1)

Parameters:
br Some number of line breaks.

HAW_text::set_voice_text ( text,
audio_src = "" 
)

Sets text to be spoken by voice browsers.

Parameters:
text Some alternative text that replaces original <text>.
audio_src Some audio file (e.g. *.wav file) to play (optional).

HAW_text::set_voice_navigation (  ) 

Turns on the voice navigation capability for this object.
Note: See set_voice_navigator(...) in class HAW_deck.

See also:
HAW_deck


The documentation for this class was generated from the following file:
Generated on Mon Dec 6 21:51:55 2010 for HAWHAW PHP by  doxygen 1.5.1