Class TextControl
java.lang.Object
com.openhtmltopdf.simple.xhtml.controls.AbstractControl
com.openhtmltopdf.simple.xhtml.controls.TextControl
- All Implemented Interfaces:
FormControl
public class TextControl extends AbstractControl
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_ROWSstatic intDEFAULT_SIZE -
Constructor Summary
Constructors Constructor Description TextControl(XhtmlForm form, Element e) -
Method Summary
Modifier and Type Method Description intgetMaxLength()intgetRows()intgetSize()booleanisMultiLine()booleanisPassword()booleanisReadOnly()Methods inherited from class com.openhtmltopdf.simple.xhtml.controls.AbstractControl
addFormControlListener, collectText, fireChanged, fireEnabled, fireSuccessful, getElement, getForm, getInitialValue, getIntAttribute, getMultipleValues, getName, getValue, isEnabled, isHidden, isMultiple, isSuccessful, removeFormControlListener, reset, setEnabled, setInitialValue, setMultipleValues, setSuccessful, setValue
-
Field Details
-
DEFAULT_SIZE
public static final int DEFAULT_SIZE- See Also:
- Constant Field Values
-
DEFAULT_ROWS
public static final int DEFAULT_ROWS- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
isMultiLine
public boolean isMultiLine() -
isPassword
public boolean isPassword() -
isReadOnly
public boolean isReadOnly() -
getSize
public int getSize() -
getRows
public int getRows() -
getMaxLength
public int getMaxLength()- Returns:
- the maximum length or
-1if not defined
-