|
|||||||||
| 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.TextField
echopointng.TextFieldEx
public class TextFieldEx
TextFieldEx is a TextField that adds
extra support such as Attributeable.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
TextFieldEx()
Creates a new TextFieldEx with an empty
StringDocument as its model, and default width
setting. |
|
TextFieldEx(Document document)
Creates a new TextFieldEx with the specified
Document model. |
|
TextFieldEx(Document document,
java.lang.String text,
int columns)
Creates a new TextFieldEx with the specified
Document model, initial text, and column width. |
|
TextFieldEx(java.lang.String text)
Creates a new TextFieldEx with the specified
text in a StringDocument model. |
|
| 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 TextFieldEx()
TextFieldEx with an empty
StringDocument as its model, and default width
setting.
public TextFieldEx(Document document)
TextFieldEx with the specified
Document model.
document - the document
public TextFieldEx(Document document,
java.lang.String text,
int columns)
TextFieldEx with the specified
Document model, initial text, and column width.
document - the documenttext - the initial text (may be null)columns - the number of columns to displaypublic TextFieldEx(java.lang.String text)
TextFieldEx with the specified
text in a StringDocument model.
text - the text to be placed into a StringDocument| 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 | ||||||||