public final class RtfDestinationDocument extends RtfDestination implements RtfPropertyListener
RtfDestinationDocument handles data destined for the document destinationlastCtrlWord, modified, rtfParser| Constructor and Description |
|---|
RtfDestinationDocument() |
RtfDestinationDocument(RtfParser parser)
Constructs a new
RtfDestinationDocument using
the parameters to initialize the object. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertyChange(String propertyName) |
void |
beforePropertyChange(String propertyName) |
boolean |
closeDestination()
Clean up when destination is closed.
|
protected void |
finalize() |
boolean |
handleCloseGroup()
Clean up when group is closed.
|
boolean |
handleControlWord(RtfCtrlWordData ctrlWordData)
Handle control word for this destination
|
boolean |
handleCharacter(int ch)
Handle text for this destination
|
boolean |
handleOpenGroup()
Setup when group is opened.
|
boolean |
handleOpeningSubGroup()
Handle a new subgroup contained within this group
|
void |
setParser(RtfParser parser)
Set the parser to use with the RtfDestination object.
|
void |
setToDefaults()
Method to set this object to the default values.
|
addListener, afterCtrlWord, afterCharacter, beforeCtrlWord, beforeCharacter, getNewTokeniserState, isModified, onCloseGroup, onCtrlWord, onCharacter, onOpenGroup, removeListenerpublic RtfDestinationDocument()
public RtfDestinationDocument(RtfParser parser)
RtfDestinationDocument using
the parameters to initialize the object.parser - an RtfParser.protected void finalize()
throws Throwable
public void setParser(RtfParser parser)
RtfDestinationsetParser in class RtfDestinationparser - The RtfParser object.public boolean closeDestination()
RtfDestinationcloseDestination in class RtfDestinationpublic boolean handleOpenGroup()
RtfDestinationhandleOpenGroup in class RtfDestinationpublic boolean handleOpeningSubGroup()
RtfDestinationhandleOpeningSubGroup in class RtfDestinationpublic boolean handleCloseGroup()
RtfDestinationhandleCloseGroup in class RtfDestinationpublic boolean handleCharacter(int ch)
RtfDestinationhandleCharacter in class RtfDestinationpublic boolean handleControlWord(RtfCtrlWordData ctrlWordData)
RtfDestinationhandleControlWord in class RtfDestinationctrlWordData - The control word and parameter information objectpublic void setToDefaults()
RtfDestinationsetToDefaults in class RtfDestinationpublic void afterPropertyChange(String propertyName)
afterPropertyChange in interface RtfPropertyListenerpublic void beforePropertyChange(String propertyName)
beforePropertyChange in interface RtfPropertyListenerCopyright © 2015. All rights reserved.