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)}.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
backgroundColor | Color | Read | Returns the field background colour, or {@code null} when unset. |
borderColor | Color | Read | Returns the field border colour, or {@code null} when unset. |
borderStyle | int | Read | Returns the border style — one of {@code BorderStyle*} constants. |
borderWidth | double | Read | Returns the border width. |
fontName | String | Read | Returns the font name (e.g. |
fontSize | double | Read | Returns the font size. |
textColor | Color | Read | Returns the text colour. |
alignment | String | Read | Returns the text alignment hint (e.g. |
BorderStyleSolid | int | Read | Solid border style — single line of constant width. |
BorderStyleDashed | int | Read | Dashed border. |
BorderStyleBeveled | int | Read | Beveled border (3D raised look). |
BorderStyleInset | int | Read | Inset border (3D pressed look). |
BorderStyleUnderline | int | Read | Underline-only border. |
Methods
| Signature | Description |
|---|---|
FormFieldFacade() | Creates an empty facade. |
getBackgroundColor() → Color | Returns 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() → Color | Returns the field border colour, or {@code null} when unset. |
setBorderColor(color: Color) | Sets the field border colour. |
getBorderStyle() → int | Returns the border style — one of {@code BorderStyle*} constants. |
setBorderStyle(style: int) | Sets the border style — one of {@code BorderStyle*} constants. |
getBorderWidth() → double | Returns the border width. |
setBorderWidth(width: double) | Sets the border width. |
getFontName() → String | Returns the font name (e.g. |
setFontName(name: String) | Sets the font name. |
getFontSize() → double | Returns the font size. |
setFontSize(size: double) | Sets the font size. |
getTextColor() → Color | Returns the text colour. |
setTextColor(color: Color) | Sets the text colour. |
getAlignment() → String | Returns the text alignment hint (e.g. |
setAlignment(alignment: String) | Sets the text alignment hint. |