vqServer API Class vq.utils.html

java.lang.Object
    |
    +----vq.utils.html
Contents
Package index
Package
API index

public class html
extends java.lang.Object
Utility class containing static methods that generate HTML elements according to supplied parameters.


Constructor Index

 o html()
 

Method Index

 o pad(String, int)
Returns a string of exactly the specified length, either by truncating the specified string or by adding spaces to the end of the specified string.
 o rimage(String, int, int, int)
Returns an img tag with the specified parameters.
 o rimage(String, int, int, int, String)
Returns an img tag with the specified parameters.
 o rimage(String, String)
Returns an img tag with the specified parameters.
 o rlink(String, String)
Returns a hyperlink tag pair with the specified parameters.
 o rquote(String)
Returns the specified string enclosed in quotation marks.

Constructor Detail

 o html
public html()

Method Detail

 o rquote
public static java.lang.String rquote(java.lang.String theString)
          Returns the specified string enclosed in quotation marks.
Parameters:
theString - the string to quote
Returns:
the string enclosed in quotation marks
 o rimage
public static java.lang.String rimage(java.lang.String source,
                            java.lang.String border)
          Returns an img tag with the specified parameters.
Parameters:
source - the URI of the image
border - the border width of the image
Returns:
an img tag
 o rimage
public static java.lang.String rimage(java.lang.String source,
                            int width,
                            int height,
                            int border)
          Returns an img tag with the specified parameters.
Parameters:
source - the URI of the image
width - the width of the image
height - the height of the image
border - the border width of the image
Returns:
an img tag
 o rimage
public static java.lang.String rimage(java.lang.String source,
                            int width,
                            int height,
                            int border,
                            java.lang.String alt)
          Returns an img tag with the specified parameters.
Parameters:
source - the URI of the image
width - the width of the image
height - the height of the image
border - the border width of the image
alt - the alternate text of the image
Returns:
an img tag
 o rlink
public static java.lang.String rlink(java.lang.String prompt,
                           java.lang.String target)
          Returns a hyperlink tag pair with the specified parameters.
Parameters:
prompt - the hyperlinked text
target - the target of the link
Returns:
a hyperlink tag pair
 o pad
public static java.lang.String pad(java.lang.String theString,
                         int theLength)
          Returns a string of exactly the specified length, either by truncating the specified string or by adding spaces to the end of the specified string.
Parameters:
theString - the source string
theLength - the desired length of the string after padding
Returns:
the padded string


vqServer API version 1.9. vqServer and the vqServer API are copyright © Steve Shering and vqSoft 1997-2000. Last updated 15 May 2000.

Contents
Package index
Package
API index