Class RtfDestinationMgr
- java.lang.Object
-
- com.lowagie.text.rtf.parser.destinations.RtfDestinationMgr
-
public final class RtfDestinationMgr extends java.lang.ObjectRtfDestinationMgrmanages destination objects for the parser- Since:
- 2.0.8
- Author:
- Howard Shank (hgshank@yahoo.com)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDESTINATION_DOCUMENTString representation of document destination.static java.lang.StringDESTINATION_NULLString representation of null destination.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanaddDestination(java.lang.String destination, java.lang.Object[] args)static booleanaddListener(java.lang.String destination, RtfDestinationListener listener)Adds aRtfDestinationListenerto the appropriateRtfDestination.static RtfDestinationgetDestination(java.lang.String destination)static RtfDestinationMgrgetInstance()static RtfDestinationMgrgetInstance(RtfParser parser)static booleanremoveListener(java.lang.String destination, RtfDestinationListener listener)Removes aRtfDestinationListenerfrom the appropriateRtfDestination.static voidsetParser(RtfParser parser)
-
-
-
Field Detail
-
DESTINATION_NULL
public static final java.lang.String DESTINATION_NULL
String representation of null destination.- See Also:
- Constant Field Values
-
DESTINATION_DOCUMENT
public static final java.lang.String DESTINATION_DOCUMENT
String representation of document destination.- See Also:
- Constant Field Values
-
-
Method Detail
-
setParser
public static void setParser(RtfParser parser)
-
getInstance
public static RtfDestinationMgr getInstance()
-
getInstance
public static RtfDestinationMgr getInstance(RtfParser parser)
-
getDestination
public static RtfDestination getDestination(java.lang.String destination)
-
addDestination
public static boolean addDestination(java.lang.String destination, java.lang.Object[] args)
-
addListener
public static boolean addListener(java.lang.String destination, RtfDestinationListener listener)Adds aRtfDestinationListenerto the appropriateRtfDestination.- Parameters:
destination- the destination string for the listenerlistener- the new RtfDestinationListener.
-
removeListener
public static boolean removeListener(java.lang.String destination, RtfDestinationListener listener)Removes aRtfDestinationListenerfrom the appropriateRtfDestination.- Parameters:
destination- the destination string for the listenerlistener- the RtfCtrlWordListener that has to be removed.
-
-