|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 | |
nextapp.echo.Color[] |
getColorChoices(nextapp.echoservlet.RenderingContext rc,
RichTextArea rta)
This returns an array of colors that can be presented to the user when choosing a RichTextArea color. |
nextapp.echo.ImageReference |
getCommandImage(nextapp.echoservlet.RenderingContext rc,
RichTextArea rta,
java.lang.String command)
This returns an image for a given RTA command. |
java.lang.String[][] |
getFontNames(nextapp.echoservlet.RenderingContext rc,
RichTextArea rta)
This returns a String[n][2] array of font name values and descriptive names. |
java.lang.String[][] |
getFontSizes(nextapp.echoservlet.RenderingContext rc,
RichTextArea rta)
This returns a String[n][2] array of font size values and descriptive names. |
java.lang.String[][] |
getParagraphStyles(nextapp.echoservlet.RenderingContext rc,
RichTextArea rta)
This returns a String[n][2] array of paragraph style values and descriptive names. |
java.lang.String[][] |
getSupportedCommands(nextapp.echoservlet.RenderingContext rc,
RichTextArea rta)
This returns a String[n][2] array of supported commands and descriptive names. |
Field Detail |
public static final java.lang.String CMD_BOLD
public static final java.lang.String CMD_COPY
public static final java.lang.String CMD_CREATELINK
public static final java.lang.String CMD_CUT
public static final java.lang.String CMD_FORECOLOR
public static final java.lang.String CMD_BACKCOLOR
public static final java.lang.String CMD_INDENT
public static final java.lang.String CMD_INSERTHR
public static final java.lang.String CMD_INSERTIMAGE
public static final java.lang.String CMD_NUMBERS
public static final java.lang.String CMD_INSERTTABLE
public static final java.lang.String CMD_BULLETS
public static final java.lang.String CMD_ITALIC
public static final java.lang.String CMD_ALIGN_CENTER
public static final java.lang.String CMD_JUSTIFY
public static final java.lang.String CMD_ALIGN_LEFT
public static final java.lang.String CMD_ALIGN_RIGHT
public static final java.lang.String CMD_OUTDENT
public static final java.lang.String CMD_PASTE
public static final java.lang.String CMD_REDO
public static final java.lang.String CMD_SUBSCRIPT
public static final java.lang.String CMD_SUPERSCRIPT
public static final java.lang.String CMD_UNDERLINE
public static final java.lang.String CMD_UNDO
public static final java.lang.String CMD_HINT_NEWLINE
public static final java.lang.String CMD_HINT_SPACER
Method Detail |
public java.lang.String[][] getFontNames(nextapp.echoservlet.RenderingContext rc, RichTextArea rta)
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
public java.lang.String[][] getFontSizes(nextapp.echoservlet.RenderingContext rc, RichTextArea rta)
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
public java.lang.String[][] getParagraphStyles(nextapp.echoservlet.RenderingContext rc, RichTextArea rta)
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
public java.lang.String[][] getSupportedCommands(nextapp.echoservlet.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
public nextapp.echo.ImageReference getCommandImage(nextapp.echoservlet.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
public nextapp.echo.Color[] getColorChoices(nextapp.echoservlet.RenderingContext rc, RichTextArea rta)
rc
- - the RenderingContext in placerta
- - the RichTextArea component in question
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |