de.betabeans.scroogexhtml.translator
Class HTML401Strict

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

public final class HTML401Strict
extends HTMLTranslator

HTML 4.01 Strict Translator.

Author:
Michael Justin

Constructor Summary
HTML401Strict()
          Constructor for the HTML401Strict 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 'false' for the "br" elementName.
 
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

HTML401Strict

public HTML401Strict()
Constructor for the HTML401Strict object.

Method Detail

isTransitional

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

Returns:
boolean False.

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 'false' for the "br" elementName.

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


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