|
NextApp Echo 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.Component
nextapp.echo.text.TextComponent
An abstract Text component whose data is represented in a document model.
Field Summary | |
static java.lang.String |
BORDER_COLOR_CHANGED_PROPERTY
|
static int |
BORDER_DEFAULT
A border style that causes the client to render the text component with its default style. |
static int |
BORDER_INSET
A border style that causes a simulated 3D border to be rendered, such that the text component appears recessed. |
static int |
BORDER_NONE
A border style that causes no border to be rendered. |
static java.lang.String |
BORDER_SIZE_CHANGED_PROPERTY
|
static int |
BORDER_SOLID
A border style that causes a solid, monochrome border to be rendered in in the specified color. |
static java.lang.String |
BORDER_STYLE_CHANGED_PROPERTY
|
static int |
CHARACTER_UNITS
|
static java.lang.String |
DOCUMENT_CHANGED_PROPERTY
|
static java.lang.String |
EDITABLE_CHANGED_PROPERTY
|
static java.lang.String |
HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY
|
static int |
PERCENT_UNITS
|
static int |
PIXEL_UNITS
|
static java.lang.String |
STYLE_BORDER_COLOR
A style constant for the Border Color property. |
static java.lang.String |
STYLE_BORDER_SIZE
A style constant for the Border Size property. |
static java.lang.String |
STYLE_BORDER_STYLE
A style constant for the Border Style property. |
static java.lang.String |
STYLE_COLUMNS
A style constant for the Columns property. |
static java.lang.String |
STYLE_HORIZONTAL_ALIGNMENT
A style constant for the Horizontal Alignment property. |
static java.lang.String |
STYLE_LINE_WRAP
A style constant for the Line Wrap property. |
static java.lang.String |
STYLE_ROWS
A style constant for the Rows property. |
static java.lang.String |
TEXT_CHANGED_PROPERTY
|
Fields inherited from interface nextapp.echo.ToolTipSupport |
TOOL_TIP_TEXT_CHANGED_PROPERTY |
Constructor Summary | |
TextComponent()
|
Method Summary | |
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style object. |
Color |
getBorderColor()
Returns the border color. |
int |
getBorderSize()
Returns the border size. |
int |
getBorderStyle()
Returns the border style. |
Document |
getDocument()
Returns the document model. |
int |
getHorizontalAlignment()
Returns the horizontal alignment of the text. |
java.lang.String |
getText()
Returns the text contained in the document model. |
java.lang.String |
getToolTipText()
Returns the default tool tip text. |
boolean |
isEditable()
Returns whether the text component's is editable. |
void |
setBorderColor(Color newValue)
Sets the border color. |
void |
setBorderSize(int newValue)
Sets the border size. |
void |
setBorderStyle(int newValue)
Sets the border style. |
void |
setDocument(Document newValue)
Sets the document model. |
void |
setEditable(boolean newValue)
Sets whether the text component is editable. |
void |
setHorizontalAlignment(int newValue)
Sets the horizontal alignment of the text. |
void |
setText(java.lang.String newValue)
Sets the text contained in the document model. |
void |
setToolTipText(java.lang.String newValue)
Sets the default tool tip text. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String STYLE_BORDER_COLOR
public static final java.lang.String STYLE_BORDER_SIZE
public static final java.lang.String STYLE_BORDER_STYLE
public static final java.lang.String STYLE_COLUMNS
public static final java.lang.String STYLE_HORIZONTAL_ALIGNMENT
public static final java.lang.String STYLE_ROWS
public static final int CHARACTER_UNITS
public static final int PIXEL_UNITS
public static final int PERCENT_UNITS
public static final java.lang.String STYLE_LINE_WRAP
public static final java.lang.String BORDER_COLOR_CHANGED_PROPERTY
public static final java.lang.String BORDER_SIZE_CHANGED_PROPERTY
public static final java.lang.String BORDER_STYLE_CHANGED_PROPERTY
public static final java.lang.String DOCUMENT_CHANGED_PROPERTY
public static final java.lang.String EDITABLE_CHANGED_PROPERTY
public static final java.lang.String HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY
public static final java.lang.String TEXT_CHANGED_PROPERTY
public static final int BORDER_DEFAULT
public static final int BORDER_NONE
public static final int BORDER_SOLID
public static final int BORDER_INSET
Constructor Detail |
public TextComponent()
Method Detail |
public void applyStyle(Style style)
Component
Style
object. The version of this method in
Component
will set foreground and background colors
and the font from the style if they are present. Components
should override this method if they allow more properties to be
set from a style object, and should call super.applyStyle() if
necessary.
applyStyle
in class Component
style
- The style object from which to retrieve properties
for this Component
.Component.applyStyle(Style)
public Color getBorderColor()
public int getBorderSize()
public int getBorderStyle()
public Document getDocument()
public int getHorizontalAlignment()
public java.lang.String getText()
public java.lang.String getToolTipText()
ToolTipSupport
getToolTipText
in interface ToolTipSupport
ToolTipSupport.getToolTipText()
public boolean isEditable()
public void setBorderColor(Color newValue)
newValue
- The new border color.public void setBorderSize(int newValue)
newValue
- The new border size, in pixels.public void setBorderStyle(int newValue)
newValue
- The new border style, one of the following values:
public void setDocument(Document newValue)
newValue
- The new document model.public void setEditable(boolean newValue)
newValue
- True if the text component's value may be changed.public void setHorizontalAlignment(int newValue)
newValue
- The horizontal alignment of the text,
one of the following values:
public void setText(java.lang.String newValue)
newValue
- The text to replace the text in the document model.public void setToolTipText(java.lang.String newValue)
ToolTipSupport
setToolTipText
in interface ToolTipSupport
newValue
- The new tool tip text.ToolTipSupport.setToolTipText(String)
|
NextApp Echo 1.0.5 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |