org.olat.core.gui.components.form.flexible.impl.elements
Class TextAreaElementImpl

java.lang.Object
  extended by org.olat.core.gui.components.form.flexible.impl.FormItemImpl
      extended by org.olat.core.gui.components.form.flexible.impl.elements.AbstractTextElement
          extended by org.olat.core.gui.components.form.flexible.impl.elements.TextAreaElementImpl
All Implemented Interfaces:
InlineElement, TextElement, FormBaseComponentIdProvider, FormItem

public abstract class TextAreaElementImpl
extends AbstractTextElement

Description:
TextArea-Element for FlexiForm

Initial Date: 31.01.2008

Author:
rhaag

Field Summary
 
Fields inherited from interface org.olat.core.gui.components.form.flexible.FormItem
ERRORC, EXAMPLEC, LABELC
 
Fields inherited from interface org.olat.core.gui.components.form.flexible.FormBaseComponentIdProvider
DISPPREFIX
 
Constructor Summary
TextAreaElementImpl(java.lang.String name, java.lang.String predefinedValue, int rows, int cols, boolean isAutoHeightEnabled)
          Constructor for specialized TextElements, i.e.
 
Method Summary
 void evalFormRequest(UserRequest ureq)
          gets called if the implementing component is part of a form which gets partly submitted -> extract data for you and store it temporarly for redisplay without a validation
 void setTranslator(Translator translator)
           
 
Methods inherited from class org.olat.core.gui.components.form.flexible.impl.elements.AbstractTextElement
getValue, getValue, isEmpty, isEmpty, reset, setDisplaySize, setIsEqualCheck, setItemValidatorProvider, setMaxLength, setNewOriginalValue, setNotEmptyCheck, setNotLongerThanCheck, setRegexMatchCheck, setValue, validate
 
Methods inherited from class org.olat.core.gui.components.form.flexible.impl.FormItemImpl
addActionListener, clearError, doDispatchFormRequest, getAction, getActionListenersFor, getComponent, getEmptyDisplayText, getErrorC, getErrorText, getExampleC, getExampleText, getFormDispatchId, getLabelC, getLabelText, getName, getRootForm, getTranslator, getUserObject, hasError, hasExample, hasFocus, hasLabel, isEnabled, isInlineEditingOn, isMandatory, isVisible, setEmptyDisplayText, setEnabled, setErrorComponent, setErrorKey, setExampleKey, setFocus, setLabel, setLabelComponent, setMandatory, setRootForm, setUserObject, setVisible, showError, showExample, showLabel, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.gui.components.form.flexible.FormItem
addActionListener, clearError, doDispatchFormRequest, getAction, getActionListenersFor, getComponent, getErrorC, getErrorText, getExampleC, getExampleText, getLabelC, getLabelText, getName, getRootForm, getTranslator, getUserObject, hasError, hasExample, hasFocus, hasLabel, isEnabled, isMandatory, isVisible, setEnabled, setErrorComponent, setErrorKey, setExampleKey, setFocus, setLabel, setLabelComponent, setMandatory, setRootForm, setUserObject, setVisible, showError, showExample, showLabel
 
Methods inherited from interface org.olat.core.gui.components.form.flexible.FormBaseComponentIdProvider
getFormDispatchId
 

Constructor Detail

TextAreaElementImpl

public TextAreaElementImpl(java.lang.String name,
                           java.lang.String predefinedValue,
                           int rows,
                           int cols,
                           boolean isAutoHeightEnabled)
Constructor for specialized TextElements, i.e. IntegerElementImpl.

Parameters:
name -
predefinedValue - Initial value
rows - the number of lines or -1 to use default value
cols - the number of characters per line or -1 to use 100% of the available space
isAutoHeightEnabled - true: element expands to fit content height, (max 100 lines); false: specified rows used
Method Detail

evalFormRequest

public void evalFormRequest(UserRequest ureq)
Description copied from class: FormItemImpl
gets called if the implementing component is part of a form which gets partly submitted -> extract data for you and store it temporarly for redisplay without a validation

Specified by:
evalFormRequest in interface FormItem
Specified by:
evalFormRequest in class FormItemImpl
See Also:
org.olat.core.gui.components.form.flexible.FormItemImpl#evalFormRequest(org.olat.core.gui.UserRequest)

setTranslator

public void setTranslator(Translator translator)
Specified by:
setTranslator in interface FormItem
Overrides:
setTranslator in class FormItemImpl