public interface ItsNatTextComponentUI extends ItsNatElementComponentUI
Current ItsNatTextComponent implementations are based on
<input type="text"> and <textarea> elements, in both cases the
value attribute/property is used to save the text as markup
(the textarea version is a bit more complicated because the first value
is set as the element text content too).
ItsNatTextComponent.getItsNatTextComponentUI()| Modifier and Type | Method and Description |
|---|---|
ItsNatTextComponent |
getItsNatTextComponent()
Returns the associated component object.
|
String |
getText()
Returns the current text saved in markup.
|
boolean |
isEditable()
Returns whether the component user interface is editable or read-only.
|
void |
setEditable(boolean b)
Sets the element as editable or read-only.
|
getItsNatElementComponentgetItsNatComponentItsNatTextComponent getItsNatTextComponent()
String getText()
boolean isEditable()
void setEditable(boolean b)
Current implementation calls the methods HTMLInputElement.setReadOnly(boolean)
and HTMLTextAreaElement.setReadOnly(boolean) accordingly.
Copyright © Innowhere Software, Jose Maria Arranz Santamaria.