|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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
Nested Class Summary | |
static interface |
RichTextRenderer.CommandAppearance
CommandAppearance controls what a command
image looks like when it is rolled over or currently
in a selected state. |
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_REMOVEFORMAT
|
static java.lang.String |
CMD_SELECTALL
|
static java.lang.String |
CMD_SPELLCHECK
|
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 | |
RichTextRenderer.CommandAppearance |
getCommandAppearance(RichTextArea rta,
java.lang.String userAgent)
This returns the appearance of the command button images. |
nextapp.echo2.app.ImageReference |
getCommandImage(RichTextArea rta,
java.lang.String userAgent,
java.lang.String command)
This returns an image for a given RTA command. |
java.lang.String[][] |
getFontNames(RichTextArea rta,
java.lang.String userAgent)
This returns a String[n][2] array of font name values and descriptive names. |
java.lang.String[][] |
getFontSizes(RichTextArea rta,
java.lang.String userAgent)
This returns a String[n][2] array of font size values and descriptive names. |
java.lang.String[][] |
getParagraphStyles(RichTextArea rta,
java.lang.String userAgent)
This returns a String[n][2] array of paragraph style values and descriptive names. |
java.lang.String[][] |
getSupportedCommands(RichTextArea rta,
java.lang.String userAgent)
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_REMOVEFORMAT
public static final java.lang.String CMD_SELECTALL
public static final java.lang.String CMD_SPELLCHECK
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(RichTextArea rta, java.lang.String userAgent)
rta
- - the RichTextArea component in questionuserAgent
- - the user agent string of the client
public java.lang.String[][] getFontSizes(RichTextArea rta, java.lang.String userAgent)
rta
- - the RichTextArea component in questionuserAgent
- - the user agent string of the client
public java.lang.String[][] getParagraphStyles(RichTextArea rta, java.lang.String userAgent)
rta
- - the RichTextArea component in questionuserAgent
- - the user agent string of the client
public java.lang.String[][] getSupportedCommands(RichTextArea rta, java.lang.String userAgent)
The order of the array is the order in which the commands will be rendered. The special markers
rta
- - the RichTextArea component in questionuserAgent
- - the user agent string of the client
public nextapp.echo2.app.ImageReference getCommandImage(RichTextArea rta, java.lang.String userAgent, java.lang.String command)
This function will only be called for commands that have been allowed via a previous call to the getSupportedCommands method.
rta
- - the RichTextArea component in questionuserAgent
- - the user agent string of the clientcommand
- - the command in question
public RichTextRenderer.CommandAppearance getCommandAppearance(RichTextArea rta, java.lang.String userAgent)
rta
- - the RichTextArea component in questionuserAgent
- - the user agent string of the client
|
EchoPoint 2.1.0rc4 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |