com.cc.framework.ui.control
Class TextareaControl

java.lang.Object
  extended bycom.cc.framework.ui.control.Control
      extended bycom.cc.framework.ui.control.TextareaControl
All Implemented Interfaces:
AccessControlled, ActionBehavior, ClientHandler, DataModel, java.io.Serializable, StateModel, TextareaDataModel, TextareaStateModel
Direct Known Subclasses:
TextPopupControl

public class TextareaControl
extends Control
implements TextareaStateModel, TextareaDataModel

TextareaControl

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

Field Summary
private  TextareaDesignModel designModel
          Designmodel
private static long serialVersionUID
          Serial Version UID
private  java.lang.Object value
          Value
 
Fields inherited from class com.cc.framework.ui.control.Control
log
 
Fields inherited from interface com.cc.framework.ui.model.StateModel
PROP_CONTROL
 
Constructor Summary
TextareaControl()
          Constructor
TextareaControl(TextareaDesignModel designModel)
          Constructor
 
Method Summary
 int getColumns()
          Returns the Number of Rows
 Converter getConverter()
          Returns the the Converter that should be used to convert Java Objects into their localized String representation.
 DataModel getDataModel()
          Returns the data model of the Control
 ControlDesignModel getDesignModel()
          Returns the design model of the control
 int getMaxLength()
          Returns maximal length for the input value
 int getRows()
          Returns the Number of Columns
 StateModel getStateModel()
          Returns the state model of the control
 java.lang.Object getValue()
          Returns the value
 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 the read only flag
 void reset()
          Resets the actual state of a control to the initial state
 void setDesignModel(TextareaDesignModel designModel)
          Sets the design model
 void setValue(java.lang.Object value)
          Sets the Value
 void setValue(RequestContext ctx, ControlValuePath path, java.lang.String[] values)
          This method is called to set the value of the data model
 
Methods inherited from class com.cc.framework.ui.control.Control
addButton, allowAjaxRendering, execute, execute, execute, execute, execute, execute, execute, getAction, getAjaxId, getButtons, getControlName, getDesignRules, getFrameworkString, getHandler, getHandlers, getHeight, getHelp, getId, getLocaleName, getName, getPermission, getPrincipal, getProperty, getRunAt, getStyle, getStyleClass, getStyleId, getSummary, getTabIndex, getTooltip, getTransaction, getUniqueStyleId, getWidth, isAjaxEnabled, isDisabled, isFormElement, markDirty, onHelp, setAjaxAttribute, setHandler, setPrincipal, show, showButton, synchronizeState, synchronizeState
 
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.StateModel
synchronizeState
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

designModel

private TextareaDesignModel designModel
Designmodel


value

private java.lang.Object value
Value

Constructor Detail

TextareaControl

public TextareaControl()
Constructor


TextareaControl

public TextareaControl(TextareaDesignModel designModel)
Constructor

Parameters:
designModel - TextareaDesignModel
Method Detail

setDesignModel

public void setDesignModel(TextareaDesignModel designModel)
Sets the design model

Parameters:
designModel - The design model

getDataModel

public DataModel getDataModel()
Description copied from class: Control
Returns the data model of the Control

Specified by:
getDataModel in class Control
Returns:
The data model
See Also:
Control.getDataModel()

getDesignModel

public ControlDesignModel getDesignModel()
Description copied from class: Control
Returns the design model of the control

Specified by:
getDesignModel in class Control
Returns:
The ControlDesignModel
See Also:
Control.getDesignModel()

getStateModel

public StateModel getStateModel()
Description copied from class: Control
Returns the state model of the control

Specified by:
getStateModel in class Control
Returns:
The state model
See Also:
Control.getStateModel()

reset

public void reset()
Description copied from interface: StateModel
Resets the actual state of a control to the initial state

Specified by:
reset in interface StateModel
See Also:
StateModel.reset()

getColumns

public int getColumns()
Returns the Number of Rows

Returns:
integer

getRows

public int getRows()
Returns the Number of Columns

Returns:
integer

getWrap

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

Returns:
Word Wrapping

getMaxLength

public int getMaxLength()
Returns maximal length for the input value

Returns:
integer

isReadonly

public boolean isReadonly()
Returns the read only flag

Returns:
True if the textarea is set to read only

getValue

public java.lang.Object getValue()
Returns the value

Specified by:
getValue in interface TextareaDataModel
Returns:
Value

setValue

public void setValue(RequestContext ctx,
                     ControlValuePath path,
                     java.lang.String[] values)
              throws java.lang.Exception
Description copied from class: Control
This method is called to set the value of the data model

Overrides:
setValue in class Control
Parameters:
ctx - The Action Context
path - Path Name of the input element
values - the values to set
Throws:
java.lang.Exception - a derived class can throw an exception if the value could not be set
See Also:
Control.setValue(com.cc.framework.adapter.RequestContext, com.cc.framework.ui.control.ControlValuePath, java.lang.String[])

setValue

public void setValue(java.lang.Object value)
Description copied from interface: TextareaDataModel
Sets the Value

Specified by:
setValue in interface TextareaDataModel
Parameters:
value - The value
See Also:
TextareaDataModel.setValue(java.lang.Object)

getConverter

public Converter getConverter()
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

Returns:
Converter or null


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