HTMLObject::WMLDeck(3)

NAME
WMLDeck - Object used to build a WMLDeck Object Class.

SYNOPSIS
  use HTMLObject::WMLDeck;
  my $obj = HTMLObject::WMLDeck->new;
  if ($obj->didErrorOccur())
  {
    die $obj->errorMessage();
  }

DESCRIPTION
WMLDeck is a WMLDeck class.

Exported FUNCTIONS
  scalar new(lang, displayLang)
    Creates a new instance of the HTMLObject::WMLDeck
    object.

  bool isValid(void)
    Returns 0 or 1 to indicate if the object is valid.  The error will be
    available via errorMessage().

  void setError(errorString)
    sets error and errorString to indicate an error occurred.

  scalar didErrorOccur(void)
    Returns the value of error.

  scalar errorMessage(void)
    Returns the value of errorString.

  int createCard(id, title, newcontext, ordered, onenterforward,
                  onenterbackward, ontimer)
    Creates a new WMLCard Object and stores it in the cards hash under
    the id value.  The focus is automatically set to this new card
    until changed by the user.  Returns -1 if the card already exists.

  scalar setFocus(scalar)
    This sets the focus to the new card id and returns the old card id
    that previously had the focus.  If no card was previously created it
    will return an empty string.  If no value is given, then it just
    returns the card that has the focus.

  void print(scalar)
    Prints the contents of the string passed in into the card that
    currently has the focus.  If no card is defined, then we blow an
    error.

  void printHead(scalar)
    Prints the contents of the string passed in into the head section
    of the deck.

  void printTemplate(scalar)
    Prints the contents of the string passed in into the template
    section of the deck.

  scalar display(void)
    Returns the <wml>...</wml> string that represents the contents of
    this WMLDeck Object.

  NOTE:  All data fields are accessible by specifying the object
         and pointing to the data member to be modified on the
         left-hand side of the assignment.
         Ex.  $obj->variable($newValue); or $value = $obj->variable;

AUTHOR
James A. Pattie (mailto:htmlobject@pcxperience.com)

SEE ALSO
perl(1), HTMLObject::WAP(3)