|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Component
nextapp.echo2.app.text.TextComponent
echopointng.RichTextArea
public class RichTextArea
The RichTextArea component provides HTML rich text editing
facilities.
The actual commands support be the RichTextArea are defined via the
RichTextRenderer interface.
RichTextRenderer,
Serialized Form| Field Summary | |
|---|---|
static Style |
DEFAULT_STYLE
|
static Color |
DEFAULT_TOOLBAR_BACKGROUND
|
static String |
PROPERTY_EDITABLE
|
static String |
PROPERTY_EDITOR_BACKGROUND
|
static String |
PROPERTY_EDITOR_BORDER
|
static String |
PROPERTY_EDITOR_FONT
|
static String |
PROPERTY_EDITOR_FOREGROUND
|
static String |
PROPERTY_RENDERER
|
static String |
PROPERTY_SPELL_CHECK_IN_PROGRESS
|
static String |
PROPERTY_SPELL_CHECKER
|
static String |
PROPERTY_TOOLBAR_ALIGNMENT
|
static String |
PROPERTY_TOOLBAR_BACKGROUND
|
| Fields inherited from interface echopointng.able.Widthable |
|---|
PROPERTY_WIDTH |
| Fields inherited from interface echopointng.able.Heightable |
|---|
PROPERTY_HEIGHT |
| Fields inherited from interface echopointng.able.Insetable |
|---|
DEFAULT_INSETS, DEFAULT_OUTSETS, PROPERTY_INSETS, PROPERTY_OUTSETS |
| Fields inherited from interface echopointng.able.MouseCursorable |
|---|
CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, PROPERTY_MOUSE_CURSOR, PROPERTY_MOUSE_CURSOR_URI |
| Fields inherited from interface echopointng.able.Borderable |
|---|
PROPERTY_BORDER |
| Constructor Summary | |
|---|---|
RichTextArea()
Constructs a RichTextArea with the default size. |
|
RichTextArea(Document document)
Constructs a new RichTextArea with the given text and default size. |
|
RichTextArea(Document document,
String text,
Extent width,
Extent height)
Creates a new RichTextArea with the given text and size. |
|
RichTextArea(Extent width,
Extent height)
Creates a new RichTextArea of the given size. |
|
RichTextArea(String text)
Creates a new RichTextArea with the given text. |
|
RichTextArea(String text,
Extent width,
Extent height)
Creates a new RichTextArea with the given text and size. |
|
| Method Summary | |
|---|---|
Object |
getAttribute(String attributeName)
Returns a value for the given attribute name or null if one cannot be found. |
String[] |
getAttributeNames()
Returns a String array with the names of the the attributes that have neen set. |
Color |
getEditorBackground()
|
Border |
getEditorBorder()
|
Font |
getEditorFont()
|
Color |
getEditorForeground()
|
int |
getMouseCursor()
Returns the current mouse cursor in use. |
String |
getMouseCursorUri()
|
Insets |
getOutsets()
|
RichTextRenderer |
getRenderer()
Returns the RichTextRenderer in use |
RichTextSpellChecker |
getSpellChecker()
|
int |
getToolBarAlignment()
Returns the toolbar alignment of the contents of this RichTextArea. |
Color |
getToolBarBackground()
Returns the toolbar background color |
boolean |
isEditable()
|
boolean |
isSpellCheckInProgress()
|
protected String |
makeValidXHTML(StringBuffer buffer)
The client rich text support do necessarily provide back valid XHTML in the editied text. |
void |
processInput(String inputName,
Object inputValue)
|
void |
setAttribute(String attributeName,
Object attributeValue)
Sets a value for a given attribute name. |
void |
setEditable(boolean newValue)
Controls whether the text in the RichTextArea can be edited or not. |
void |
setEditorBackground(Color editorBackground)
Sets the background of the RichTextArea portion |
void |
setEditorBorder(Border editorBorder)
Sets the border of the RichTextArea portion |
void |
setEditorFont(Font editorFont)
Sets the font of the RichTextArea portion |
void |
setEditorForeground(Color editorForeground)
Sets the foreground of the RichTextArea portion |
void |
setMouseCursor(int mouseCursor)
Sets the mouse cursor to use. |
void |
setMouseCursorUri(String mouseCursorURI)
Sets the URI to a custom platform mouse cursor. |
void |
setOutsets(Insets newValue)
Sets the Outsets in play. |
void |
setRenderer(RichTextRenderer renderer)
Sets the RichTextRenderer to be used |
void |
setSpellChecker(RichTextSpellChecker spellChecker)
Sets the spell checker associated with the RichTextArea |
void |
setSpellCheckInProgress(boolean spellCheckInProgress)
Sets whether a seplling check is in progress |
void |
setToolBarAlignment(int newValue)
Sets the toolbar alignment of the contents of this RichTextArea. |
void |
setToolBarBackground(Color newValue)
Sets the toolbar background color |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopointng.able.Widthable |
|---|
getWidth, setWidth |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Heightable |
|---|
getHeight, setHeight |
| Methods inherited from interface echopointng.able.Delegateable |
|---|
getRenderProperty, getRenderProperty |
| Methods inherited from interface echopointng.able.Insetable |
|---|
getInsets, setInsets |
| Methods inherited from interface echopointng.able.Borderable |
|---|
getBorder, setBorder |
| Field Detail |
|---|
public static final Style DEFAULT_STYLE
public static final Color DEFAULT_TOOLBAR_BACKGROUND
public static final String PROPERTY_EDITABLE
public static final String PROPERTY_EDITOR_BACKGROUND
public static final String PROPERTY_EDITOR_BORDER
public static final String PROPERTY_EDITOR_FONT
public static final String PROPERTY_EDITOR_FOREGROUND
public static final String PROPERTY_RENDERER
public static final String PROPERTY_SPELL_CHECK_IN_PROGRESS
public static final String PROPERTY_SPELL_CHECKER
public static final String PROPERTY_TOOLBAR_ALIGNMENT
public static final String PROPERTY_TOOLBAR_BACKGROUND
| Constructor Detail |
|---|
public RichTextArea()
public RichTextArea(Document document)
document - The model for this text field.
public RichTextArea(Document document,
String text,
Extent width,
Extent height)
document - The model for this text field.text - The initial text in the text field.width - The width to display.height - The height to display.
public RichTextArea(Extent width,
Extent height)
width - The width to display.height - The height to display.public RichTextArea(String text)
text - The initial text in the text field.
public RichTextArea(String text,
Extent width,
Extent height)
text - The initial text in the text field.width - The width to display.height - The height to display.| Method Detail |
|---|
public Object getAttribute(String attributeName)
Attributeable
getAttribute in interface AttributeableattributeName - - the name of the attribute to return
Attributeable.getAttribute(java.lang.String)public String[] getAttributeNames()
Attributeable
getAttributeNames in interface AttributeableAttributeable.getAttributeNames()public Color getEditorBackground()
RichTextArea portionpublic Border getEditorBorder()
RichTextArea portionpublic Font getEditorFont()
RichTextArea portionpublic Color getEditorForeground()
RichTextArea portionpublic int getMouseCursor()
MouseCursorable
getMouseCursor in interface MouseCursorableMouseCursorable.getMouseCursor()public String getMouseCursorUri()
getMouseCursorUri in interface MouseCursorableMouseCursorable.getMouseCursorUri()public Insets getOutsets()
getOutsets in interface InsetableInsetable.getOutsets()public RichTextRenderer getRenderer()
public RichTextSpellChecker getSpellChecker()
RichTextAreapublic int getToolBarAlignment()
public Color getToolBarBackground()
public boolean isEditable()
RichTextArea can be edited
or not.public boolean isSpellCheckInProgress()
public void processInput(String inputName,
Object inputValue)
processInput in class TextComponentTextComponent.processInput(java.lang.String, java.lang.Object)protected String makeValidXHTML(StringBuffer buffer)
Document.
This default implementation simply checks for missing end tags in <br/> tags and <img/> tags and puts them in.
You can derive your own implementation to get more complex behaviour
buffer - the buffer containing the HTML text
public void setAttribute(String attributeName,
Object attributeValue)
Attributeable
setAttribute in interface AttributeableattributeName - - the name of the attribute to setattributeValue - - the value for the attributeAttributeable.setAttribute(java.lang.String,
java.lang.Object)public void setEditable(boolean newValue)
newValue - -
thew new edtiable flagpublic void setEditorBackground(Color editorBackground)
RichTextArea portion
public void setEditorBorder(Border editorBorder)
RichTextArea portion
public void setEditorFont(Font editorFont)
RichTextArea portion
public void setEditorForeground(Color editorForeground)
RichTextArea portion
public void setMouseCursor(int mouseCursor)
MouseCursorable
setMouseCursor in interface MouseCursorablemouseCursor - - the mouse cursor to useMouseCursorable.setMouseCursor(int)public void setMouseCursorUri(String mouseCursorURI)
MouseCursorable
setMouseCursorUri in interface MouseCursorablemouseCursorURI - the URI to a custom platform mouse cursor.MouseCursorable.setMouseCursorUri(java.lang.String)public void setOutsets(Insets newValue)
Insetable
setOutsets in interface InsetablenewValue - -
the Ousets to useInsetable.setOutsets(nextapp.echo2.app.Insets)public void setRenderer(RichTextRenderer renderer)
renderer - -
the new RichTextRenderer to be usedpublic void setSpellChecker(RichTextSpellChecker spellChecker)
RichTextArea
public void setSpellCheckInProgress(boolean spellCheckInProgress)
public void setToolBarAlignment(int newValue)
newValue - The toolbar alignment of the contents of this RichTextArea,
one of the following values.
public void setToolBarBackground(Color newValue)
newValue - -
the new toolbar background color
|
EchoPoint 2.1.0rc5 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||