com.bankframe.fe.wml
Class WMLWidget

java.lang.Object
  extended bycom.bankframe.fe.wml.WMLWidget
Direct Known Subclasses:
Card, Comment, Deck, Hidden, Image, MenuOption, Paragraph, Password, Postfield, Text

public abstract class WMLWidget
extends java.lang.Object

This class is the WML widget abstract class.


Constructor Summary
WMLWidget()
          WMLWidget constructor comment.
 
Method Summary
 java.lang.String quote(int data)
          Add quotes around the value, i.e.
 java.lang.String quote(java.lang.String data)
          Add quotes around the value, i.e.
 java.lang.String replaceSpacesWithUnderscores(java.lang.String oldString)
          Replace all instances of spaces with an underscore.
abstract  java.lang.String toWML()
          This method returns a WML representation of this widget.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WMLWidget

public WMLWidget()
WMLWidget constructor comment.

Method Detail

quote

public java.lang.String quote(int data)
Add quotes around the value, i.e. \" not " so that it can be used in string literals.

Returns:
a string represention of the int, qouted

quote

public java.lang.String quote(java.lang.String data)
Add quotes around the value, i.e. \" not " so that it can be used in string literals.

Parameters:
data - the string to quote
Returns:
The quoted string

replaceSpacesWithUnderscores

public java.lang.String replaceSpacesWithUnderscores(java.lang.String oldString)
Replace all instances of spaces with an underscore. XML syntax does not allow spaces in attribute names.

Returns:
the new String with double quotes appended at either end.

toWML

public abstract java.lang.String toWML()
This method returns a WML representation of this widget.

Returns:
a string containing WML markup


Copyright © 2005, 2007, Oracle. All rights reserved.