public class InputField extends FormField<InputField> implements IPlaceholderable
FormField class representing a button so that
a InputFieldRenderer is used.tagPropertieschildElements, nextRenderer, stylesproperties| Constructor and Description |
|---|
InputField(String id)
Creates a new input field.
|
| Modifier and Type | Method and Description |
|---|---|
AccessibilityProperties |
getAccessibilityProperties() |
<T1> T1 |
getDefaultProperty(int property) |
Paragraph |
getPlaceholder()
Gets the placeholder paragraph.
|
int |
getRotation()
Get rotation.
|
protected IRenderer |
makeNewRenderer() |
InputField |
setComb(boolean isComb)
Sets
Comb flag for the text field. |
InputField |
setMaxLen(int maxLen)
Sets the maximum length of the field's text, in characters.
|
void |
setPlaceholder(Paragraph placeholder)
Sets the placeholder paragraph.
|
InputField |
setRotation(int rotation)
Set rotation of the input field.
|
InputField |
useAsPassword(boolean isPassword)
Determines, whether the input field will be password.
|
getId, setHeight, setInteractive, setSize, setValue, setWidthaddStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberdeleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChildrencreateRendererSubTree, getRenderer, setNextRendererdeleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setPropertypublic InputField(String id)
id - the idpublic InputField useAsPassword(boolean isPassword)
Usually means that instead of glyphs '*' will be shown in case of flatten field.
If the field is not flatten, value will be ignored.
isPassword - true is this field shall be considered as password, false otherwisepublic Paragraph getPlaceholder()
getPlaceholder in interface IPlaceholderablepublic void setPlaceholder(Paragraph placeholder)
setPlaceholder in interface IPlaceholderableplaceholder - the paragraph to be used as placeholderpublic <T1> T1 getDefaultProperty(int property)
FormFieldgetDefaultProperty in interface IPropertyContainergetDefaultProperty in class FormField<InputField>property - public int getRotation()
public InputField setRotation(int rotation)
rotation - new rotation value, counterclockwise. Must be a multiple of 90 degrees.
It has sense only in interactive mode, see FormField.setInteractive(boolean)InputFieldpublic InputField setComb(boolean isComb)
Comb flag for the text field. Meaningful only if the MaxLen entry is present in the text field
dictionary and if the Multiline, Password and FileSelect flags are clear.
If true, the field is automatically divided into as many equally spaced positions, or combs, as the value of MaxLen, and the text is laid out into those combs.
isComb - boolean value specifying whether to enable combingInputField instancepublic InputField setMaxLen(int maxLen)
maxLen - the current maximum text lengthInputField instancepublic AccessibilityProperties getAccessibilityProperties()
getAccessibilityProperties in interface IAccessibleElementprotected IRenderer makeNewRenderer()
makeNewRenderer in class AbstractElement<InputField>Copyright © 1998–2024 Apryse Group NV. All rights reserved.