|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RichTextRenderer
The RichTextRenderer
interface allows the customisation
of a RichTextArea
component. This interface will be called
during the rendering of a RichTextArea.
RichTextArea
Field Summary | |
---|---|
static java.lang.String |
CMD_ALIGN_CENTER
|
static java.lang.String |
CMD_ALIGN_LEFT
|
static java.lang.String |
CMD_ALIGN_RIGHT
|
static java.lang.String |
CMD_BACKCOLOR
|
static java.lang.String |
CMD_BOLD
Available RichTextArea Commands |
static java.lang.String |
CMD_BULLETS
|
static java.lang.String |
CMD_COPY
|
static java.lang.String |
CMD_CREATELINK
|
static java.lang.String |
CMD_CUT
|
static java.lang.String |
CMD_FORECOLOR
|
static java.lang.String |
CMD_HINT_NEWLINE
A rendering hint that puts the command on a new line within the RichTextArea toolbar. |
static java.lang.String |
CMD_HINT_SPACER
A rendering hint that puts the spacer within the RichTextArea toolbar. |
static java.lang.String |
CMD_INDENT
|
static java.lang.String |
CMD_INSERTHR
|
static java.lang.String |
CMD_INSERTIMAGE
|
static java.lang.String |
CMD_INSERTTABLE
|
static java.lang.String |
CMD_ITALIC
|
static java.lang.String |
CMD_JUSTIFY
|
static java.lang.String |
CMD_NUMBERS
|
static java.lang.String |
CMD_OUTDENT
|
static java.lang.String |
CMD_PASTE
|
static java.lang.String |
CMD_REDO
|
static java.lang.String |
CMD_SUBSCRIPT
|
static java.lang.String |
CMD_SUPERSCRIPT
|
static java.lang.String |
CMD_UNDERLINE
|
static java.lang.String |
CMD_UNDO
|
Method Summary | |
---|---|
Color[] |
getColorChoices(RenderingContext rc,
RichTextArea rta)
This returns an array of colors that can be presented to the user when choosing a RichTextArea color. |
ImageReference |
getCommandImage(RenderingContext rc,
RichTextArea rta,
java.lang.String command)
This returns an image for a given RTA command. |
java.lang.String[][] |
getFontNames(RenderingContext rc,
RichTextArea rta)
This returns a String[n][2] array of font name values and descriptive names. |
java.lang.String[][] |
getFontSizes(RenderingContext rc,
RichTextArea rta)
This returns a String[n][2] array of font size values and descriptive names. |
java.lang.String[][] |
getParagraphStyles(RenderingContext rc,
RichTextArea rta)
This returns a String[n][2] array of paragraph style values and descriptive names. |
java.lang.String[][] |
getSupportedCommands(RenderingContext rc,
RichTextArea rta)
This returns a String[n][2] array of supported commands and descriptive names. |
Field Detail |
---|
static final java.lang.String CMD_BOLD
static final java.lang.String CMD_COPY
static final java.lang.String CMD_CREATELINK
static final java.lang.String CMD_CUT
static final java.lang.String CMD_FORECOLOR
static final java.lang.String CMD_BACKCOLOR
static final java.lang.String CMD_INDENT
static final java.lang.String CMD_INSERTHR
static final java.lang.String CMD_INSERTIMAGE
static final java.lang.String CMD_NUMBERS
static final java.lang.String CMD_INSERTTABLE
static final java.lang.String CMD_BULLETS
static final java.lang.String CMD_ITALIC
static final java.lang.String CMD_ALIGN_CENTER
static final java.lang.String CMD_JUSTIFY
static final java.lang.String CMD_ALIGN_LEFT
static final java.lang.String CMD_ALIGN_RIGHT
static final java.lang.String CMD_OUTDENT
static final java.lang.String CMD_PASTE
static final java.lang.String CMD_REDO
static final java.lang.String CMD_SUBSCRIPT
static final java.lang.String CMD_SUPERSCRIPT
static final java.lang.String CMD_UNDERLINE
static final java.lang.String CMD_UNDO
static final java.lang.String CMD_HINT_NEWLINE
static final java.lang.String CMD_HINT_SPACER
Method Detail |
---|
java.lang.String[][] getFontNames(RenderingContext rc, RichTextArea rta)
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
java.lang.String[][] getFontSizes(RenderingContext rc, RichTextArea rta)
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
java.lang.String[][] getParagraphStyles(RenderingContext rc, RichTextArea rta)
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
java.lang.String[][] getSupportedCommands(RenderingContext rc, RichTextArea rta)
The order of the array is the order in which the commands will be rendered. The special markers
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
ImageReference getCommandImage(RenderingContext rc, RichTextArea rta, java.lang.String command)
This function will only be called for commands that have been allowed via a previous call to the getSupportedCommands method.
rc
- - the RenderingContext in placerta
- - the RichTextArea component in questioncommand
- - the command in question
Color[] getColorChoices(RenderingContext rc, RichTextArea rta)
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |