Class RtfProperty
java.lang.Object
com.lowagie.text.rtf.parser.properties.RtfProperty
RtfProperty handles document, paragraph, etc. property values- Since:
- 2.0.8
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intJustify centerstatic final intJustify fullstatic final intJustify leftstatic final intJustify rightprivate final List<RtfPropertyListener>TheRtfPropertyListener.private booleanprivate booleanprivate booleanprivate booleanstatic final intstatic final intstatic final StringLandscape orientationstatic final StringPortrait orientationstatic final Stringstatic final Stringstatic final intpossible border setttingstatic final Stringstatic final intpossible border setttingstatic final intpossible border setttingstatic final intpossible border setttingstatic final intpossible border setttingstatic final intpossible border setttingstatic final intpossible border setttingstatic final intpossible border setttingstatic final intpossible border setttingstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intDecimal number formatstatic final intLowercase Letterstatic final intUppercase Letterstatic final intLowercase Roman Numeralstatic final intUppercase Roman NumeralProperties for this RtfProperty objectstatic final intSection Break Column breakstatic final intSection Break Even page breakstatic final intSection Break Nonestatic final intSection Break Odd page breakstatic final intSection Break Page breakstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRtfPropertyListener(RtfPropertyListener listener) Adds aRtfPropertyListenerto theRtfProperty.private booleanaddToProperty(String propertyName, int propertyValue) Add the value of the property identified by the parameter.private booleanaddToProperty(String propertyName, long propertyValue) Add the value of the property identified by the parameter.voidafterChange(String propertyName) voidbeforeChange(String propertyName) getProperties(String propertyGroup) Get a group of properties.getProperty(String propertyName) Get the value of the property identified by the parameter.booleanbooleanbooleanbooleanbooleanprivate booleanremoveProperty(String propertyName) voidremoveRtfPropertyListener(RtfPropertyListener listener) Removes aRtfPropertyListenerfrom theRtfProperty.voidsetModified(String propertyName, boolean modified) voidsetModifiedCharacter(boolean modifiedCharacter) voidsetModifiedDocument(boolean modifiedDocument) voidsetModifiedParagraph(boolean modifiedParagraph) voidsetModifiedSection(boolean modifiedSection) booleansetProperty(RtfCtrlWordData ctrlWordData) Set the value of the property identified by the parameter.private booleansetProperty(String propertyName, int propertyValueNew) Set the value of the property identified by the parameter.private booleansetProperty(String propertyName, long propertyValueNew) Set the value of the property identified by the parameter.private booleansetProperty(String propertyName, Object propertyValueNew) Set the value of the property identified by the parameter.voidSet all property objects to default values.voidsetToDefault(String propertyGroup) Set individual property group to default values.booleantoggleProperty(RtfCtrlWordData ctrlWordData) Toggle the value of the property identified by theRtfCtrlWordData.specialHandlerparameter.
-
Field Details
-
OFF
public static final int OFF- See Also:
-
ON
public static final int ON- See Also:
-
COLOR
- See Also:
-
CHARACTER
- See Also:
-
PARAGRAPH
- See Also:
-
SECTION
- See Also:
-
DOCUMENT
- See Also:
-
COLOR_FG
- See Also:
-
COLOR_BG
- See Also:
-
CHARACTER_BOLD
- See Also:
-
CHARACTER_UNDERLINE
- See Also:
-
CHARACTER_ITALIC
- See Also:
-
CHARACTER_SIZE
- See Also:
-
CHARACTER_FONT
- See Also:
-
CHARACTER_STYLE
- See Also:
-
JUSTIFY_LEFT
public static final int JUSTIFY_LEFTJustify left- See Also:
-
JUSTIFY_RIGHT
public static final int JUSTIFY_RIGHTJustify right- See Also:
-
JUSTIFY_CENTER
public static final int JUSTIFY_CENTERJustify center- See Also:
-
JUSTIFY_FULL
public static final int JUSTIFY_FULLJustify full- See Also:
-
PARAGRAPH_INDENT_LEFT
- See Also:
-
PARAGRAPH_INDENT_RIGHT
- See Also:
-
PARAGRAPH_INDENT_FIRST_LINE
- See Also:
-
PARAGRAPH_JUSTIFICATION
- See Also:
-
PARAGRAPH_BORDER
- See Also:
-
PARAGRAPH_BORDER_CELL
- See Also:
-
PARAGRAPH_BORDER_NIL
public static final int PARAGRAPH_BORDER_NILpossible border settting- See Also:
-
PARAGRAPH_BORDER_BOTTOM
public static final int PARAGRAPH_BORDER_BOTTOMpossible border settting- See Also:
-
PARAGRAPH_BORDER_TOP
public static final int PARAGRAPH_BORDER_TOPpossible border settting- See Also:
-
PARAGRAPH_BORDER_LEFT
public static final int PARAGRAPH_BORDER_LEFTpossible border settting- See Also:
-
PARAGRAPH_BORDER_RIGHT
public static final int PARAGRAPH_BORDER_RIGHTpossible border settting- See Also:
-
PARAGRAPH_BORDER_DIAGONAL_UL_LR
public static final int PARAGRAPH_BORDER_DIAGONAL_UL_LRpossible border settting- See Also:
-
PARAGRAPH_BORDER_DIAGONAL_UR_LL
public static final int PARAGRAPH_BORDER_DIAGONAL_UR_LLpossible border settting- See Also:
-
PARAGRAPH_BORDER_TABLE_HORIZONTAL
public static final int PARAGRAPH_BORDER_TABLE_HORIZONTALpossible border settting- See Also:
-
PARAGRAPH_BORDER_TABLE_VERTICAL
public static final int PARAGRAPH_BORDER_TABLE_VERTICALpossible border settting- See Also:
-
PGN_DECIMAL
public static final int PGN_DECIMALDecimal number format- See Also:
-
PGN_ROMAN_NUMERAL_UPPERCASE
public static final int PGN_ROMAN_NUMERAL_UPPERCASEUppercase Roman Numeral- See Also:
-
PGN_ROMAN_NUMERAL_LOWERCASE
public static final int PGN_ROMAN_NUMERAL_LOWERCASELowercase Roman Numeral- See Also:
-
PGN_LETTER_UPPERCASE
public static final int PGN_LETTER_UPPERCASEUppercase Letter- See Also:
-
PGN_LETTER_LOWERCASE
public static final int PGN_LETTER_LOWERCASELowercase Letter- See Also:
-
SBK_NONE
public static final int SBK_NONESection Break None- See Also:
-
SBK_COLUMN
public static final int SBK_COLUMNSection Break Column break- See Also:
-
SBK_EVEN
public static final int SBK_EVENSection Break Even page break- See Also:
-
SBK_ODD
public static final int SBK_ODDSection Break Odd page break- See Also:
-
SBK_PAGE
public static final int SBK_PAGESection Break Page break- See Also:
-
SECTION_NUMBER_OF_COLUMNS
- See Also:
-
SECTION_BREAK_TYPE
- See Also:
-
SECTION_PAGE_NUMBER_POSITION_X
- See Also:
-
SECTION_PAGE_NUMBER_POSITION_Y
- See Also:
-
SECTION_PAGE_NUMBER_FORMAT
- See Also:
-
PAGE_PORTRAIT
Portrait orientation- See Also:
-
PAGE_LANDSCAPE
Landscape orientation- See Also:
-
DOCUMENT_PAGE_WIDTH_TWIPS
- See Also:
-
DOCUMENT_PAGE_HEIGHT_TWIPS
- See Also:
-
DOCUMENT_MARGIN_LEFT_TWIPS
- See Also:
-
DOCUMENT_MARGIN_TOP_TWIPS
- See Also:
-
DOCUMENT_MARGIN_RIGHT_TWIPS
- See Also:
-
DOCUMENT_MARGIN_BOTTOM_TWIPS
- See Also:
-
DOCUMENT_PAGE_NUMBER_START
- See Also:
-
DOCUMENT_ENABLE_FACING_PAGES
- See Also:
-
DOCUMENT_PAGE_ORIENTATION
- See Also:
-
DOCUMENT_DEFAULT_FONT_NUMER
- See Also:
-
properties
Properties for this RtfProperty object -
modifiedCharacter
private boolean modifiedCharacter -
modifiedParagraph
private boolean modifiedParagraph -
modifiedSection
private boolean modifiedSection -
modifiedDocument
private boolean modifiedDocument -
listeners
TheRtfPropertyListener.
-
-
Constructor Details
-
RtfProperty
public RtfProperty()
-
-
Method Details
-
setToDefault
public void setToDefault()Set all property objects to default values.- Since:
- 2.0.8
-
setToDefault
Set individual property group to default values.- Parameters:
propertyGroup-Stringname of the property group to set to default.- Since:
- 2.0.8
-
toggleProperty
Toggle the value of the property identified by theRtfCtrlWordData.specialHandlerparameter. Toggle values are assumed to be integer values per the RTF spec with a value of 0=off or 1=on.- Parameters:
ctrlWordData- The property name to set- Returns:
truefor handled orfalseifpropertyNameisnullor blank
-
setProperty
Set the value of the property identified by the parameter.- Parameters:
ctrlWordData- The controlword with the name to set- Returns:
truefor handled orfalseifpropertyNameorpropertyValueisnull
-
setProperty
Set the value of the property identified by the parameter.- Parameters:
propertyName- The property name to setpropertyValueNew- The object to set the property value to- Returns:
truefor handled orfalseifpropertyNameorpropertyValueisnull
-
setProperty
Set the value of the property identified by the parameter.- Parameters:
propertyName- The property name to setpropertyValueNew- The object to set the property value to- Returns:
truefor handled orfalseifpropertyNameisnull
-
addToProperty
Add the value of the property identified by the parameter.- Parameters:
propertyName- The property name to setpropertyValue- The object to set the property value to- Returns:
truefor handled orfalseifpropertyNameisnull
-
setProperty
Set the value of the property identified by the parameter.- Parameters:
propertyName- The property name to setpropertyValueNew- The object to set the property value to- Returns:
truefor handled orfalseifpropertyNameisnull
-
addToProperty
Add the value of the property identified by the parameter.- Parameters:
propertyName- The property name to setpropertyValue- The object to set the property value to- Returns:
truefor handled orfalseifpropertyNameisnull
-
removeProperty
-
getProperty
Get the value of the property identified by the parameter.- Parameters:
propertyName- String containing the property name to get- Returns:
- Property Object requested or null if not found in map.
-
getProperties
Get a group of properties.- Parameters:
propertyGroup- The group name to obtain.- Returns:
- Properties object with requested values.
-
isModified
public boolean isModified()- Returns:
- the modified
-
setModified
- Parameters:
propertyName- the propertyName that is modifiedmodified- the modified to set
-
isModifiedCharacter
public boolean isModifiedCharacter()- Returns:
- the modifiedCharacter
-
setModifiedCharacter
public void setModifiedCharacter(boolean modifiedCharacter) - Parameters:
modifiedCharacter- the modifiedCharacter to set
-
isModifiedParagraph
public boolean isModifiedParagraph()- Returns:
- the modifiedParagraph
-
setModifiedParagraph
public void setModifiedParagraph(boolean modifiedParagraph) - Parameters:
modifiedParagraph- the modifiedParagraph to set
-
isModifiedSection
public boolean isModifiedSection()- Returns:
- the modifiedSection
-
setModifiedSection
public void setModifiedSection(boolean modifiedSection) - Parameters:
modifiedSection- the modifiedSection to set
-
isModifiedDocument
public boolean isModifiedDocument()- Returns:
- the modifiedDocument
-
setModifiedDocument
public void setModifiedDocument(boolean modifiedDocument) - Parameters:
modifiedDocument- the modifiedDocument to set
-
addRtfPropertyListener
Adds aRtfPropertyListenerto theRtfProperty.- Parameters:
listener- the new RtfPropertyListener.
-
removeRtfPropertyListener
Removes aRtfPropertyListenerfrom theRtfProperty.- Parameters:
listener- the new RtfPropertyListener.
-
beforeChange
-
afterChange
-