FormFieldFacade

FormFieldFacade

Overview

FormFieldFacade is a class in Aspose.PDF FOSS for Java.

Visual-style facade applied to fields created via {@link FormEditor#addField(FieldType, String, String, int, double, double, double, double)}.

This class provides 18 methods for working with FormFieldFacade objects in Java programs. Available methods include: FormFieldFacade, getAlignment, getBackgroundColor, getBorderColor, getBorderStyle, getBorderWidth, getFontName, getFontSize, getTextColor, setAlignment, setBackgroudColor, setBackgroundColor, and 6 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: BorderStyleBeveled, BorderStyleDashed, BorderStyleInset, BorderStyleSolid, BorderStyleUnderline, alignment, and 7 more.

Properties

NameTypeAccessDescription
backgroundColorColorReadReturns the field background colour, or {@code null} when unset.
borderColorColorReadReturns the field border colour, or {@code null} when unset.
borderStyleintReadReturns the border style — one of {@code BorderStyle*} constants.
borderWidthdoubleReadReturns the border width.
fontNameStringReadReturns the font name (e.g.
fontSizedoubleReadReturns the font size.
textColorColorReadReturns the text colour.
alignmentStringReadReturns the text alignment hint (e.g.
BorderStyleSolidintReadSolid border style — single line of constant width.
BorderStyleDashedintReadDashed border.
BorderStyleBeveledintReadBeveled border (3D raised look).
BorderStyleInsetintReadInset border (3D pressed look).
BorderStyleUnderlineintReadUnderline-only border.

Methods

SignatureDescription
FormFieldFacade()Creates an empty facade.
getBackgroundColor()ColorReturns the field background colour, or {@code null} when unset.
setBackgroundColor(color: Color)Sets the field background colour.
setBackgroudColor(color: Color)Mirrors the C# property name {@code BackgroudColor} (note the typo in the
original .NET API — Aspose preserves it for backward compatibility).
getBorderColor()ColorReturns the field border colour, or {@code null} when unset.
setBorderColor(color: Color)Sets the field border colour.
getBorderStyle()intReturns the border style — one of {@code BorderStyle*} constants.
setBorderStyle(style: int)Sets the border style — one of {@code BorderStyle*} constants.
getBorderWidth()doubleReturns the border width.
setBorderWidth(width: double)Sets the border width.
getFontName()StringReturns the font name (e.g.
setFontName(name: String)Sets the font name.
getFontSize()doubleReturns the font size.
setFontSize(size: double)Sets the font size.
getTextColor()ColorReturns the text colour.
setTextColor(color: Color)Sets the text colour.
getAlignment()StringReturns the text alignment hint (e.g.
setAlignment(alignment: String)Sets the text alignment hint.

See Also

 English