com.cc.framework.ui.model.imp
Class TextareaDesignModelImp

java.lang.Object
  extended bycom.cc.framework.ui.model.imp.ClientHandlerImp
      extended bycom.cc.framework.ui.model.imp.ControlDesignModelImp
          extended bycom.cc.framework.ui.model.imp.TextareaDesignModelImp
All Implemented Interfaces:
AccessControlled, ActionBehavior, AjaxSupport, ClientHandler, ControlDesignModel, DesignModel, java.io.Serializable, TextareaDesignModel
Direct Known Subclasses:
TextPopupDesignModelImp

public class TextareaDesignModelImp
extends ControlDesignModelImp
implements TextareaDesignModel

Designmodel for TextAreas

Since:
1.0
Version:
$Revision: 1.15 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private  int columns
          The number of columns
private  Converter converter
          The converter that should be used to convert Java Objects into their localized String representation.
private  int maxlength
          The maximal length for the value within this textare
private  boolean readonly
          readonly attribute
private  int rows
          The number of rows
private static long serialVersionUID
          Serial Version UID
private  java.lang.String wrap
          The WRAP attribute can be used to specify how to handle word-wrapping display in text input areas in forms.
 
Fields inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
 
Fields inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
 
Constructor Summary
TextareaDesignModelImp()
          Constructor for TextareaDesignModelImp
 
Method Summary
 int getColumns()
          Returns the number of Columns
 Converter getConverter()
          Returns the the Converter that should be used to convert Java Objects into their localized String representation.
 int getMaxLength()
          Returns the maximal length of the value for the textarea
 int getRows()
          Returns the number of Rows
 java.lang.String getWrap()
          The WRAP attribute can be used to specify how to handle word-wrapping display in text input areas in forms.
 boolean isReadonly()
          Returns true if the read only attribute was set
 void setColumns(int columns)
          Sets the number of Columns
 void setConverter(Converter converter)
          Sets the Converter that should be used to convert Java Objects into their localized String representation.
 void setMaxLength(int maxlength)
          Sets the maximal length of the value for the textarea
 void setReadonly(boolean readonly)
          Specifies the read only attribute
 void setRows(int rows)
          Sets the number of Rows
 void setWrap(java.lang.String wrap)
          The WRAP attribute can be used to specify how to handle word-wrapping display in text input areas in forms.
 
Methods inherited from class com.cc.framework.ui.model.imp.ControlDesignModelImp
addDesignRule, enableAjax, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getWidth, hasShadow, isAjaxEnabled, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTooltip, setTransaction, setWidth, show
 
Methods inherited from class com.cc.framework.ui.model.imp.ClientHandlerImp
evaluate, getHandler, getHandlers, setHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.cc.framework.ui.model.TextareaDesignModel
getTooltip, setTooltip
 
Methods inherited from interface com.cc.framework.ui.model.ControlDesignModel
addDesignRule, getAction, getBorder, getDesignRules, getHeight, getHelp, getId, getLocaleName, getName, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTransaction, getWidth, hasShadow, isDisabled, isDynamicDesignModel, isFormElement, setAction, setBorder, setDisabled, setDynamicDesignModel, setFormElement, setHeight, setHelp, setId, setLocaleName, setName, setPermission, setProperty, setRunAt, setShadow, setStyle, setStyleClass, setStyleId, setSummary, setTabIndex, setTransaction, setWidth
 
Methods inherited from interface com.cc.framework.ui.model.ClientHandler
getHandler, getHandlers, setHandler
 
Methods inherited from interface com.cc.framework.ui.model.AccessControlled
getPermission, show
 
Methods inherited from interface com.cc.framework.ui.model.ActionBehavior
isAjaxEnabled
 
Methods inherited from interface com.cc.framework.ui.model.AjaxSupport
enableAjax, isAjaxEnabled
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

converter

private Converter converter
The converter that should be used to convert Java Objects into their localized String representation. If no converter is specified the framework will use a default Converter that matches the beans data type.


rows

private int rows
The number of rows


columns

private int columns
The number of columns


readonly

private boolean readonly
readonly attribute


maxlength

private int maxlength
The maximal length for the value within this textare


wrap

private java.lang.String wrap
The WRAP attribute can be used to specify how to handle word-wrapping display in text input areas in forms.

Constructor Detail

TextareaDesignModelImp

public TextareaDesignModelImp()
Constructor for TextareaDesignModelImp

Method Detail

getColumns

public int getColumns()
Description copied from interface: TextareaDesignModel
Returns the number of Columns

Specified by:
getColumns in interface TextareaDesignModel
Returns:
integer
See Also:
TextareaDesignModel.getColumns()

getRows

public int getRows()
Description copied from interface: TextareaDesignModel
Returns the number of Rows

Specified by:
getRows in interface TextareaDesignModel
Returns:
integer
See Also:
TextareaDesignModel.getRows()

setColumns

public void setColumns(int columns)
Description copied from interface: TextareaDesignModel
Sets the number of Columns

Specified by:
setColumns in interface TextareaDesignModel
Parameters:
columns - Number of Columns
See Also:
TextareaDesignModel.setColumns(int)

setRows

public void setRows(int rows)
Description copied from interface: TextareaDesignModel
Sets the number of Rows

Specified by:
setRows in interface TextareaDesignModel
Parameters:
rows - Number of Rows
See Also:
TextareaDesignModel.setRows(int)

isReadonly

public boolean isReadonly()
Description copied from interface: TextareaDesignModel
Returns true if the read only attribute was set

Specified by:
isReadonly in interface TextareaDesignModel
Returns:
True if the read only attribute was set; default is false.
See Also:
TextareaDesignModel.isReadonly()

setReadonly

public void setReadonly(boolean readonly)
Description copied from interface: TextareaDesignModel
Specifies the read only attribute

Specified by:
setReadonly in interface TextareaDesignModel
Parameters:
readonly - true if the textarea should be rendered as read only
See Also:
TextareaDesignModel.setReadonly(boolean)

getMaxLength

public int getMaxLength()
Description copied from interface: TextareaDesignModel
Returns the maximal length of the value for the textarea

Specified by:
getMaxLength in interface TextareaDesignModel
Returns:
The maximal length of the value for the textarea
See Also:
TextareaDesignModel.getMaxLength()

setMaxLength

public void setMaxLength(int maxlength)
Description copied from interface: TextareaDesignModel
Sets the maximal length of the value for the textarea

Specified by:
setMaxLength in interface TextareaDesignModel
Parameters:
maxlength - The maximal length of the value for the textarea
See Also:
TextareaDesignModel.setMaxLength(int)

getWrap

public java.lang.String getWrap()
Description copied from interface: TextareaDesignModel
The WRAP attribute can be used to specify how to handle word-wrapping display in text input areas in forms.

Specified by:
getWrap in interface TextareaDesignModel
Returns:
Word Wrapping
See Also:
TextareaDesignModel.getWrap()

setWrap

public void setWrap(java.lang.String wrap)
Description copied from interface: TextareaDesignModel
The WRAP attribute can be used to specify how to handle word-wrapping display in text input areas in forms.

Specified by:
setWrap in interface TextareaDesignModel
Parameters:
wrap - Word Wrapping
See Also:
TextareaDesignModel.setWrap(java.lang.String)

getConverter

public Converter getConverter()
Description copied from interface: TextareaDesignModel
Returns the the Converter that should be used to convert Java Objects into their localized String representation. If no converter is specified the framework will use a default Converter that matches the beans data type

Specified by:
getConverter in interface TextareaDesignModel
Returns:
Converter or nullSee Also:
TextareaDesignModel.getConverter()

setConverter

public void setConverter(Converter converter)
Description copied from interface: TextareaDesignModel
Sets the Converter that should be used to convert Java Objects into their localized String representation. If no converter is specified the framework will use a default Converter that matches the beans data type.

Specified by:
setConverter in interface TextareaDesignModel
Parameters:
converter - Converters instance
See Also:
TextareaDesignModel.setConverter(com.cc.framework.convert.Converter)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.