|
|||||||||
| 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
nextapp.echo2.app.TextArea
echopointng.TextAreaEx
public class TextAreaEx
TextAreaEx is a TextArea that adds
extra support such as Attributeable.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
TextAreaEx()
Creates a new TextAreaEx with an empty
StringDocument as its model, and default width and
height settings. |
|
TextAreaEx(Document document)
Creates a new TextAreaEx with the specified
Document model. |
|
TextAreaEx(Document document,
java.lang.String text,
int columns,
int rows)
Creates a new TextAreaEx with the specified
Document model, initial text, width
and height settings. |
|
TextAreaEx(java.lang.String text)
Creates a new TextAreaEx with an
StringDocument as its model and the
specified text in the document. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String attributeName)
Returns a value for the given attribute name or null if one cannot be found. |
java.lang.String[] |
getAttributeNames()
Returns a String array with the names of the the attributes that have neen set. |
void |
init()
Life-cycle method invoked when the Component is added
to a registered hierarchy. |
void |
setAttribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Sets a value for a given attribute name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextAreaEx()
TextAreaEx with an empty
StringDocument as its model, and default width and
height settings.
public TextAreaEx(Document document)
TextAreaEx with the specified
Document model.
document - the document
public TextAreaEx(Document document,
java.lang.String text,
int columns,
int rows)
TextAreaEx with the specified
Document model, initial text, width
and height settings.
document - the documenttext - the initial text (may be null)columns - the number of columns to displayrows - the number of rows to displaypublic TextAreaEx(java.lang.String text)
TextAreaEx with an
StringDocument as its model and the
specified text in the document.
text - - the new text| Method Detail |
|---|
public java.lang.Object getAttribute(java.lang.String attributeName)
Attributeable
getAttribute in interface AttributeableattributeName - - the name of the attribute to return
Attributeable.getAttribute(java.lang.String)public java.lang.String[] getAttributeNames()
Attributeable
getAttributeNames in interface AttributeableAttributeable.getAttributeNames()public void init()
ComponentComponent is added
to a registered hierarchy. Implementations should always invoke
super.init().
Modifications to the component hierarchy are not allowed within this
method.
init in class ComponentComponent.init()
public void setAttribute(java.lang.String attributeName,
java.lang.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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||