|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.text.rtf.parser.properties.RtfProperty
public class RtfProperty
RtfProperty
handles document, paragraph, etc. property values
Field Summary | |
---|---|
static java.lang.String |
CHARACTER
|
static java.lang.String |
CHARACTER_BOLD
|
static java.lang.String |
CHARACTER_FONT
|
static java.lang.String |
CHARACTER_ITALIC
|
static java.lang.String |
CHARACTER_SIZE
|
static java.lang.String |
CHARACTER_STYLE
|
static java.lang.String |
CHARACTER_UNDERLINE
|
static java.lang.String |
COLOR
|
static java.lang.String |
COLOR_BG
|
static java.lang.String |
COLOR_FG
|
static java.lang.String |
DOCUMENT
|
static java.lang.String |
DOCUMENT_DEFAULT_FONT_NUMER
|
static java.lang.String |
DOCUMENT_ENABLE_FACING_PAGES
|
static java.lang.String |
DOCUMENT_MARGIN_BOTTOM_TWIPS
|
static java.lang.String |
DOCUMENT_MARGIN_LEFT_TWIPS
|
static java.lang.String |
DOCUMENT_MARGIN_RIGHT_TWIPS
|
static java.lang.String |
DOCUMENT_MARGIN_TOP_TWIPS
|
static java.lang.String |
DOCUMENT_PAGE_HEIGHT_TWIPS
|
static java.lang.String |
DOCUMENT_PAGE_NUMBER_START
|
static java.lang.String |
DOCUMENT_PAGE_ORIENTATION
|
static java.lang.String |
DOCUMENT_PAGE_WIDTH_TWIPS
|
static int |
JUSTIFY_CENTER
Justify center |
static int |
JUSTIFY_FULL
Justify full |
static int |
JUSTIFY_LEFT
Justify left |
static int |
JUSTIFY_RIGHT
Justify right |
static int |
OFF
|
static int |
ON
|
static java.lang.String |
PAGE_LANDSCAPE
Landscape orientation |
static java.lang.String |
PAGE_PORTRAIT
Portrait orientation |
static java.lang.String |
PARAGRAPH
|
static java.lang.String |
PARAGRAPH_BORDER
|
static int |
PARAGRAPH_BORDER_BOTTOM
possible border settting |
static java.lang.String |
PARAGRAPH_BORDER_CELL
|
static int |
PARAGRAPH_BORDER_DIAGONAL_UL_LR
possible border settting |
static int |
PARAGRAPH_BORDER_DIAGONAL_UR_LL
possible border settting |
static int |
PARAGRAPH_BORDER_LEFT
possible border settting |
static int |
PARAGRAPH_BORDER_NIL
possible border settting |
static int |
PARAGRAPH_BORDER_RIGHT
possible border settting |
static int |
PARAGRAPH_BORDER_TABLE_HORIZONTAL
possible border settting |
static int |
PARAGRAPH_BORDER_TABLE_VERTICAL
possible border settting |
static int |
PARAGRAPH_BORDER_TOP
possible border settting |
static java.lang.String |
PARAGRAPH_INDENT_FIRST_LINE
|
static java.lang.String |
PARAGRAPH_INDENT_LEFT
|
static java.lang.String |
PARAGRAPH_INDENT_RIGHT
|
static java.lang.String |
PARAGRAPH_JUSTIFICATION
|
static int |
PGN_DECIMAL
Decimal number format |
static int |
PGN_LETTER_LOWERCASE
Lowercase Letter |
static int |
PGN_LETTER_UPPERCASE
Uppercase Letter |
static int |
PGN_ROMAN_NUMERAL_LOWERCASE
Lowercase Roman Numeral |
static int |
PGN_ROMAN_NUMERAL_UPPERCASE
Uppercase Roman Numeral |
protected java.util.HashMap |
properties
Properties for this RtfProperty object |
static int |
SBK_COLUMN
Section Break Column break |
static int |
SBK_EVEN
Section Break Even page break |
static int |
SBK_NONE
Section Break None |
static int |
SBK_ODD
Section Break Odd page break |
static int |
SBK_PAGE
Section Break Page break |
static java.lang.String |
SECTION
|
static java.lang.String |
SECTION_BREAK_TYPE
|
static java.lang.String |
SECTION_NUMBER_OF_COLUMNS
|
static java.lang.String |
SECTION_PAGE_NUMBER_FORMAT
|
static java.lang.String |
SECTION_PAGE_NUMBER_POSITION_X
|
static java.lang.String |
SECTION_PAGE_NUMBER_POSITION_Y
|
Constructor Summary | |
---|---|
RtfProperty()
|
Method Summary | |
---|---|
void |
addRtfPropertyListener(RtfPropertyListener listener)
Adds a RtfPropertyListener to the RtfProperty . |
void |
afterChange(java.lang.String propertyName)
|
void |
beforeChange(java.lang.String propertyName)
|
java.util.HashMap |
getProperties(java.lang.String propertyGroup)
Get a group of properties. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Get the value of the property identified by the parameter. |
boolean |
isModified()
|
boolean |
isModifiedCharacter()
|
boolean |
isModifiedDocument()
|
boolean |
isModifiedParagraph()
|
boolean |
isModifiedSection()
|
void |
removeRtfPropertyListener(RtfPropertyListener listener)
Removes a RtfPropertyListener from the RtfProperty . |
void |
setModified(java.lang.String propertyName,
boolean modified)
|
void |
setModifiedCharacter(boolean modifiedCharacter)
|
void |
setModifiedDocument(boolean modifiedDocument)
|
void |
setModifiedParagraph(boolean modifiedParagraph)
|
void |
setModifiedSection(boolean modifiedSection)
|
boolean |
setProperty(RtfCtrlWordData ctrlWordData)
Set the value of the property identified by the parameter. |
void |
setToDefault()
Set all property objects to default values. |
void |
setToDefault(java.lang.String propertyGroup)
Set individual property group to default values. |
boolean |
toggleProperty(RtfCtrlWordData ctrlWordData)
Toggle the value of the property identified by the RtfCtrlWordData.specialHandler parameter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OFF
public static final int ON
public static final java.lang.String COLOR
public static final java.lang.String CHARACTER
public static final java.lang.String PARAGRAPH
public static final java.lang.String SECTION
public static final java.lang.String DOCUMENT
public static final java.lang.String COLOR_FG
public static final java.lang.String COLOR_BG
public static final java.lang.String CHARACTER_BOLD
public static final java.lang.String CHARACTER_UNDERLINE
public static final java.lang.String CHARACTER_ITALIC
public static final java.lang.String CHARACTER_SIZE
public static final java.lang.String CHARACTER_FONT
public static final java.lang.String CHARACTER_STYLE
public static final int JUSTIFY_LEFT
public static final int JUSTIFY_RIGHT
public static final int JUSTIFY_CENTER
public static final int JUSTIFY_FULL
public static final java.lang.String PARAGRAPH_INDENT_LEFT
public static final java.lang.String PARAGRAPH_INDENT_RIGHT
public static final java.lang.String PARAGRAPH_INDENT_FIRST_LINE
public static final java.lang.String PARAGRAPH_JUSTIFICATION
public static final java.lang.String PARAGRAPH_BORDER
public static final java.lang.String PARAGRAPH_BORDER_CELL
public static final int PARAGRAPH_BORDER_NIL
public static final int PARAGRAPH_BORDER_BOTTOM
public static final int PARAGRAPH_BORDER_TOP
public static final int PARAGRAPH_BORDER_LEFT
public static final int PARAGRAPH_BORDER_RIGHT
public static final int PARAGRAPH_BORDER_DIAGONAL_UL_LR
public static final int PARAGRAPH_BORDER_DIAGONAL_UR_LL
public static final int PARAGRAPH_BORDER_TABLE_HORIZONTAL
public static final int PARAGRAPH_BORDER_TABLE_VERTICAL
public static final int PGN_DECIMAL
public static final int PGN_ROMAN_NUMERAL_UPPERCASE
public static final int PGN_ROMAN_NUMERAL_LOWERCASE
public static final int PGN_LETTER_UPPERCASE
public static final int PGN_LETTER_LOWERCASE
public static final int SBK_NONE
public static final int SBK_COLUMN
public static final int SBK_EVEN
public static final int SBK_ODD
public static final int SBK_PAGE
public static final java.lang.String SECTION_NUMBER_OF_COLUMNS
public static final java.lang.String SECTION_BREAK_TYPE
public static final java.lang.String SECTION_PAGE_NUMBER_POSITION_X
public static final java.lang.String SECTION_PAGE_NUMBER_POSITION_Y
public static final java.lang.String SECTION_PAGE_NUMBER_FORMAT
public static final java.lang.String PAGE_PORTRAIT
public static final java.lang.String PAGE_LANDSCAPE
public static final java.lang.String DOCUMENT_PAGE_WIDTH_TWIPS
public static final java.lang.String DOCUMENT_PAGE_HEIGHT_TWIPS
public static final java.lang.String DOCUMENT_MARGIN_LEFT_TWIPS
public static final java.lang.String DOCUMENT_MARGIN_TOP_TWIPS
public static final java.lang.String DOCUMENT_MARGIN_RIGHT_TWIPS
public static final java.lang.String DOCUMENT_MARGIN_BOTTOM_TWIPS
public static final java.lang.String DOCUMENT_PAGE_NUMBER_START
public static final java.lang.String DOCUMENT_ENABLE_FACING_PAGES
public static final java.lang.String DOCUMENT_PAGE_ORIENTATION
public static final java.lang.String DOCUMENT_DEFAULT_FONT_NUMER
protected java.util.HashMap properties
Constructor Detail |
---|
public RtfProperty()
Method Detail |
---|
public void setToDefault()
public void setToDefault(java.lang.String propertyGroup)
propertyGroup
- String
name of the property group to set to default.public boolean toggleProperty(RtfCtrlWordData ctrlWordData)
RtfCtrlWordData.specialHandler
parameter.
Toggle values are assumed to be integer values per the RTF spec with a value of 0=off or 1=on.
ctrlWordData
- The property name to set
true
for handled or false
if propertyName
is null
or blankpublic boolean setProperty(RtfCtrlWordData ctrlWordData)
ctrlWordData
- The controlword with the name to set
true
for handled or false
if propertyName
or propertyValue
is null
public java.lang.Object getProperty(java.lang.String propertyName)
propertyName
- String containing the property name to get
public java.util.HashMap getProperties(java.lang.String propertyGroup)
propertyGroup
- The group name to obtain.
public boolean isModified()
public void setModified(java.lang.String propertyName, boolean modified)
propertyName
- the propertyName that is modifiedmodified
- the modified to setpublic boolean isModifiedCharacter()
public void setModifiedCharacter(boolean modifiedCharacter)
modifiedCharacter
- the modifiedCharacter to setpublic boolean isModifiedParagraph()
public void setModifiedParagraph(boolean modifiedParagraph)
modifiedParagraph
- the modifiedParagraph to setpublic boolean isModifiedSection()
public void setModifiedSection(boolean modifiedSection)
modifiedSection
- the modifiedSection to setpublic boolean isModifiedDocument()
public void setModifiedDocument(boolean modifiedDocument)
modifiedDocument
- the modifiedDocument to setpublic void addRtfPropertyListener(RtfPropertyListener listener)
RtfPropertyListener
to the RtfProperty
.
listener
- the new RtfPropertyListener.public void removeRtfPropertyListener(RtfPropertyListener listener)
RtfPropertyListener
from the RtfProperty
.
listener
- the new RtfPropertyListener.public void beforeChange(java.lang.String propertyName)
public void afterChange(java.lang.String propertyName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |