|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.rtf.parser.destinations.RtfDestination
public abstract class RtfDestination
RtfDestination
is the base class for destinations according
to the RTF Specification. All destinations must extend from this class.
Field Summary | |
---|---|
protected RtfCtrlWordData |
lastCtrlWord
The last control word handled by this destination |
protected boolean |
modified
Is data in destination modified? |
protected RtfParser |
rtfParser
Parser object |
Constructor Summary | |
---|---|
RtfDestination()
Constructor. |
|
RtfDestination(RtfParser parser)
Constructor |
Method Summary | |
---|---|
boolean |
addListener(RtfDestinationListener listener)
Adds a RtfDestinationListener to the RtfDestinationMgr . |
protected int |
afterCharacter(int ch)
|
protected RtfCtrlWordData |
afterCtrlWord(RtfCtrlWordData ctrlWordData)
|
protected int |
beforeCharacter(int ch)
|
protected RtfCtrlWordData |
beforeCtrlWord(RtfCtrlWordData ctrlWordData)
|
abstract boolean |
closeDestination()
Clean up when destination is closed. |
int |
getNewTokeniserState()
|
abstract boolean |
handleCharacter(int ch)
Handle text for this destination |
abstract boolean |
handleCloseGroup()
Clean up when group is closed. |
abstract boolean |
handleControlWord(RtfCtrlWordData ctrlWordData)
Handle control word for this destination |
abstract boolean |
handleOpenGroup()
Setup when group is opened. |
abstract boolean |
handleOpeningSubGroup()
Handle a new subgroup contained within this group |
boolean |
isModified()
Method to indicate if data in this destination has changed. |
protected int |
onCharacter(int ch)
|
protected boolean |
onCloseGroup()
|
protected RtfCtrlWordData |
onCtrlWord(RtfCtrlWordData ctrlWordData)
|
protected boolean |
onOpenGroup()
|
boolean |
removeListener(RtfDestinationListener listener)
Removes a RtfDestinationListener from the RtfDestinationMgr . |
void |
setParser(RtfParser parser)
Set the parser to use with the RtfDestination object. |
abstract void |
setToDefaults()
Method to set this object to the default values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RtfParser rtfParser
protected boolean modified
protected RtfCtrlWordData lastCtrlWord
Constructor Detail |
---|
public RtfDestination()
public RtfDestination(RtfParser parser)
parser
- RtfParser
object.Method Detail |
---|
public void setParser(RtfParser parser)
parser
- The RtfParser object.public abstract boolean closeDestination()
public abstract boolean handleOpeningSubGroup()
public abstract boolean handleCloseGroup()
public abstract boolean handleOpenGroup()
public abstract boolean handleCharacter(int ch)
public abstract boolean handleControlWord(RtfCtrlWordData ctrlWordData)
ctrlWordData
- The control word and parameter information object
public abstract void setToDefaults()
public boolean isModified()
public boolean addListener(RtfDestinationListener listener)
RtfDestinationListener
to the RtfDestinationMgr
.
listener
- the new RtfDestinationListener.public boolean removeListener(RtfDestinationListener listener)
RtfDestinationListener
from the RtfDestinationMgr
.
listener
- the RtfCtrlWordListener that has to be removed.protected RtfCtrlWordData beforeCtrlWord(RtfCtrlWordData ctrlWordData)
protected RtfCtrlWordData onCtrlWord(RtfCtrlWordData ctrlWordData)
protected RtfCtrlWordData afterCtrlWord(RtfCtrlWordData ctrlWordData)
protected int beforeCharacter(int ch)
protected int onCharacter(int ch)
protected int afterCharacter(int ch)
protected boolean onOpenGroup()
protected boolean onCloseGroup()
public int getNewTokeniserState()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |