Class TextArea
- All Implemented Interfaces:
IFormField, IPlaceholderable, IAbstractElement, IBlockElement, IElement, IPropertyContainer, IAccessibleElement
Extension of the
FormField class representing a button so that
a TextAreaRenderer is used instead of the default renderer for fields.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ParagraphThe placeholder paragraph.private static final floatDefault padding X offset.Fields inherited from class FormField
tagPropertiesFields inherited from class AbstractElement
childElements, nextRenderer, stylesFields inherited from class ElementPropertyContainer
properties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets theaccessibility properties.<T1> T1getDefaultProperty(int property) Gets the default property from this entity.Gets the placeholder paragraph.protected IRendererCreates a new renderer instance.voidsetPlaceholder(Paragraph placeholder) Sets the placeholder paragraph.private voidMethods inherited from class FormField
getId, setAlternativeDescription, setHeight, setInteractive, setSize, setValue, setWidthMethods inherited from class AbstractElement
addStyle, createRendererSubTree, getChildren, getProperty, getRenderer, hasProperty, isEmpty, setAction, setNextRenderer, setPageNumberMethods inherited from class ElementPropertyContainer
deleteOwnProperty, getOwnProperty, getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, getTransparentStrokeColor, hasOwnProperty, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDashPattern, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setLineThrough, setOpacity, setProperty, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeColor, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing, simulateBold, simulateItalicMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IAbstractElement
getChildrenMethods inherited from interface IElement
createRendererSubTree, getRenderer, setNextRendererMethods inherited from interface IPropertyContainer
deleteOwnProperty, getOwnProperty, getProperty, hasOwnProperty, hasProperty, setProperty
-
Field Details
-
X_OFFSET
private static final float X_OFFSETDefault padding X offset.- See Also:
-
placeholder
The placeholder paragraph.
-
-
Constructor Details
-
TextArea
-
-
Method Details
-
getDefaultProperty
public <T1> T1 getDefaultProperty(int property) Description copied from class:FormFieldGets the default property from this entity.- Specified by:
getDefaultPropertyin interfaceIPropertyContainer- Overrides:
getDefaultPropertyin classFormField<TextArea>- Type Parameters:
T1- the return type associated with the property- Parameters:
property- the property to be retrieved- Returns:
- the default property value. If the default property is not defined,
nullwill be returned
-
getPlaceholder
Gets the placeholder paragraph.- Specified by:
getPlaceholderin interfaceIPlaceholderable- Returns:
- the placeholder paragraph
-
setPlaceholder
Sets the placeholder paragraph.- Specified by:
setPlaceholderin interfaceIPlaceholderable- Parameters:
placeholder- the paragraph to be used as placeholder
-
getAccessibilityProperties
Gets theaccessibility properties. See alsoIAccessibleElement.- Specified by:
getAccessibilityPropertiesin interfaceIAccessibleElement- Returns:
- an interface that allows to specify properties of a tagged element in Tagged PDF.
-
makeNewRenderer
Description copied from class:AbstractElementCreates a new renderer instance.- Specified by:
makeNewRendererin classAbstractElement<TextArea>- Returns:
- new
IRenderer
-
setProperties
private void setProperties()
-