org.spiffyui.client.widgets
Class ExpandingTextArea
java.lang.Object
TextArea
org.spiffyui.client.widgets.ExpandingTextArea
public class ExpandingTextArea
- extends TextArea
This is a self-expanding text area. It's height grows
dynamically depending on the text within it.
See http://www.alistapart.com/articles/expanding-text-areas-made-elegant
Method Summary |
void |
onBlur(BlurEvent event)
|
void |
onChange(ChangeEvent event)
|
void |
onKeyUp(KeyUpEvent event)
|
protected void |
onLoad()
|
void |
setText(java.lang.String text)
|
void |
setValue(java.lang.String value)
|
void |
setValue(java.lang.String value,
boolean fireEvents)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpandingTextArea
public ExpandingTextArea(java.lang.String id)
- Constructor
- Parameters:
id
- - the text area's element ID
ExpandingTextArea
public ExpandingTextArea()
- Constructor
A unique ID will be generated.
setValue
public void setValue(java.lang.String value)
setValue
public void setValue(java.lang.String value,
boolean fireEvents)
setText
public void setText(java.lang.String text)
onLoad
protected void onLoad()
onChange
public void onChange(ChangeEvent event)
onBlur
public void onBlur(BlurEvent event)
onKeyUp
public void onKeyUp(KeyUpEvent event)