de.betabeans.scroogexhtml.translator
Class HTML401Transitional

java.lang.Object
  extended by de.betabeans.scroogexhtml.translator.CustomTranslator
      extended by de.betabeans.scroogexhtml.translator.HTMLTranslator
          extended by de.betabeans.scroogexhtml.translator.HTML401Transitional
All Implemented Interfaces:
Translator

public final class HTML401Transitional
extends HTMLTranslator

HTML 4.01 Transitional Translator.

Author:
Michael Justin

Constructor Summary
HTML401Transitional()
          Constructor for the HTML401Transitional object.
 
Method Summary
 java.lang.String formatElement(java.lang.String text, CharacterProperties cp, ParagraphProperties pp)
          Format a String using the given CharacterProperties.
 boolean isTransitional()
          Check if this is a TRANSITIONAL document type.
 boolean supportsElement(java.lang.String elementName)
          Return 'true' for all elements.
 
Methods inherited from class de.betabeans.scroogexhtml.translator.HTMLTranslator
encode, getCloseEmptyElement, getRootElement, isXMLTranslatorClass
 
Methods inherited from class de.betabeans.scroogexhtml.translator.CustomTranslator
buildLangAttribute, buildSpanTag, getDocType, getFontSizeUnit, getParagraph, getParagraph, getParagraphStyle, getStyleParam, setDocType, setFontSizeUnit, setFormatter, setParOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTML401Transitional

public HTML401Transitional()
Constructor for the HTML401Transitional object.

Method Detail

isTransitional

public boolean isTransitional()
Check if this is a TRANSITIONAL document type.

Returns:
boolean True.

formatElement

public java.lang.String formatElement(java.lang.String text,
                                      CharacterProperties cp,
                                      ParagraphProperties pp)
Format a String using the given CharacterProperties.

Parameters:
text - The String to be formatted.
cp - The character properties to be used.
pp - ParagraphProperties
Returns:
The formatted String.

supportsElement

public boolean supportsElement(java.lang.String elementName)
Return 'true' for all elements.

Parameters:
elementName - Name of the HTML element.
Returns:
True if this element is supported.


Copyright (c) 1998-2006 BetaSoft Michael Justin. All Rights Reserved.