org.itsnat.comp.text
Interface ItsNatTextAreaUI

All Superinterfaces:
ItsNatComponentUI, ItsNatElementComponentUI, ItsNatTextComponentUI

public interface ItsNatTextAreaUI
extends ItsNatTextComponentUI

Is the base interface of a text area component User Interface.

Current implementation of this interface only applies to <textarea> based components. The text is saved in the value attribute/property, when loading the document is saved too as the <textarea> content.

Author:
Jose Maria Arranz Santamaria
See Also:
ItsNatTextArea.getItsNatTextAreaUI()

Method Summary
 int getColumns()
          Returns the max number of visible columns of the text area.
 ItsNatTextArea getItsNatTextArea()
          Returns the associated component object.
 int getRows()
          Returns the max number of visible rows of the text area.
 boolean isLineWrap()
          Informs whether the text area wraps lines.
 void setColumns(int cols)
          Sets the max number of visible columns of the text area.
 void setLineWrap(boolean wrap)
          Enables or disables the line wrap.
 void setRows(int rows)
          Sets the max number of visible rows of the text area.
 
Methods inherited from interface org.itsnat.comp.text.ItsNatTextComponentUI
getItsNatTextComponent, getText, isEditable, setEditable
 
Methods inherited from interface org.itsnat.comp.ItsNatElementComponentUI
getItsNatElementComponent
 
Methods inherited from interface org.itsnat.comp.ItsNatComponentUI
getItsNatComponent
 

Method Detail

getItsNatTextArea

ItsNatTextArea getItsNatTextArea()
Returns the associated component object.

Returns:
the component object.

getColumns

int getColumns()
Returns the max number of visible columns of the text area.

Returns:
the max number of visible columns.
See Also:
setColumns(int)

setColumns

void setColumns(int cols)
Sets the max number of visible columns of the text area.

Parameters:
cols - the max number of visible columns.
See Also:
getColumns()

getRows

int getRows()
Returns the max number of visible rows of the text area.

Returns:
the max number of visible rows.
See Also:
setRows(int)

setRows

void setRows(int rows)
Sets the max number of visible rows of the text area.

Parameters:
rows - the max number of visible rows.
See Also:
getRows()

isLineWrap

boolean isLineWrap()
Informs whether the text area wraps lines.

Current implementation uses the wrap attribute of the <textarea>.

Returns:
true if line wrap is enabled.
See Also:
setLineWrap(boolean)

setLineWrap

void setLineWrap(boolean wrap)
Enables or disables the line wrap.

Current implementation uses the wrap attribute of the <textarea>.

Parameters:
wrap - if true to enable the line wrap.
See Also:
isLineWrap()


Copyright © 2007 Innowhere Software Services S.L. All Rights Reserved.