|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.domui.dom.css.CssBase
to.etc.domui.dom.html.NodeBase
to.etc.domui.dom.html.NodeContainer
to.etc.domui.dom.html.InputNodeContainer
to.etc.domui.dom.html.TextArea
public class TextArea
Constructor Summary | |
---|---|
TextArea()
|
|
TextArea(int cols,
int rows)
|
Method Summary | |
---|---|
boolean |
acceptRequestParameter(java.lang.String[] values)
|
IBinder |
bind()
Return the binder for this control. |
int |
getCols()
|
java.lang.String |
getRawValue()
|
int |
getRows()
|
java.lang.String |
getValue()
Returns the current value of this input component. |
java.lang.String |
getValueSafe()
Like IDisplayControl.getValue() this returns the value of the component, but this returns null
if the value was invalid. |
boolean |
hasError()
Return T if this node currently has an error associated with it. |
boolean |
isBound()
Returns T if this control is bound to some data value. |
boolean |
isDisabled()
Returns T if the control is currently in disabled. |
boolean |
isModified()
Returns the modified-by-user flag. |
void |
setCols(int cols)
|
void |
setDisabled(boolean disabled)
Set the input to disabled mode. |
void |
setModified(boolean as)
Set or clear the modified by user flag. |
void |
setRows(int rows)
|
void |
setValue(java.lang.String v)
Set a new value into this control. |
boolean |
validate()
|
void |
visit(INodeVisitor v)
This must visit the appropriate method in the node visitor. |
Methods inherited from class to.etc.domui.dom.html.InputNodeContainer |
---|
callOnValueChanged, getOnValueChanged, isMandatory, isReadOnly, setMandatory, setOnValueChanged, setReadOnly |
Methods inherited from class to.etc.domui.dom.html.NodeContainer |
---|
add, add, add, addTable, canContain, delegateTo, findChildIndex, forceRebuild, getChild, getChildCount, getChildren, getDeepChild, getDeepChildren, getErrorFence, internalCheckNotDirty, internalClearDelta, internalClearDeltaFully, internalGetOldChildren, internalShelve, internalUnshelve, iterator, moveControlToModel, moveModelToControl, onRefresh, removeAllChildren, removeChild, removeChild, replaceChild, setControlsEnabled, setErrorFence, setErrorFence, setText, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface to.etc.domui.dom.html.IControl |
---|
getErrorLocation, isMandatory, isReadOnly, setErrorLocation, setMandatory, setReadOnly |
Methods inherited from interface to.etc.domui.dom.html.IDisplayControl |
---|
setTestID |
Methods inherited from interface to.etc.domui.dom.html.IActionControl |
---|
setTestID |
Methods inherited from interface to.etc.domui.dom.html.IHasChangeListener |
---|
getOnValueChanged, setOnValueChanged |
Methods inherited from interface to.etc.domui.dom.errors.INodeErrorDelegate |
---|
clearMessage, getMessage, setMessage |
Constructor Detail |
---|
public TextArea()
public TextArea(int cols, int rows)
Method Detail |
---|
public void visit(INodeVisitor v) throws java.lang.Exception
NodeBase
visit
in class InputNodeContainer
java.lang.Exception
public int getCols()
public void setCols(int cols)
public int getRows()
public void setRows(int rows)
public boolean validate()
public java.lang.String getValue()
IDisplayControl
ValidationException
. This means that this
call either delivers correct input (as defined by it's converter and validators), null
(when empty) or throws an exception. When a ValidationException occurs the framework
mostly ignores it - it does not produce a stacktrace or error in the client. Instead
the resulting error as posted by the error handling framework gets displayed on the
form when the request completes.
To get the value of a component while ignoring exceptions call #getValueSafe()
.
getValue
in interface IDisplayControl<java.lang.String>
IDisplayControl.getValue()
public java.lang.String getValueSafe()
IControl
IDisplayControl.getValue()
this returns the value of the component, but this returns null
if the value was invalid. For this method NULL either means the value was invalid OR
it's content was empty. To distinguish between the two call IControl.hasError()
or use
IDisplayControl.getValue()
instead of this call.
getValueSafe
in interface IControl<java.lang.String>
IControl.getValueSafe()
public boolean hasError()
NodeBase
hasError
in interface IControl<java.lang.String>
hasError
in class NodeBase
IControl.hasError()
public java.lang.String getRawValue()
public boolean isDisabled()
IControl
isDisabled
in interface IControl<java.lang.String>
public void setDisabled(boolean disabled)
IActionControl
setDisabled
in interface IActionControl
public void setValue(java.lang.String v)
IDisplayControl
setValue
in interface IDisplayControl<java.lang.String>
public boolean acceptRequestParameter(java.lang.String[] values) throws java.lang.Exception
acceptRequestParameter
in class NodeBase
java.lang.Exception
public boolean isModified()
isModified
in interface IHasModifiedIndication
IHasModifiedIndication.isModified()
public void setModified(boolean as)
setModified
in interface IHasModifiedIndication
IHasModifiedIndication.setModified(boolean)
public IBinder bind()
bind
in interface IBindable
IBindable.bind()
public boolean isBound()
isBound
in interface IBindable
IBindable.isBound()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |