public class RichTextSection
extends java.lang.Object
Constructor and Description |
---|
RichTextSection()
creates a default text rich text section
|
RichTextSection(RichTextSection template)
creates a rich text section as a template with the same type as the given
template
|
RichTextSection(java.lang.String text)
creates a default text rich text section with given text
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getSpecialcolor() |
java.lang.String |
getText() |
boolean |
isBold() |
boolean |
isBullet() |
boolean |
isItalic() |
boolean |
isNormalText() |
boolean |
isSectiontitle() |
void |
setBold()
sets the section to bold
|
void |
setBullet()
sets the text as bullet
|
void |
setItalic()
sets the section to italic
|
void |
setSectiontitle()
sets the text as title
|
void |
setSpecialcolor(java.awt.Color specialcolor) |
void |
setText(java.lang.String text) |
public RichTextSection(java.lang.String text)
text
- textpublic RichTextSection()
public RichTextSection(RichTextSection template)
template
- section used as templatepublic java.lang.String getText()
public void setText(java.lang.String text)
text
- set the text payloadpublic void setBold()
public void setItalic()
public void setSpecialcolor(java.awt.Color specialcolor)
specialcolor
- set the text to special colorpublic void setBullet()
public void setSectiontitle()
public boolean isBold()
public boolean isItalic()
public java.awt.Color getSpecialcolor()
public boolean isBullet()
public boolean isSectiontitle()
public boolean isNormalText()