|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectechopointng.richtext.DefaultRichTextRenderer
public class DefaultRichTextRenderer
The DefaultRichTextRenderer is the default RichTextArea
renderer.
Some notes on browser capabilities as of the 10 September 2003.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface echopointng.richtext.RichTextRenderer |
|---|
RichTextRenderer.CommandAppearance |
| Field Summary | |
|---|---|
static Color[] |
DEFAULT_COLOR_CHOICES
contains the default color choices |
static java.lang.Object[][] |
DEFAULT_COMMAND_IMAGES
|
static java.lang.String[][] |
DEFAULT_FONT_NAMES
contains the default font names to use |
static java.lang.String[][] |
DEFAULT_FONT_SIZES
contains the default font sizes to use |
static java.lang.String[][] |
DEFAULT_PARAGRAPH_STYLES
contains the default paragraph styles |
static java.lang.String[][] |
DEFAULT_SUPPORTED_COMMANDS
contains a mapping of supported commands (String) and descriptive titles (String) |
static java.lang.String[][] |
EXTENDED_FONT_NAMES
contains the extended font names that may be available for use |
static java.lang.String[][] |
SIMPLE_FONT_NAMES
contains the simple font names most likely to be available to use |
| Fields inherited from interface echopointng.richtext.RichTextRenderer |
|---|
CMD_ALIGN_CENTER, CMD_ALIGN_LEFT, CMD_ALIGN_RIGHT, CMD_BACKCOLOR, CMD_BOLD, CMD_BULLETS, CMD_COPY, CMD_CREATELINK, CMD_CUT, CMD_FORECOLOR, CMD_HINT_NEWLINE, CMD_HINT_SPACER, CMD_INDENT, CMD_INSERTHR, CMD_INSERTIMAGE, CMD_INSERTTABLE, CMD_ITALIC, CMD_JUSTIFY, CMD_NUMBERS, CMD_OUTDENT, CMD_PASTE, CMD_REDO, CMD_REMOVEFORMAT, CMD_SELECTALL, CMD_SPELLCHECK, CMD_SUBSCRIPT, CMD_SUPERSCRIPT, CMD_UNDERLINE, CMD_UNDO |
| Constructor Summary | |
|---|---|
DefaultRichTextRenderer()
Constructs a DefaultRichTextRenderer |
|
| Method Summary | |
|---|---|
RichTextRenderer.CommandAppearance |
getCommandAppearance(RichTextArea rta,
java.lang.String userAgent)
This returns the appearance of the command button images. |
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. |
void |
setCommandImage(java.lang.String command,
ImageReference image)
Sets the image for a given command. |
void |
setFontNames(java.lang.String[][] strings)
Sets a new set of font name values to descriptive names mappings |
void |
setFontSizes(java.lang.String[][] strings)
Sets a new set of font size values to descriptive names mappings |
void |
setParagraphStyles(java.lang.String[][] strings)
Sets a new set of paragraph style values to descriptive names mappings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String[][] DEFAULT_SUPPORTED_COMMANDS
public static java.lang.Object[][] DEFAULT_COMMAND_IMAGES
public static final java.lang.String[][] SIMPLE_FONT_NAMES
public static final java.lang.String[][] EXTENDED_FONT_NAMES
public static final java.lang.String[][] DEFAULT_FONT_NAMES
public static final java.lang.String[][] DEFAULT_FONT_SIZES
public static final java.lang.String[][] DEFAULT_PARAGRAPH_STYLES
public static final Color[] DEFAULT_COLOR_CHOICES
| Constructor Detail |
|---|
public DefaultRichTextRenderer()
DefaultRichTextRenderer
| Method Detail |
|---|
public java.lang.String[][] getFontNames(RichTextArea rta,
java.lang.String userAgent)
RichTextRenderer
getFontNames in interface RichTextRendererrta - - the RichTextArea component in questionuserAgent - - the user agent string of the client
RichTextRenderer.getFontNames(echopointng.RichTextArea,
java.lang.String)
public java.lang.String[][] getFontSizes(RichTextArea rta,
java.lang.String userAgent)
RichTextRenderer
getFontSizes in interface RichTextRendererrta - - the RichTextArea component in questionuserAgent - - the user agent string of the client
RichTextRenderer.getFontSizes(echopointng.RichTextArea,
java.lang.String)
public java.lang.String[][] getParagraphStyles(RichTextArea rta,
java.lang.String userAgent)
RichTextRenderer
getParagraphStyles in interface RichTextRendererrta - - the RichTextArea component in questionuserAgent - - the user agent string of the client
RichTextRenderer.getParagraphStyles(echopointng.RichTextArea,
java.lang.String)
public java.lang.String[][] getSupportedCommands(RichTextArea rta,
java.lang.String userAgent)
RichTextRendererThe order of the array is the order in which the commands will be rendered. The special markers
getSupportedCommands in interface RichTextRendererrta - - the RichTextArea component in questionuserAgent - - the user agent string of the client
RichTextRenderer.getSupportedCommands(echopointng.RichTextArea,
java.lang.String)
public ImageReference getCommandImage(RichTextArea rta,
java.lang.String userAgent,
java.lang.String command)
RichTextRendererThis function will only be called for commands that have been allowed via a previous call to the getSupportedCommands method.
getCommandImage in interface RichTextRendererrta - - the RichTextArea component in questionuserAgent - - the user agent string of the clientcommand - - the command in question
RichTextRenderer.getCommandImage(echopointng.RichTextArea,
java.lang.String, java.lang.String)public void setFontNames(java.lang.String[][] strings)
strings - public void setFontSizes(java.lang.String[][] strings)
strings - public void setParagraphStyles(java.lang.String[][] strings)
strings - -
the array of mappings
public void setCommandImage(java.lang.String command,
ImageReference image)
command - -
the command in questionimage - -
the new image for the command
public RichTextRenderer.CommandAppearance getCommandAppearance(RichTextArea rta,
java.lang.String userAgent)
RichTextRenderer
getCommandAppearance in interface RichTextRendererrta - - the RichTextArea component in questionuserAgent - - the user agent string of the client
RichTextRenderer.getCommandAppearance(echopointng.RichTextArea,
java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||