|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnextapp.echo.AbstractComponent
nextapp.echo.text.TextComponent
nextapp.echo.TextArea
public class TextArea
A multiple line text-entry field.
Field Summary | |
---|---|
static java.lang.String |
COLUMN_UNITS_CHANGED_PROPERTY
|
static java.lang.String |
COLUMNS_CHANGED_PROPERTY
|
static java.lang.String |
LINE_WRAP_CHANGED_PROPERTY
|
static java.lang.String |
ROW_UNITS_CHANGED_PROPERTY
|
static java.lang.String |
ROWS_CHANGED_PROPERTY
|
Fields inherited from interface nextapp.echo.ToolTipSupport |
---|
TOOL_TIP_TEXT_CHANGED_PROPERTY |
Constructor Summary | |
---|---|
TextArea()
Creates a new TextArea. |
|
TextArea(Document document)
Creates a new TextArea with the given text and size. |
|
TextArea(Document document,
java.lang.String text,
int columns,
int rows)
Creates a new TextArea with the given text and size. |
|
TextArea(int columns,
int rows)
Creates a new TextArea of the given size. |
|
TextArea(java.lang.String text)
Creates a new TextArea with the given text. |
|
TextArea(java.lang.String text,
int columns,
int rows)
Creates a new TextArea with the given text and size. |
Method Summary | |
---|---|
void |
applyStyle(Style style)
Sets stylistic properties of this component based on a Style
object. |
int |
getColumns()
Returns the number of columns in the TextArea. |
int |
getColumnUnits()
Returns the units of the columns property. |
boolean |
getLineWrap()
Returns whether lines should wrap in the text area. |
int |
getRows()
Returns the number of rows in the TextArea. |
int |
getRowUnits()
Returns the units of the rows property. |
boolean |
isConvertToLowerCase()
|
boolean |
isConvertToUpperCase()
|
void |
setColumns(int newValue)
Sets the number of columns in the TextArea. |
void |
setColumnUnits(int newValue)
Sets the units for the columns property. |
void |
setConvertToLowerCase(boolean convertToLowerCase)
|
void |
setConvertToUpperCase(boolean convertToUpperCase)
|
void |
setLineWrap(boolean newValue)
Sets whether lines should wrap in the text area. |
void |
setRows(int newValue)
Sets the number of rows in the TextArea. |
void |
setRowUnits(int newValue)
Sets the units for the rows property. |
Methods inherited from class nextapp.echo.text.TextComponent |
---|
getBorderColor, getBorderSize, getBorderStyle, getCssClass, getDocument, getHorizontalAlignment, getText, getToolTipText, isEditable, setBorderColor, setBorderSize, setBorderStyle, setCssClass, setDocument, setEditable, setHorizontalAlignment, setText, setToolTipText |
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 COLUMNS_CHANGED_PROPERTY
public static final java.lang.String COLUMN_UNITS_CHANGED_PROPERTY
public static final java.lang.String LINE_WRAP_CHANGED_PROPERTY
public static final java.lang.String ROWS_CHANGED_PROPERTY
public static final java.lang.String ROW_UNITS_CHANGED_PROPERTY
Constructor Detail |
---|
public TextArea()
public TextArea(java.lang.String text)
text
- The initial text in the text field.public TextArea(int columns, int rows)
columns
- The number of columns to display.rows
- The number of rows to display.public TextArea(java.lang.String text, int columns, int rows)
text
- The initial text in the text field.columns
- The number of columns to display.rows
- The number of rows to display.public TextArea(Document document)
document
- The model for this text field.public TextArea(Document document, java.lang.String text, int columns, int rows)
document
- The model for this text field.text
- The initial text in the text field.columns
- The number of columns to display.rows
- The number of rows to display.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 interface Component
applyStyle
in class TextComponent
style
- The style object from which to retrieve properties for this
Component
.Component.applyStyle(Style)
public int getColumns()
public int getColumnUnits()
TextArea.CHARACTER_UNITS
(the default)TextArea.PIXEL_UNITS
TextArea.PERCENT_UNITS
public boolean getLineWrap()
public int getRows()
public int getRowUnits()
TextArea.CHARACTER_UNITS
(the default)TextArea.PIXEL_UNITS
TextArea.PERCENT_UNITS
public void setColumns(int newValue)
newValue
- The number of columns to display.public void setColumnUnits(int newValue)
newValue
- The new units for the columns property, one of the
following values:
TextArea.CHARACTER_UNITS
(the default)TextArea.PIXEL_UNITS
TextArea.PERCENT_UNITS
public void setLineWrap(boolean newValue)
newValue
- True if lines should wrap in the text area.public void setRows(int newValue)
newValue
- The number of rows to display.public void setRowUnits(int newValue)
newValue
- The new units for the rows property, one of the
following values:
TextArea.CHARACTER_UNITS
(the default)TextArea.PIXEL_UNITS
TextArea.PERCENT_UNITS
public boolean isConvertToLowerCase()
public void setConvertToLowerCase(boolean convertToLowerCase)
public boolean isConvertToUpperCase()
public void setConvertToUpperCase(boolean convertToUpperCase)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |