|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component nextapp.echo.text.TextComponent echopoint.RichTextArea
The RichTextArea
component provides HTML rich text
editing facilities.
The actual commands support be the RichTextArea are defined via the RichTextRenderer interface.
For more information about specific client capabilities
,
DefaultRichTextRenderer
,
Serialized FormNested Class Summary | |
static class |
RichTextArea.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static SymbolicValue[] |
allowableUnits
Helper static SymbolicValue[] - Width/Height Units |
static int |
DEFAULT_HEIGHT
the default RichTextArea height |
static int |
DEFAULT_HEIGHT_UNITS
the default RichTextArea height units (pixels) |
static nextapp.echo.Color |
DEFAULT_TOOLBAR_BACKGROUND
the default RichTextArea width units (pixels) |
static int |
DEFAULT_WIDTH
the default RichTextArea width |
static int |
DEFAULT_WIDTH_UNITS
the default RichTextArea width units (pixels) |
static java.lang.String |
HEIGHT_CHANGED_PROPERTY
|
static java.lang.String |
HEIGHT_UNITS_CHANGED_PROPERTY
|
static java.lang.String |
RENDERER_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_HEIGHT
A style constant for the Height property. |
static java.lang.String |
STYLE_HEIGHT_UNITS
A style constant for the Height Units property. |
static java.lang.String |
STYLE_TOOLBAR_ALIGNMENT
A style constant for the ToolBar Alignment property. |
static java.lang.String |
STYLE_TOOLBAR_BACKGROUND
A style constant for the ToolBar Background property. |
static java.lang.String |
STYLE_WIDTH
A style constant for the Width property. |
static java.lang.String |
STYLE_WIDTH_UNITS
A style constant for the Width Units property. |
static java.lang.String |
TOOLBAR_ALIGNMENT_CHANGED_PROPERTY
|
static java.lang.String |
TOOLBAR_BACKGROUND_CHANGED_PROPERTY
|
static SymbolicValue[] |
toolBarSymbolics
Helper static SymbolicValue[] - ToolBar Alignment |
static java.lang.String |
WIDTH_CHANGED_PROPERTY
|
static java.lang.String |
WIDTH_UNITS_CHANGED_PROPERTY
|
Fields inherited from class nextapp.echo.text.TextComponent |
BORDER_COLOR_CHANGED_PROPERTY, BORDER_DEFAULT, BORDER_INSET, BORDER_NONE, BORDER_SIZE_CHANGED_PROPERTY, BORDER_SOLID, BORDER_STYLE_CHANGED_PROPERTY, CHARACTER_UNITS, DOCUMENT_CHANGED_PROPERTY, EDITABLE_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, PERCENT_UNITS, PIXEL_UNITS, STYLE_BORDER_COLOR, STYLE_BORDER_SIZE, STYLE_BORDER_STYLE, STYLE_COLUMNS, STYLE_HORIZONTAL_ALIGNMENT, STYLE_LINE_WRAP, STYLE_ROWS, TEXT_CHANGED_PROPERTY |
Fields inherited from class nextapp.echo.Component |
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_CHANGED_PROPERTY |
Fields inherited from interface nextapp.echo.ToolTipSupport |
TOOL_TIP_TEXT_CHANGED_PROPERTY |
Constructor Summary | |
RichTextArea()
Constructs a RichTextArea with the default size. |
|
RichTextArea(nextapp.echo.text.Document document)
Constructs a new RichTextArea with the given text and default size. |
|
RichTextArea(nextapp.echo.text.Document document,
java.lang.String text,
int width,
int height)
Creates a new RichTextArea with the given text and size. |
|
RichTextArea(int width,
int height)
Creates a new RichTextArea of the given size. |
|
RichTextArea(java.lang.String text)
Creates a new RichTextArea with the given text. |
|
RichTextArea(java.lang.String text,
int width,
int height)
Creates a new RichTextArea with the given text and size. |
Method Summary | |
void |
applyStyle(nextapp.echo.Style style)
|
int |
getHeight()
Returns the height of the RichTextArea editing area. |
int |
getHeightUnits()
Returns the units (pixel or percent) in which heights are measured. |
RichTextRenderer |
getRenderer()
Returns the RichTextRenderer in use |
int |
getToolBarAlignment()
Returns the toolbar alignment of the contents of this RichTextArea. |
nextapp.echo.Color |
getToolBarBackground()
Returns the tollbar background color |
int |
getWidth()
Returns the overall width of the RichTextArea. |
int |
getWidthUnits()
Returns the units (pixel or percent) in which widths are measured. |
java.lang.Object |
set(java.lang.reflect.Field field,
java.lang.Object newValue)
Called to save the old value of a field, set in a new value and return the old value of a field. |
void |
setHeight(int newValue)
Sets the height of the RichTextArea editing area. |
void |
setHeightUnits(int newValue)
Sets the units (pixel or percent) in which heights are measured. |
void |
setRenderer(RichTextRenderer renderer)
Sets the RichTextRenderer to be used |
void |
setToolBarAlignment(int newValue)
Sets the toolbar alignment of the contents of this RichTextArea. |
void |
setToolBarBackground(nextapp.echo.Color newValue)
Sets the toolbar background color |
void |
setWidth(int newValue)
Sets the overall width of the RichTextArea. |
void |
setWidthUnits(int newValue)
Sets the units (pixel or percent) in which widths are measured. |
Methods inherited from class nextapp.echo.text.TextComponent |
getBorderColor, getBorderSize, getBorderStyle, getDocument, getHorizontalAlignment, getText, getToolTipText, isEditable, setBorderColor, setBorderSize, setBorderStyle, setDocument, setEditable, setHorizontalAlignment, setText, setToolTipText |
Methods inherited from class nextapp.echo.Component |
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getLocale, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, setLocale, setVisible, update, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static SymbolicValue[] allowableUnits
public static SymbolicValue[] toolBarSymbolics
public static final int DEFAULT_HEIGHT
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT_UNITS
public static final int DEFAULT_WIDTH_UNITS
public static final nextapp.echo.Color DEFAULT_TOOLBAR_BACKGROUND
public static final java.lang.String STYLE_HEIGHT
public static final java.lang.String STYLE_HEIGHT_UNITS
public static final java.lang.String STYLE_TOOLBAR_ALIGNMENT
public static final java.lang.String STYLE_TOOLBAR_BACKGROUND
public static final java.lang.String STYLE_WIDTH
public static final java.lang.String STYLE_WIDTH_UNITS
public static final java.lang.String HEIGHT_CHANGED_PROPERTY
public static final java.lang.String HEIGHT_UNITS_CHANGED_PROPERTY
public static final java.lang.String TOOLBAR_ALIGNMENT_CHANGED_PROPERTY
public static final java.lang.String TOOLBAR_BACKGROUND_CHANGED_PROPERTY
public static final java.lang.String WIDTH_CHANGED_PROPERTY
public static final java.lang.String WIDTH_UNITS_CHANGED_PROPERTY
public static final java.lang.String RENDERER_CHANGED_PROPERTY
Constructor Detail |
public RichTextArea()
public RichTextArea(nextapp.echo.text.Document document)
document
- The model for this text field.public RichTextArea(nextapp.echo.text.Document document, java.lang.String text, int width, int 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(int width, int height)
width
- The width to display.height
- The height to display.public RichTextArea(java.lang.String text)
text
- The initial text in the text field.public RichTextArea(java.lang.String text, int width, int height)
text
- The initial text in the text field.width
- The width to display.height
- The height to display.Method Detail |
public void applyStyle(nextapp.echo.Style style)
TextComponent.applyStyle(nextapp.echo.Style)
public int getHeight()
This does not include the toolbar area of the RichTextArea, which can vary in height because of the fonts and images used.
public int getHeightUnits()
PIXEL_UNITS
(the default)PERCENT_UNITS
public int getToolBarAlignment()
public nextapp.echo.Color getToolBarBackground()
public int getWidth()
public int getWidthUnits()
PIXEL_UNITS
(the default)PERCENT_UNITS
public void setHeight(int newValue)
This does not include the toolbar area of the RichTextArea, which can vary in height because of the fonts and images used.
newValue
- The new height of the RichTextArea.public void setHeightUnits(int newValue)
newValue
- The new unit measurement, one of the following values:
PIXEL_UNITS
(the default)PERCENT_UNITS
public void setToolBarAlignment(int newValue)
newValue
- The toolbar alignment of the contents of this RichTextArea,
one of the following values.
public void setToolBarBackground(nextapp.echo.Color newValue)
newValue
- - the new toolbar background colorpublic void setWidth(int newValue)
newValue
- The new width of the RichTextArea.public void setWidthUnits(int newValue)
newValue
- The new unit measurement, one of the following values:
PIXEL_UNITS
PERCENT_UNITS
(the default)public RichTextRenderer getRenderer()
public void setRenderer(RichTextRenderer renderer)
renderer
- - the new RichTextRenderer to be usedpublic java.lang.Object set(java.lang.reflect.Field field, java.lang.Object newValue) throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception { Object oldValue = f.get(this); f.set(this,newValue); return oldValue; }
set
in interface ReflectionSetter
field
- - the field to be setnewValue
- - the new value to be set
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |