|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.betabeans.scroogexhtml.converter.ScroogeXHTMLBase
public abstract class ScroogeXHTMLBase
ScroogeXHTMLBase defines the bean properties.
Field Summary | |
---|---|
protected static int |
DEFAULT_FONT_NR_UNKNOWN
The font number value when it is 'unknown'. |
static byte |
FONTSIZE_EM
Font size based on the relative unit 'em'. |
static byte |
FONTSIZE_EX
Font size based on the relative unit 'ex'. |
static byte |
FONTSIZE_PERCENT
Font size based on the relative unit '%'. |
static byte |
FONTSIZE_POINT
Font size based on the absolute unit 'point'. |
protected static java.lang.String |
NBSP_TAG
The non-breaking space character. |
Constructor Summary | |
---|---|
ScroogeXHTMLBase()
|
Method Summary | |
---|---|
void |
addAfterTextConversionListener(AfterTextConversionListener listener)
Add an afterTextConversion listener. |
void |
addBeforeTextConversionListener(BeforeTextConversionListener listener)
Add an beforeTextConversion listener. |
void |
addHyperlinkListener(HyperlinkListener listener)
Add a hyperlink listener. |
void |
addProgressListener(ProgressListener listener)
Add a progress listener. |
void |
debug(java.lang.String color,
char debugChar)
Write debug string. |
void |
debug(java.lang.String color,
java.lang.String debugText)
This methods writes a debug string to the output document. |
AfterTextConversionListener[] |
getAfterTextConversionListeners()
The get<ListenerType>s method returns the set of registered event listeners. |
protected java.util.Vector |
getAfterTextConversionListenerVector()
Returns the after text conversion listener vector value. |
BeforeTextConversionListener[] |
getBeforeTextConversionListeners()
The get<ListenerType>s method returns the set of registered event listeners. |
protected java.util.Vector |
getBeforeTextConversionListenerVector()
Returns the before text conversion listener vector value. |
protected int |
getCurFontCSet()
Returns the current font character set value. |
protected java.lang.StringBuffer |
getCurFontName()
Gets this object's current font name. |
protected int |
getCurFontNr()
Returns the current font number value. |
protected java.lang.String |
getCurFontType()
Returns the cur font type value. |
protected DebugInterface |
getDebugger()
Returns the debugger value. |
java.lang.String |
getDefaultFontColor()
Get the value of the defaultFontColor property. |
java.lang.String |
getDefaultFontName()
Get the value of the defaultFontName property. |
protected int |
getDefaultFontNr()
Returns the default font number value. |
int |
getDefaultFontSize()
Get the value of the defaultFontSize property. |
protected java.lang.String |
getDefaultFontStyleDefinition()
Returns the default font style definition value. |
java.lang.String |
getDefaultLanguage()
Get the value of the defaultLanguage property. |
java.lang.String |
getDocType()
Get the value of the docType property. |
java.lang.String |
getDocumentTitle()
Get the value of the documentTitle property. |
java.lang.String |
getEmptyParagraph()
Get the value of the emptyParagraph property. |
byte |
getFontSizeUnit()
Get the value of the fontSizeUnit property. |
protected java.lang.String |
getFontSizeUnitCode()
Returns the font size unit code value. |
Formatter |
getFormatter()
Get the output formatter object. |
java.lang.String |
getHeadTags()
Get the value of the headTags property. |
HyperlinkListener[] |
getHyperlinkListeners()
The get<ListenerType>s method returns the set of registered event listeners. |
protected java.util.Vector |
getHyperlinkListenerVector()
Returns the hyperlink listener vector. |
java.lang.String |
getLinebreakTag()
Build a linebreak tag. |
java.lang.String |
getListItemTag()
Returns the list item tag value. |
java.lang.String |
getMetaAuthor()
Get the value of the metaAuthor property. |
java.lang.String |
getMetaContentType()
Get the value of the metaContentType property. |
java.lang.String |
getMetaDate()
Get the value of the metaDate property. |
java.lang.String |
getMetaTags()
Get the value of the metaTags property. |
java.lang.String |
getParClose()
Returns the closing tag for a paragraph. |
java.lang.String |
getParOpen()
Returns the opening tag for a paragraph (without right bracket). |
protected RTFKeywords |
getParser()
Returns the parser. |
ProgressListener[] |
getProgressListeners()
The get<ListenerType>s method returns the set of registered event listeners. |
protected RTFReader |
getReader()
Returns the reader. |
java.util.Properties |
getReplaceFonts()
Get the value of the replaceFonts property. |
java.lang.String |
getStyleSheetInclude()
Get the value of the styleSheetInclude property. |
java.lang.String |
getStyleSheetLink()
Get the value of the styleSheetLink property. |
protected java.lang.String |
getTabString()
Returns a string which will be used to replace a \tab token in the RTF document. |
java.lang.String |
getTagClass(java.lang.String tagName)
Returns the tag class value. |
protected java.lang.String |
getTagClassParam(java.lang.String tagName)
Build the style="..." parameter for the given tag. |
java.lang.String |
getTagStyle(java.lang.String tagName)
Returns the tag style value. |
protected java.lang.String |
getTagStyleParam(java.lang.String tagName)
Returns the tag style parameter value. |
Translator |
getTranslator()
Get the document translator. |
java.lang.String |
getVersion()
ScroogeXHTML version. |
protected Writer |
getWriter()
Returns the writer. |
protected boolean |
hasProgressListeners()
Check if there are registered progress listeners. |
boolean |
isAbortConversion()
Get the value of the abortConversion property. |
boolean |
isAddOuterHTML()
Return the value of the addOuterHTML property. |
boolean |
isConvertEmptyParagraphs()
Get the value of the convertEmptyParagraphs property. |
boolean |
isConvertFontBGColor()
Get the value of the convertFontBGColor property. |
boolean |
isConvertFontColor()
Get the value of the convertFontColor property. |
boolean |
isConvertFontHLColor()
Get the value of the convertFontHLColor property. |
boolean |
isConvertFontName()
Get the value of the convertFontName property. |
boolean |
isConvertFontSize()
Get the value of the convertFontSize property. |
boolean |
isConvertFontStyle()
Get the value of the convertFontStyle property. |
boolean |
isConvertHyperlinks()
Get the value of the convertHyperlinks property. |
boolean |
isConvertIndent()
Get the value of the convertIndent property. |
boolean |
isConvertLanguage()
Get the value of the convertLanguage property. |
boolean |
isConvertSpaces()
Get the value of the convertSpaces property. |
boolean |
isDebugMode()
Get the value of the debugMode property. |
boolean |
isIncludeDefaultFontStyle()
Get the value of the includeDefaultFontStyle property. |
boolean |
isIncludeDocType()
Get the value of the includeDocType property. |
boolean |
isIncludeXMLDeclaration()
Get the value of the includeXMLDeclaration property. |
boolean |
isMetaDateAuto()
Get the value of the metaDateAuto property. |
java.lang.String |
isMetaDescription()
Get the value of the metaDescription property. |
boolean |
isMetaGenerator()
Get the value of the metaGenerator property. |
java.lang.String |
isMetaKeywords()
Get the value of the metaKeywords property. |
static java.lang.String |
nameAndVersion()
Name and Version of ScroogeXHTML. |
protected void |
notifyProgress()
Notify all existing progress listeners. |
abstract java.lang.String |
process(FormattedText textElement)
The FormattedText objects which are stored in the Document instance call this method to convert themselves to HTML. |
void |
removeAfterTextConversionListener(AfterTextConversionListener listener)
Remove a AfterTextConversionListener. |
void |
removeBeforeTextConversionListener(BeforeTextConversionListener listener)
Remove a BeforeTextConversionListener. |
void |
removeHyperlinkListener(HyperlinkListener listener)
Remove a HyperlinkListener. |
void |
removeProgressListener(ProgressListener listener)
Remove a ProgressListener. |
protected abstract void |
replaceHyperlink(FormattedText textElement)
(implemented by ScroogeXHTMLMain). |
void |
setAbortConversion(boolean newValue)
Set AbortConversion to true to cancel the conversion. |
void |
setAddOuterHTML(boolean newValue)
Set this property to true to include the HTML header section, and place the generated HTML between the <body> and </body> tags. |
void |
setConvertEmptyParagraphs(boolean newValue)
Enable conversion of empty paragraphs to line break tags (<br />). |
void |
setConvertFontBGColor(boolean newValue)
Set ConvertFontBGColor to true to enable conversion of text background colors. |
void |
setConvertFontColor(boolean newValue)
Set this property to true to enable conversion of font colors. |
void |
setConvertFontHLColor(boolean newValue)
Set ConvertFontHLColor to true to enable conversion of text highlight colors. |
void |
setConvertFontName(boolean newValue)
Set this property to true to enable conversion of font names. |
void |
setConvertFontSize(boolean newValue)
Set this property to true to enable conversion of font sizes. |
void |
setConvertFontStyle(boolean newValue)
Set this property to true to enable conversion of font styles (bold, italic, strike, underline, subscript, superscript). |
void |
setConvertHyperlinks(boolean newValue)
Set this property to true to enable conversion of hyperlinks. |
void |
setConvertIndent(boolean newValue)
Set this property to true to enable conversion of indents. |
void |
setConvertLanguage(boolean newValue)
Set the value of the convertLanguage property. |
void |
setConvertSpaces(boolean newValue)
Set this property to true to enable conversion of sequences of spaces to tags. |
protected void |
setCurFontCSet(int cs)
curFontCSet contains the current font character set. |
protected void |
setCurFontName(java.lang.StringBuffer n)
curFontName contains the current font name. |
protected void |
setCurFontNr(int n)
curFontNr contains the current font number. |
protected void |
setCurFontType(java.lang.String t)
curFontType contains the current font type. |
void |
setDebugMode(boolean newValue)
Set this property to true to include debug informations in the document. |
void |
setDefaultFontColor(java.lang.String newValue)
Use this property to optimize the HTML code generation. |
void |
setDefaultFontName(java.lang.String newValue)
Use this property to optimize the HTML code generation. |
protected void |
setDefaultFontNr(int n)
defaultFontNr contains the default font number. |
void |
setDefaultFontSize(int newValue)
Use this property to optimize the HTML code generation. |
void |
setDefaultLanguage(java.lang.String newValue)
Set the default language code. |
void |
setDocType(java.lang.String s)
Set the output document type. |
void |
setDocumentTitle(java.lang.String newValue)
Sets the document title. |
void |
setFontSizeUnit(byte newValue)
Set the fontSizeUnit property. |
void |
setHeadTags(java.lang.String newValue)
List of additional tags for the head section. |
void |
setIncludeDefaultFontStyle(boolean newValue)
If this property is set to true, the HTML head section will include a CSS definition for the default font style which is defined by the properties DefaultFontSize, DefaultFontName and DefaultFontColor. |
void |
setIncludeDocType(boolean newValue)
Include a DOCTYPE tag at the beginning of the document. |
void |
setIncludeXMLDeclaration(boolean newValue)
Includes the XML declaration line at the beginning of the document. |
void |
setMetaAuthor(java.lang.String newValue)
This property may be used to specify a META tag which contains the document author. |
void |
setMetaContentType(java.lang.String newValue)
This property may be used to specify a character encoding for the document. |
void |
setMetaDate(java.lang.String newValue)
Use this property to define the Meta tag for the date manually. |
void |
setMetaDateAuto(boolean newValue)
Include a META tag with UTC date and time. |
void |
setMetaDescription(java.lang.String newValue)
This property may be used to specify a document description. |
void |
setMetaGenerator(boolean newValue)
Include a META tag with generator name. |
void |
setMetaKeywords(java.lang.String newValue)
This property may be used to specify keywords for the document. |
void |
setMetaTags(java.lang.String newValue)
List of additional meta tags. |
protected void |
setParser(RTFKeywords p)
Sets the parser attribute of the ScroogeXHTMLBase object. |
protected void |
setReader(RTFReader r)
Sets the reader attribute of the ScroogeXHTMLBase object. |
void |
setReplaceFonts(java.util.Properties newValue)
A Properties objects, which defines which original font names in the RTF source have to be replaced in the HTML output. |
void |
setStyleSheetInclude(java.lang.String newValue)
Additional style sheet definitions which are stored in the HTML document. |
void |
setStyleSheetLink(java.lang.String newValue)
URL of a file which contains external CSS style sheet definitions for the HTML document. |
void |
setTagClass(java.lang.String tagName,
java.lang.String className)
This property allows to define a CSS class parameter for all <p>, <br> and <li> tags in the converted document. |
void |
setTagStyle(java.lang.String tagName,
java.lang.String tagStyle)
This property allows to define a CSS style parameter for all <p>, <br> and <li> tags in the converted document. |
void |
setTranslator(Translator t)
Sets the translator attribute of the ScroogeXHTMLBase object. |
protected void |
setWriter(Writer w)
Sets the writer attribute of the ScroogeXHTMLBase object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int DEFAULT_FONT_NR_UNKNOWN
public static final byte FONTSIZE_EM
setFontSizeUnit(byte)
,
Constant Field Valuespublic static final byte FONTSIZE_EX
setFontSizeUnit(byte)
,
Constant Field Valuespublic static final byte FONTSIZE_PERCENT
setFontSizeUnit(byte)
,
Constant Field Valuespublic static final byte FONTSIZE_POINT
setFontSizeUnit(byte)
,
Constant Field Valuesprotected static final java.lang.String NBSP_TAG
Constructor Detail |
---|
public ScroogeXHTMLBase()
Method Detail |
---|
public static final java.lang.String nameAndVersion()
public final void setAbortConversion(boolean newValue)
newValue
- The new abortConversion valuepublic final void setAddOuterHTML(boolean newValue)
newValue
- The new addOuterHTML valuepublic final void setConvertEmptyParagraphs(boolean newValue)
newValue
- The new convertEmptyParagraphs valuepublic final void setConvertFontBGColor(boolean newValue)
// switch off background color conversion scroogeXHTML1.setConvertBGColor(false); // switch off higlight color conversion scroogeXHTML1.setConvertHLColor(false);
newValue
- The new convertFontBGColor valuesetConvertFontHLColor
ConvertFontHLColor
property. public final void setConvertFontColor(boolean newValue)
newValue
- The new convertFontColor valuepublic final void setConvertFontHLColor(boolean newValue)
// switch off background color conversion scroogeXHTML1.setConvertBGColor(false); // switch off higlight color conversion scroogeXHTML1.setConvertHLColor(false);
newValue
- The new convertFontHLColor valuesetConvertFontBGColor
ConvertFontBGColor
property.public final void setConvertFontName(boolean newValue)
newValue
- The new convertFontName valuepublic final void setConvertFontSize(boolean newValue)
newValue
- The new convertFontSize valuepublic final void setConvertFontStyle(boolean newValue)
newValue
- The new convertFontStyle valuepublic final void setConvertHyperlinks(boolean newValue)
newValue
- The new convertHyperlinks valueHyperlinkListener
public final void setConvertIndent(boolean newValue)
newValue
- The new convertIndent valuepublic final void setConvertSpaces(boolean newValue)
newValue
- The new convertSpaces valuepublic final void setDebugMode(boolean newValue)
newValue
- The new debugMode valuepublic final void setDefaultFontColor(java.lang.String newValue)
newValue
- The new defaultFontColor valuegetDefaultFontColor()
IncludeDefaultFontStyle
is set to true.public final void setDefaultFontName(java.lang.String newValue)
newValue
- The new defaultFontName valuegetDefaultFontName()
IncludeDefaultFontStyle
is set to true.public final void setDefaultFontSize(int newValue)
newValue
- The new defaultFontSize valuegetDefaultFontSize()
IncludeDefaultFontStyle
is set to true.public final void setDocType(java.lang.String s)
scroogeXHTML1.setDocType(W3CDocument.DOCTYPE_HTML_401_TRANSITIONAL);
s
- The new docType valueTranslatorFactory
,
getDocType()
public final void setDocumentTitle(java.lang.String newValue)
newValue
- The new documentTitle valuegetDocumentTitle()
AddOuterHTML
is set to true.public final void setHeadTags(java.lang.String newValue)
newValue
- The new headTags valuegetHeadTags()
AddOuterHTML
is set to true.public final void setIncludeDefaultFontStyle(boolean newValue)
<style type="text/css"> <!-- BODY {font-family:Arial,sans-serif;font-size:14pt;color:#000000; } --> </style>
newValue
- The new includeDefaultFontStyle valueAddOuterHTML
is set to true.public final void setIncludeDocType(boolean newValue)
newValue
- The new includeDocType valueAddOuterHTML
is set to true.public final void setIncludeXMLDeclaration(boolean newValue)
newValue
- The new includeXMLDeclaration valueAddOuterHTML
is set to true.public final void setMetaAuthor(java.lang.String newValue)
newValue
- The new metaAuthor valuegetMetaAuthor()
AddOuterHTML
is set to true.public final void setMetaContentType(java.lang.String newValue)
newValue
- The new metaContentType valuegetMetaContentType()
AddOuterHTML
is set to true.public final void setMetaDate(java.lang.String newValue)
newValue
- The new metaDate valuegetMetaDate()
AddOuterHTML
is set to true.public final void setMetaDateAuto(boolean newValue)
newValue
- The new metaDateAuto valueAddOuterHTML
is set to true.public final void setMetaDescription(java.lang.String newValue)
newValue
- The new metaDescription valueAddOuterHTML
is set to true.public final void setMetaGenerator(boolean newValue)
newValue
- The new metaGenerator valueAddOuterHTML
is set to true.public final void setMetaKeywords(java.lang.String newValue)
newValue
- The new metaKeywords valueAddOuterHTML
is set to true.public final void setMetaTags(java.lang.String newValue)
newValue
- The new metaTags valuegetMetaTags()
AddOuterHTML
is set to true.public final void setReplaceFonts(java.util.Properties newValue)
<i>Example 1:</i> Properties p = new Properties(); p.setProperty("Times", "Times,serif"); scroogeXHTML1.setReplaceFonts(p);Default values:
<i>Example 2:</i> scroogeXHTML1.getReplaceFonts().setProperty("Times", "Times,serif");
Arial=Arial,Helvetica,sans-serif
Courier=Courier,monospace
Symbol=Symbol
Times=Times,serif
newValue
- The new replaceFonts valuegetReplaceFonts()
,
getStyleSheetInclude()
public final void setStyleSheetInclude(java.lang.String newValue)
newValue
- The new styleSheetInclude valuegetStyleSheetInclude()
AddOuterHTML
is set to true.public final void setStyleSheetLink(java.lang.String newValue)
newValue
- The new styleSheetLink valuegetStyleSheetLink()
AddOuterHTML
is set to true.public final void setTagClass(java.lang.String tagName, java.lang.String className)
StyleSheetInclude
and
StyleSheetLink.
tagName
- the tag name, can be "p", "br" or "li"className
- the class namegetTagClass(java.lang.String)
public final void setTagStyle(java.lang.String tagName, java.lang.String tagStyle)
tagName
- the tag name, can be "p", "br" or "li"tagStyle
- The new tagStyle valuegetTagStyle(java.lang.String)
public final void setTranslator(Translator t)
t
- The new translator valuegetTranslator()
protected final void setCurFontCSet(int cs)
cs
- The new curFontCSet valuegetCurFontCSet()
protected final void setCurFontName(java.lang.StringBuffer n)
n
- The new curFontName valuegetCurFontName()
protected final void setCurFontNr(int n)
n
- The new curFontNr valuegetCurFontNr()
protected final void setCurFontType(java.lang.String t)
t
- The new curFontType valuegetCurFontType()
protected final void setDefaultFontNr(int n)
n
- The new defaultFontNr valuegetDefaultFontNr()
protected final void setParser(RTFKeywords p)
p
- The new parser valuegetParser()
protected final void setReader(RTFReader r)
r
- The new reader valuegetReader()
protected final void setWriter(Writer w)
w
- The new writer valuegetWriter()
public final boolean isAbortConversion()
setAbortConversion(boolean)
public final boolean isAddOuterHTML()
setAddOuterHTML(boolean)
public final AfterTextConversionListener[] getAfterTextConversionListeners()
public final BeforeTextConversionListener[] getBeforeTextConversionListeners()
public final boolean isConvertEmptyParagraphs()
setConvertEmptyParagraphs(boolean)
public final boolean isConvertFontBGColor()
setConvertFontBGColor(boolean)
public final boolean isConvertFontColor()
setConvertFontColor(boolean)
public final boolean isConvertFontHLColor()
setConvertFontHLColor(boolean)
public final boolean isConvertFontName()
setConvertFontName(boolean)
public final boolean isConvertFontSize()
setConvertFontSize(boolean)
public final boolean isConvertFontStyle()
setConvertFontStyle(boolean)
public final boolean isConvertHyperlinks()
setConvertHyperlinks(boolean)
public final boolean isConvertIndent()
setConvertIndent(boolean)
public final boolean isConvertSpaces()
setConvertSpaces(boolean)
public final boolean isDebugMode()
setDebugMode(boolean)
public final java.lang.String getDefaultFontColor()
setDefaultFontColor(java.lang.String)
public final java.lang.String getDefaultFontName()
setDefaultFontName(java.lang.String)
public final int getDefaultFontSize()
setDefaultFontSize(int)
public final java.lang.String getDocType()
setDocType(java.lang.String)
public final java.lang.String getDocumentTitle()
setDocumentTitle(java.lang.String)
public final java.lang.String getEmptyParagraph()
public final java.lang.String getHeadTags()
setHeadTags(java.lang.String)
public final HyperlinkListener[] getHyperlinkListeners()
public final boolean isIncludeDefaultFontStyle()
setIncludeDefaultFontStyle(boolean)
public final boolean isIncludeDocType()
setIncludeDocType(boolean)
public final boolean isIncludeXMLDeclaration()
setIncludeXMLDeclaration(boolean)
public final java.lang.String getLinebreakTag()
public final java.lang.String getListItemTag()
public final java.lang.String getMetaAuthor()
setMetaAuthor(java.lang.String)
public final java.lang.String getMetaContentType()
setMetaContentType(java.lang.String)
public final java.lang.String getMetaDate()
setMetaDate(java.lang.String)
public final boolean isMetaDateAuto()
setMetaDateAuto(boolean)
public final java.lang.String isMetaDescription()
setMetaDescription(java.lang.String)
public final boolean isMetaGenerator()
setMetaGenerator(boolean)
public final java.lang.String isMetaKeywords()
setMetaKeywords(java.lang.String)
public final java.lang.String getMetaTags()
setMetaTags(java.lang.String)
public final java.lang.String getParClose()
public final java.lang.String getParOpen()
public final ProgressListener[] getProgressListeners()
public final java.util.Properties getReplaceFonts()
setReplaceFonts(java.util.Properties)
public final java.lang.String getStyleSheetInclude()
setStyleSheetInclude(java.lang.String)
public final java.lang.String getStyleSheetLink()
setStyleSheetLink(java.lang.String)
public final java.lang.String getTagClass(java.lang.String tagName)
tagName
- The name of the HTML element.
setTagClass(java.lang.String, java.lang.String)
public final java.lang.String getTagStyle(java.lang.String tagName)
tagName
- The name of the HTML element.
setTagStyle(java.lang.String, java.lang.String)
public final Translator getTranslator()
setTranslator(de.betabeans.scroogexhtml.translator.Translator)
public final java.lang.String getVersion()
protected final java.util.Vector getAfterTextConversionListenerVector()
protected final java.util.Vector getBeforeTextConversionListenerVector()
protected final int getCurFontCSet()
setCurFontCSet(int)
protected final java.lang.StringBuffer getCurFontName()
setCurFontName(java.lang.StringBuffer)
protected final int getCurFontNr()
setCurFontNr(int)
protected final java.lang.String getCurFontType()
setCurFontType(java.lang.String)
protected final DebugInterface getDebugger()
protected final int getDefaultFontNr()
setDefaultFontNr(int)
protected final java.lang.String getFontSizeUnitCode()
protected final java.lang.String getDefaultFontStyleDefinition()
protected final java.util.Vector getHyperlinkListenerVector()
protected final RTFKeywords getParser()
setParser(de.betabeans.scroogexhtml.rtf.RTFKeywords)
protected final RTFReader getReader()
setReader(de.betabeans.scroogexhtml.converter.RTFReader)
protected final java.lang.String getTabString()
protected final java.lang.String getTagClassParam(java.lang.String tagName)
tagName
- The name of the HTML element.
protected final java.lang.String getTagStyleParam(java.lang.String tagName)
tagName
- The name of the HTML element.
protected final Writer getWriter()
setWriter(de.betabeans.scroogexhtml.converter.Writer)
public final void addAfterTextConversionListener(AfterTextConversionListener listener)
listener
- The listener to be added to the AfterTextConversionListener
attributeremoveAfterTextConversionListener(de.betabeans.scroogexhtml.events.AfterTextConversionListener)
public final void addBeforeTextConversionListener(BeforeTextConversionListener listener)
scroogeXHTML1.addBeforeTextConversionListener( new de.betabeans.scroogexhtml.events.BeforeTextConversionListener() { public void beforeTextConversion(BeforeTextConversionEvent e) { scroogeXHTML1_beforeTextConversion(e); } }); ... void scroogeXHTML1_beforeTextConversion(BeforeTextConversionEvent e) { if (e.getTextElement().getText().startsWith("<") && e.getTextElement().getText().endsWith(">")) { e.getTextElement().setText("<a href=\"http://www.betabeans.de\">BetaBeans</a>"); e.getTextElement().setEncoded(true); } }
listener
- The listener to be added to the BeforeTextConversionListener
attributeremoveBeforeTextConversionListener(de.betabeans.scroogexhtml.events.BeforeTextConversionListener)
public final void addHyperlinkListener(HyperlinkListener listener)
listener
- The feature to be added to the HyperlinkListener attributeremoveHyperlinkListener(de.betabeans.scroogexhtml.events.HyperlinkListener)
public final void addProgressListener(ProgressListener listener)
listener
- The feature to be added to the ProgressListener attributeremoveProgressListener(de.betabeans.scroogexhtml.events.ProgressListener)
public final void removeAfterTextConversionListener(AfterTextConversionListener listener)
listener
- The conversion listener.addAfterTextConversionListener(de.betabeans.scroogexhtml.events.AfterTextConversionListener)
public final void removeBeforeTextConversionListener(BeforeTextConversionListener listener)
listener
- The conversion listener.addBeforeTextConversionListener(de.betabeans.scroogexhtml.events.BeforeTextConversionListener)
public final void removeHyperlinkListener(HyperlinkListener listener)
listener
- The hyperlink listener.addHyperlinkListener(de.betabeans.scroogexhtml.events.HyperlinkListener)
public final void removeProgressListener(ProgressListener listener)
listener
- The progress listener.addProgressListener(de.betabeans.scroogexhtml.events.ProgressListener)
public abstract java.lang.String process(FormattedText textElement)
textElement
- The text element.
public final void debug(java.lang.String color, java.lang.String debugText)
color
- the debug string colordebugText
- The message to be written.public final void debug(java.lang.String color, char debugChar)
color
- The debug string color.debugChar
- The character to be written.protected final boolean hasProgressListeners()
protected final void notifyProgress()
protected abstract void replaceHyperlink(FormattedText textElement)
textElement
- The text element to be processed.public final void setDefaultLanguage(java.lang.String newValue)
newValue
- the default language code.getDefaultLanguage()
public final java.lang.String getDefaultLanguage()
setDefaultLanguage(java.lang.String)
public final boolean isConvertLanguage()
public final void setConvertLanguage(boolean newValue)
newValue
- set the convertLanguage propertypublic final byte getFontSizeUnit()
setFontSizeUnit(byte)
public final void setFontSizeUnit(byte newValue)
newValue
- the new property valuegetFontSizeUnit()
public final Formatter getFormatter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |