Foxit PDF SDK
|
Public Member Functions | |
GetBitmap () | |
Get the bitmap of current XFA widget. More... | |
GetDefaultValue () | |
Get the default value string. More... | |
GetHAlign () | |
Get text horizontal alignment. More... | |
GetIndex () | |
Get the index of XFA Widget in related XFA page. More... | |
GetName (type) | |
Get Widget name. More... | |
GetOptions () | |
Get options of a choice list or an Exclusion Group (for radion button only). More... | |
GetPresence () | |
Get the presence property of the XFA widget. More... | |
GetRect () | |
Get rectangle of XFA widget. More... | |
GetSignature () | |
Get the signature object from current XFA widget. More... | |
GetToolTip () | |
Get tooltip string. More... | |
GetType () | |
Get type of XFA widget. More... | |
GetVAlign () | |
Get text vertical alignment. More... | |
GetValue () | |
Get the value string. More... | |
GetXFAPage () | |
Get the related XFA page, to which current XFA widget belongs. More... | |
HasEdge (edge_pos) | |
Check if the edge for specified position exists. More... | |
IsChecked () | |
Check if current XFA widget is checked. More... | |
IsListBox () | |
Check whether the widget is listbox or not. More... | |
IsSupportMultiline () | |
Check whether the widget supports multiple lines. More... | |
IsSupportMultiSelect () | |
Check whether the widget supports multiple selections. More... | |
OnChar (input_char, flags) | |
Call this function when a character code is being input. More... | |
OnHitTest (point) | |
Call this function to do hit test for a specified point. More... | |
OnKeyDown (key_code, flags) | |
Call this function when key on the keyboard is down. More... | |
OnKeyUp (key_code, flags) | |
Call this function when key on the keyboard is up. More... | |
OnLButtonDoubleClick (point, flags) | |
Call this function when left mouse button is double-clicked . More... | |
OnLButtonDown (point, flags) | |
Call this function when left mouse button is down. More... | |
OnLButtonUp (point, flags) | |
Call this function when left mouse button is up. More... | |
OnMouseEnter () | |
Call this function when mouse enters current XFA widget. More... | |
OnMouseExit () | |
Call this function when mouse exits. More... | |
OnMouseMove (point, flags) | |
Call this function when mouse moves. More... | |
OnRButtonDown (point, flags) | |
Call this function when right mouse is down. More... | |
OnRButtonUp (point, flags) | |
Call this function when right button is up. More... | |
ResetData () | |
Reset XFA Widget Data. More... | |
SetCheckState (is_checked) | |
Set the checked state of the current XFA widget. More... | |
SetDefaultValue (value) | |
Set the default value string. More... | |
SetImage (image) | |
Set the image for current XFA widget. More... | |
SetValue (value) | |
Set the value string. More... | |
Static Public Attributes | |
static | e_HitTestAreaUnknown: number static e_HitTestAreaClient: number static e_HitTestAreaTitleBar: number static e_HitTestAreaHyperLink: number static e_WidgetTypeBarcode: number static e_WidgetTypePushButton: number static e_WidgetTypeCheckButton: number static e_WidgetTypeArc: number static e_WidgetTypeDateTimeEdit: number static e_WidgetTypeNumericEdit: number static e_WidgetTypeSignature: number static e_WidgetTypeChoiceList: number static e_WidgetTypeImageEdit: number static e_WidgetTypeLine: number static e_WidgetTypePasswordEdit: number static e_WidgetTypeRadioButton: number static e_WidgetTypeRectangle: number static e_WidgetTypeTextEdit: number static e_WidgetTypeUnknown: number static e_WidgetTypeExclGroup: number static e_WidgetTypeImage: number static e_PresenceUnknown: number static e_PresenceVisible: number static e_PresenceHidden: number static e_PresenceInactive: number static e_PresenceInvisible: number static e_WidgetNameTypeField: number static e_WidgetNameTypeCaption: number static e_WidgetNameTypeFullName: number static e_WidgethAlignTypeCenter: number static e_WidgethAlignTypeJustify: number static e_WidgethAlignTypeJustifyAll: number static e_WidgethAlignTypeLeft: number static e_WidgethAlignTypeRadix: number static e_WidgethAlignTypeRight: number static e_WidgetvAlignTypeTop: number static e_WidgetvAlignTypeBottom: number static e_WidgetvAlignTypeMiddle: number static e_WidgetEdgePositionTop: number static e_WidgetEdgePositionRight: number static e_WidgetEdgePositionBottom: number static e_WidgetEdgePositionLeft: number IsEmpty() |
Enumeration for hit test area of XFA widget. More... | |
Class FSDK.XFAWidget represents the XFA widget which is retrieved from XFA page object.
To access the menu of XFA widget, please construct a FSDK.WidgetMenu object with FSDK.XFAWidget object.
FSDK.XFAWidget.GetBitmap | ( | ) |
Get the bitmap of current XFA widget.
Applicable only when the type of current XFA widget is FSDK.XFAWidget.e_WidgetTypeImageEdit or FSDK.XFAWidget.e_WidgetTypeImage. For types that are not applicable, this function will throw exception FSDK.e_ErrUnsupported.
FSDK.XFAWidget.GetDefaultValue | ( | ) |
Get the default value string.
FSDK.XFAWidget.GetHAlign | ( | ) |
Get text horizontal alignment.
FSDK.XFAWidget.GetIndex | ( | ) |
Get the index of XFA Widget in related XFA page.
FSDK.XFAWidget.GetName | ( | type | ) |
Get Widget name.
[in] | type | Name type. Please refer to values starting from FSDK.XFAWidget.e_WidgetNameTypeField and this should be one of these values. |
FSDK.XFAWidget.GetOptions | ( | ) |
Get options of a choice list or an Exclusion Group (for radion button only).
Applicable for choice list and Exclusion Group (for radion button only). For types that are not applicable, this function will return an empty array.
FSDK.XFAWidget.GetPresence | ( | ) |
Get the presence property of the XFA widget.
The presence property controls the participation of the associated object in different phases of processing.
FSDK.XFAWidget.GetRect | ( | ) |
Get rectangle of XFA widget.
Widget rectangle is defined in XFA coordinate. XFA coordinate is defined as original point in left top, x-axis pointing to right and y-axis pointing down.
FSDK.XFAWidget.GetSignature | ( | ) |
Get the signature object from current XFA widget.
Applicable only when current XFA widget represents a signature. For types that are not applicable, this function will throw exception FSDK.e_ErrUnsupported.
FSDK.XFAWidget.GetToolTip | ( | ) |
Get tooltip string.
FSDK.XFAWidget.GetType | ( | ) |
Get type of XFA widget.
FSDK.XFAWidget.GetVAlign | ( | ) |
Get text vertical alignment.
FSDK.XFAWidget.GetValue | ( | ) |
Get the value string.
FSDK.XFAWidget.GetXFAPage | ( | ) |
Get the related XFA page, to which current XFA widget belongs.
FSDK.XFAWidget.HasEdge | ( | edge_pos | ) |
Check if the edge for specified position exists.
[in] | edge_pos | Edge position to specify which edge will be checked. Please refer to values starting from FSDK.XFAWidget.e_WidgetEdgePositionTop and this should be one of these values. |
FSDK.XFAWidget.IsChecked | ( | ) |
Check if current XFA widget is checked.
Applicable for check box or radio button as related XFA widget. For types that are not applicable, this function will return false.
FSDK.XFAWidget.IsListBox | ( | ) |
Check whether the widget is listbox or not.
FSDK.XFAWidget.IsSupportMultiline | ( | ) |
Check whether the widget supports multiple lines.
Only text edit widget which type is FSDK.XFAWidget.e_WidgetTypeTextEdit supports multiple lines.
FSDK.XFAWidget.IsSupportMultiSelect | ( | ) |
Check whether the widget supports multiple selections.
Only the list box widget supports multiline selections, Whose type is FSDK.XFAWidget.e_WidgetTypeChoiceList and when the function call FSDK.XFAWidget.IsListBox returns true.
FSDK.XFAWidget.OnChar | ( | input_char | , |
flags | |||
) |
Call this function when a character code is being input.
[in] | input_char | A character code, in UTF16-LE encoding. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.OnHitTest | ( | point | ) |
Call this function to do hit test for a specified point.
[in] | point | A point to be tested. |
FSDK.XFAWidget.OnKeyDown | ( | key_code | , |
flags | |||
) |
Call this function when key on the keyboard is down.
[in] | key_code | The key code. Please refer to values starting from FSDK.Filler.e_VkeyUnknown and this should be one of these values. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.OnKeyUp | ( | key_code | , |
flags | |||
) |
Call this function when key on the keyboard is up.
[in] | key_code | The key code. Please refer to values starting from FSDK.Filler.e_VkeyUnknown and this should be one of these values. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.OnLButtonDoubleClick | ( | point | , |
flags | |||
) |
Call this function when left mouse button is double-clicked .
[in] | point | A point where left mouse button is double-clicked in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.OnLButtonDown | ( | point | , |
flags | |||
) |
Call this function when left mouse button is down.
[in] | point | A point where left mouse button is down in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.OnLButtonUp | ( | point | , |
flags | |||
) |
Call this function when left mouse button is up.
[in] | point | A point where left mouse button is up in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.OnMouseEnter | ( | ) |
Call this function when mouse enters current XFA widget.
FSDK.XFAWidget.OnMouseExit | ( | ) |
Call this function when mouse exits.
FSDK.XFAWidget.OnMouseMove | ( | point | , |
flags | |||
) |
Call this function when mouse moves.
[in] | point | A point where left mouse button moves in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.OnRButtonDown | ( | point | , |
flags | |||
) |
Call this function when right mouse is down.
[in] | point | A point where right mouse button is down in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.OnRButtonUp | ( | point | , |
flags | |||
) |
Call this function when right button is up.
[in] | point | A point where right mouse button is up in XFA page, in PDF coordinate system. |
[in] | flags | Event flags. Please refer to values starting from FSDK.Filler.e_EventFlagShiftKey and this should be one or a combination of these values. |
FSDK.XFAWidget.ResetData | ( | ) |
Reset XFA Widget Data.
FSDK.XFAWidget.SetCheckState | ( | is_checked | ) |
Set the checked state of the current XFA widget.
Applicable for check box or radio button as related XFA widget. For types that are not applicable, this function will throw exception FSDK.e_ErrUnsupported.
[in] | is_checked | true means the current XFA widget will be checked, while false means it will not be checked. |
FSDK.XFAWidget.SetDefaultValue | ( | value | ) |
Set the default value string.
It is only useful for the XFA widget which type is FSDK.XFAWidget.e_WidgetTypeTextEdit, FSDK.XFAWidget.e_WidgetTypeNumericEdit, FSDK.XFAWidget.e_WidgetTypePasswordEdit or FSDK.XFAWidget.e_WidgetTypeDateTimeEdit.
[in] | value | A string as default value to be set. It can be an empty string. |
FSDK.XFAWidget.SetImage | ( | image | ) |
Set the image for current XFA widget.
Applicable only when the type of current XFA widget is FSDK.XFAWidget.e_WidgetTypeImageEdit. For types that are not applicable, this function will throw exception FSDK.e_ErrUnsupported.
[in] | image | An image will be set to current XFA widget. Currently, this function only supports the following image types: If try to set rest unsupported image types, exception FSDK.e_ErrUnsupported will be thrown. |
FSDK.XFAWidget.SetValue | ( | value | ) |
Set the value string.
It is only useful for the XFA widget which type is FSDK.XFAWidget.e_WidgetTypeTextEdit, FSDK.XFAWidget.e_WidgetTypeNumericEdit, FSDK.XFAWidget.e_WidgetTypePasswordEdit or FSDK.XFAWidget.e_WidgetTypeDateTimeEdit.
[in] | value | A string as value to be set. It can be an empty string. |
|
static |
Enumeration for hit test area of XFA widget.
Values of this enumeration should be used alone.
Hit test area: Unknown.