org.jfor.jfor.rtflib.rtfdoc
Class ParagraphKeeptogetherContext

java.lang.Object
  extended by org.jfor.jfor.rtflib.rtfdoc.ParagraphKeeptogetherContext

public class ParagraphKeeptogetherContext
extends java.lang.Object

This context is used to manage the "keepn" RTF attribute Used by ParagraphBuilder and JforCmd


Constructor Summary
ParagraphKeeptogetherContext()
           
 
Method Summary
static ParagraphKeeptogetherContext getInstance()
          Singelton.
static int getKeepTogetherOpenValue()
          Return the level of current "keep whith next" paragraph
static void KeepTogetherClose()
          Close a "keep whith next" paragraph
static void KeepTogetherOpen()
          Open a new "keep whith next" paragraph
static boolean paragraphResetProperties()
          Determine if the next paragraph must reset the properites
static void setParagraphResetPropertiesUsed()
          Reset the flag if the paragraph properties have been resested
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParagraphKeeptogetherContext

ParagraphKeeptogetherContext()
Method Detail

getInstance

public static ParagraphKeeptogetherContext getInstance()
Singelton.

Returns:
The instance of ParagraphKeeptogetherContext

getKeepTogetherOpenValue

public static int getKeepTogetherOpenValue()
Return the level of current "keep whith next" paragraph


KeepTogetherOpen

public static void KeepTogetherOpen()
Open a new "keep whith next" paragraph


KeepTogetherClose

public static void KeepTogetherClose()
Close a "keep whith next" paragraph


paragraphResetProperties

public static boolean paragraphResetProperties()
Determine if the next paragraph must reset the properites


setParagraphResetPropertiesUsed

public static void setParagraphResetPropertiesUsed()
Reset the flag if the paragraph properties have been resested