org.olat.core.gui.components.form.flexible.impl.elements
Class TextElementImpl
java.lang.Object
org.olat.core.gui.components.form.flexible.impl.FormItemImpl
org.olat.core.gui.components.form.flexible.impl.elements.AbstractTextElement
org.olat.core.gui.components.form.flexible.impl.elements.TextElementImpl
- All Implemented Interfaces:
- InlineElement, InlineTextElement, TextElement, FormBaseComponentIdProvider, FormItem
- Direct Known Subclasses:
- IntegerElementImpl, JSDateChooser
public class TextElementImpl
- extends AbstractTextElement
- implements InlineTextElement
Description:
TODO: patrickb Class Description for TextElement
Initial Date: 25.11.2006
- Author:
- patrickb
|
Constructor Summary |
TextElementImpl(java.lang.String name,
java.lang.String predefinedValue)
|
TextElementImpl(java.lang.String name,
java.lang.String predefinedValue,
boolean asInline)
|
TextElementImpl(java.lang.String name,
java.lang.String predefinedValue,
java.lang.String htmlInputType)
TODO: check if htmlInputType is valid |
TextElementImpl(java.lang.String name,
java.lang.String predefinedValue,
java.lang.String htmlInputType,
boolean asInlineEditingElement)
|
|
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.elements.TextElement |
getValue, getValue, isEmpty, isEmpty, setDisplaySize, setIsEqualCheck, setItemValidatorProvider, setMaxLength, setNewOriginalValue, setNotEmptyCheck, setNotLongerThanCheck, setRegexMatchCheck, setValue |
| 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, reset, setEnabled, setErrorComponent, setErrorKey, setExampleKey, setFocus, setLabel, setLabelComponent, setMandatory, setRootForm, setUserObject, setVisible, showError, showExample, showLabel, validate |
HTML_INPUT_TYPE_TEXT
public static final java.lang.String HTML_INPUT_TYPE_TEXT
- See Also:
- Constant Field Values
HTML_INPUT_TYPE_PASSWORD
public static final java.lang.String HTML_INPUT_TYPE_PASSWORD
- See Also:
- Constant Field Values
TextElementImpl
public TextElementImpl(java.lang.String name,
java.lang.String predefinedValue)
TextElementImpl
public TextElementImpl(java.lang.String name,
java.lang.String predefinedValue,
java.lang.String htmlInputType)
- TODO: check if htmlInputType is valid
- Parameters:
name - predefinedValue - htmlInputType -
TextElementImpl
public TextElementImpl(java.lang.String name,
java.lang.String predefinedValue,
boolean asInline)
TextElementImpl
public TextElementImpl(java.lang.String name,
java.lang.String predefinedValue,
java.lang.String htmlInputType,
boolean asInlineEditingElement)
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