Package | org.purepdf.pdf.forms |
Class | public class PushbuttonField |
Inheritance | PushbuttonField FieldBase Object |
Property | Defined By | ||
---|---|---|---|
alignment : int | FieldBase | ||
backgroundColor : RGBColor | FieldBase | ||
borderColor : RGBColor | FieldBase | ||
borderStyle : int | FieldBase | ||
borderWidth : Number | FieldBase | ||
font : BaseFont | FieldBase | ||
fontSize : Number | FieldBase | ||
iconFitToBounds : Boolean
If true the icon will be scaled to fit fully within the bounds of the annotation,
if false the border width will be taken into account. | PushbuttonField | ||
iconHorizontalAdjustment : Number
A number between 0 and 1 indicating the fraction of leftover space to allocate at the left of the icon. | PushbuttonField | ||
iconReference : PRIndirectReference
Sets the reference to an existing icon. | PushbuttonField | ||
iconVerticalAdjustment : Number
A number between 0 and 1 indicating the fraction of leftover space to allocate at the bottom of the icon. | PushbuttonField | ||
image : ImageElement | PushbuttonField | ||
layout : int
Sets the icon and label layout. | PushbuttonField | ||
proportionalIcon : Boolean
Sets the way the icon is scaled. | PushbuttonField | ||
scaleIcon : int
Sets the way the icon will be scaled. | PushbuttonField | ||
template : PdfTemplate | PushbuttonField | ||
text : String | FieldBase | ||
textColor : RGBColor | FieldBase |
Method | Defined By | ||
---|---|---|---|
PushbuttonField | |||
Gets the button appearance. | PushbuttonField | ||
Gets the pushbutton field. | PushbuttonField |
Constant | Defined By | ||
---|---|---|---|
BORDER_WIDTH_MEDIUM : Number = 2 [static] | FieldBase | ||
BORDER_WIDTH_THICK : Number = 3 [static] | FieldBase | ||
BORDER_WIDTH_THIN : Number = 1 [static] | FieldBase | ||
COMB : int [static] | FieldBase | ||
DO_NOT_SCROLL : int [static] | FieldBase | ||
DO_NOT_SPELL_CHECK : int [static] | FieldBase | ||
EDIT : int [static] | FieldBase | ||
FILE_SELECTION : int [static] | FieldBase | ||
HIDDEN : int = 1 [static] | FieldBase | ||
HIDDEN_BUT_PRINTABLE : int = 3 [static] | FieldBase | ||
LAYOUT_ICON_LEFT_LABEL_RIGHT : int = 5 [static] | PushbuttonField | ||
LAYOUT_ICON_ONLY : int = 2 [static] | PushbuttonField | ||
LAYOUT_ICON_TOP_LABEL_BOTTOM : int = 3 [static] | PushbuttonField | ||
LAYOUT_LABEL_LEFT_ICON_RIGHT : int = 6 [static] | PushbuttonField | ||
LAYOUT_LABEL_ONLY : int = 1 [static] | PushbuttonField | ||
LAYOUT_LABEL_OVER_ICON : int = 7 [static] | PushbuttonField | ||
LAYOUT_LABEL_TOP_ICON_BOTTOM : int = 4 [static] | PushbuttonField | ||
MULTILINE : int [static] | FieldBase | ||
MULTISELECT : int [static] | FieldBase | ||
PASSWORD : int [static] | FieldBase | ||
READ_ONLY : int [static] | FieldBase | ||
REQUIRED : int [static] | FieldBase | ||
SCALE_ICON_ALWAYS : int = 1 [static] | PushbuttonField | ||
SCALE_ICON_IS_TOO_BIG : int = 3 [static] | PushbuttonField | ||
SCALE_ICON_IS_TOO_SMALL : int = 4 [static] | PushbuttonField | ||
SCALE_ICON_NEVER : int = 2 [static] | PushbuttonField | ||
VISIBLE : int = 0 [static] | FieldBase | ||
VISIBLE_BUT_DOES_NOT_PRINT : int = 2 [static] | FieldBase |
iconFitToBounds | property |
iconFitToBounds:Boolean
If true
the icon will be scaled to fit fully within the bounds of the annotation,
if false
the border width will be taken into account. The default
is false
.
public function get iconFitToBounds():Boolean
public function set iconFitToBounds(value:Boolean):void
iconHorizontalAdjustment | property |
iconHorizontalAdjustment:Number
A number between 0 and 1 indicating the fraction of leftover space to allocate at the left of the icon. A value of 0 positions the icon at the left of the annotation rectangle. A value of 0.5 centers it within the rectangle. The default is 0.5.
public function get iconHorizontalAdjustment():Number
public function set iconHorizontalAdjustment(value:Number):void
iconReference | property |
iconReference:PRIndirectReference
Sets the reference to an existing icon.
public function get iconReference():PRIndirectReference
public function set iconReference(value:PRIndirectReference):void
iconVerticalAdjustment | property |
iconVerticalAdjustment:Number
A number between 0 and 1 indicating the fraction of leftover space to allocate at the bottom of the icon. A value of 0 positions the icon at the bottom of the annotation rectangle. A value of 0.5 centers it within the rectangle. The default is 0.5.
public function get iconVerticalAdjustment():Number
public function set iconVerticalAdjustment(value:Number):void
image | property |
image:ImageElement
public function get image():ImageElement
public function set image(value:ImageElement):void
layout | property |
layout:int
Sets the icon and label layout. Possible values are LAYOUT_LABEL_ONLY
,
LAYOUT_ICON_ONLY
, LAYOUT_ICON_TOP_LABEL_BOTTOM
,
LAYOUT_LABEL_TOP_ICON_BOTTOM
, LAYOUT_ICON_LEFT_LABEL_RIGHT
,
LAYOUT_LABEL_LEFT_ICON_RIGHT
and LAYOUT_LABEL_OVER_ICON
.
The default is LAYOUT_LABEL_ONLY
.
public function get layout():int
public function set layout(value:int):void
ArgumentError
|
proportionalIcon | property |
proportionalIcon:Boolean
Sets the way the icon is scaled. If true the icon is scaled proportionally, if false the scaling is done anamorphicaly.
public function get proportionalIcon():Boolean
public function set proportionalIcon(value:Boolean):void
scaleIcon | property |
scaleIcon:int
Sets the way the icon will be scaled. Possible values are
SCALE_ICON_ALWAYS
, SCALE_ICON_NEVER
,
SCALE_ICON_IS_TOO_BIG
and SCALE_ICON_IS_TOO_SMALL
.
The default is SCALE_ICON_ALWAYS
.
public function get scaleIcon():int
public function set scaleIcon(value:int):void
template | property |
template:PdfTemplate
public function get template():PdfTemplate
public function set template(value:PdfTemplate):void
PushbuttonField | () | Constructor |
public function PushbuttonField($writer:PdfWriter, $box:RectangleElement, $fieldName:String)
$writer:PdfWriter | |
$box:RectangleElement | |
$fieldName:String |
getAppearance | () | method |
public function getAppearance():PdfAppearance
Gets the button appearance.
ReturnsPdfAppearance — the button appearance
|
IOException — on error
| |
DocumentException — on error
|
getField | () | method |
public function getField():PdfFormField
Gets the pushbutton field.
ReturnsPdfFormField — the pushbutton field
|
IOException — on error
| |
DocumentException — on error
|
LAYOUT_ICON_LEFT_LABEL_RIGHT | Constant |
public static const LAYOUT_ICON_LEFT_LABEL_RIGHT:int = 5
LAYOUT_ICON_ONLY | Constant |
public static const LAYOUT_ICON_ONLY:int = 2
LAYOUT_ICON_TOP_LABEL_BOTTOM | Constant |
public static const LAYOUT_ICON_TOP_LABEL_BOTTOM:int = 3
LAYOUT_LABEL_LEFT_ICON_RIGHT | Constant |
public static const LAYOUT_LABEL_LEFT_ICON_RIGHT:int = 6
LAYOUT_LABEL_ONLY | Constant |
public static const LAYOUT_LABEL_ONLY:int = 1
LAYOUT_LABEL_OVER_ICON | Constant |
public static const LAYOUT_LABEL_OVER_ICON:int = 7
LAYOUT_LABEL_TOP_ICON_BOTTOM | Constant |
public static const LAYOUT_LABEL_TOP_ICON_BOTTOM:int = 4
SCALE_ICON_ALWAYS | Constant |
public static const SCALE_ICON_ALWAYS:int = 1
SCALE_ICON_IS_TOO_BIG | Constant |
public static const SCALE_ICON_IS_TOO_BIG:int = 3
SCALE_ICON_IS_TOO_SMALL | Constant |
public static const SCALE_ICON_IS_TOO_SMALL:int = 4
SCALE_ICON_NEVER | Constant |
public static const SCALE_ICON_NEVER:int = 2