com.swfit.core.xhtml
Interface XHTMLElement

All Known Subinterfaces:
XHTMLList

public interface XHTMLElement

Abstraction of the most common non-reusable elements in XHTML (image, hyperlink etc.).

Since:
SWFIT1.0
Version:
$Revision: 1.1 $ $Date: 2003/02/02 20:47:25 $
Author:
Olaf Havnes

Field Summary
static int NO_ENCODING
          Specify some encoding for the content - content is here the text that describes the technical aspect for the user (the alt tag for an image, the visible text for a link).
static int SEMI_ENCODING
          Specify some encoding for the content - content is here the text that describes the technical aspect for the user (the alt tag for an image, the visible text for a link).
static int STRICT_ENCODING
          Specify some encoding for the content - content is here the text that describes the technical aspect for the user (the alt tag for an image, the visible text for a link).
 
Method Summary
 java.lang.StringBuffer add(java.lang.StringBuffer str_b, java.lang.String content, int encoding)
          Add a full element to the list with a specified encoding.
 java.lang.StringBuffer addEncoded(java.lang.StringBuffer str_b, java.lang.String encoded)
          Add a full element to the list - without encoding the content any further.
 java.lang.StringBuffer elementEnd(java.lang.StringBuffer str_b)
          Write the end of the element
 java.lang.StringBuffer elementStart(java.lang.StringBuffer str_b)
          Write the beginning of the element
 java.lang.StringBuffer elementStart(java.lang.StringBuffer str_b, java.lang.String style)
          Write the beginning of the element
 

Field Detail

NO_ENCODING

public static final int NO_ENCODING
Specify some encoding for the content - content is here the text that describes the technical aspect for the user (the alt tag for an image, the visible text for a link).

SEMI_ENCODING

public static final int SEMI_ENCODING
Specify some encoding for the content - content is here the text that describes the technical aspect for the user (the alt tag for an image, the visible text for a link).

STRICT_ENCODING

public static final int STRICT_ENCODING
Specify some encoding for the content - content is here the text that describes the technical aspect for the user (the alt tag for an image, the visible text for a link).
Method Detail

elementStart

public java.lang.StringBuffer elementStart(java.lang.StringBuffer str_b)
Write the beginning of the element

elementStart

public java.lang.StringBuffer elementStart(java.lang.StringBuffer str_b,
                                           java.lang.String style)
Write the beginning of the element

elementEnd

public java.lang.StringBuffer elementEnd(java.lang.StringBuffer str_b)
Write the end of the element

addEncoded

public java.lang.StringBuffer addEncoded(java.lang.StringBuffer str_b,
                                         java.lang.String encoded)
Add a full element to the list - without encoding the content any further. This is in effect just a shorthand version of the two above methods, but a little less efficient, since the content needs to be a String, and can not be processed in a StringBuffer.

add

public java.lang.StringBuffer add(java.lang.StringBuffer str_b,
                                  java.lang.String content,
                                  int encoding)
Add a full element to the list with a specified encoding. This is in effect just a shorthand version of the two above methods, but a little less efficient, since the content needs to be a String, and can not be processed in a StringBuffer.


Swfit developer homepage
Copyright © 2003 Orgdot AS. All Rights Reserved.