|
Foxit PDF SDK
|
Public 成员函数 | |
| Filler (Form form, FillerAssistCallback assist) throws com.foxit.sdk.PDFException | |
| 构造函数。 更多... | |
| Filler (Filler other) | |
| 复制构造函数。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| PointF | getEditingTextCaretPosition (Matrix2D matrix) throws com.foxit.sdk.PDFException |
| 当文本字段或组合框处于编辑状态时获取文本光标位置。 更多... | |
| void | highlightFormFields (boolean is_highlight) throws com.foxit.sdk.PDFException |
| 决定是否高亮显示表单字段(包括签名字段)。 更多... | |
| void | highlightFormFields (boolean is_highlight, boolean is_sign_highlight) throws com.foxit.sdk.PDFException |
| 决定是否高亮显示签名字段和其他表单字段。 更多... | |
| boolean | isEmpty () |
| 检查当前对象是否为空。 更多... | |
| boolean | killFocus () throws com.foxit.sdk.PDFException |
| 从表单中移除焦点。 更多... | |
| boolean | onChar (int char_code, int flags) throws com.foxit.sdk.PDFException |
| 当字符代码即将输入到表单字段时调用此函数。 更多... | |
| boolean | onCopy () throws com.foxit.sdk.PDFException |
| 当弹出菜单项"复制"按下时调用此函数。 更多... | |
| boolean | onCut () throws com.foxit.sdk.PDFException |
| 当弹出菜单项"剪切"按下时调用此函数。 更多... | |
| boolean | onDelete () throws com.foxit.sdk.PDFException |
| 当弹出菜单项"删除"按下时调用此函数。 更多... | |
| boolean | onKeyDown (int key_code, int flags) throws com.foxit.sdk.PDFException |
| 当键盘上的键按下时调用此函数。 更多... | |
| boolean | onKeyUp (int key_code, int flags) throws com.foxit.sdk.PDFException |
| 当键盘上的键抬起时调用此函数。 更多... | |
| boolean | onLButtonDoubleClick (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| 当鼠标左键双击时调用此函数。 更多... | |
| boolean | onLButtonDown (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| 当鼠标左键按下时调用此函数。 更多... | |
| boolean | onLButtonUp (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| 当鼠标左键抬起时调用此函数。 更多... | |
| boolean | onMouseEnter (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| (保留,尚未支持)当鼠标进入某处时调用此函数。 更多... | |
| boolean | onMouseHover (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| (保留,尚未支持)当鼠标悬停在某处时调用此函数。 更多... | |
| boolean | onMouseLeave (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| (保留,尚未支持)当鼠标离开某处时调用此函数。 更多... | |
| boolean | onMouseMove (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| 当鼠标移动时调用此函数。 更多... | |
| boolean | onMouseWheel (PDFPage page, PointF point, int delta, int flags) throws com.foxit.sdk.PDFException |
| (保留,尚未支持)当鼠标滚轮移动时调用此函数。 更多... | |
| boolean | onPaste () throws com.foxit.sdk.PDFException |
| 当弹出菜单项"粘贴"按下时调用此函数。 更多... | |
| boolean | onRButtonDoubleClick (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| (保留,尚未支持)当鼠标右键双击时调用此函数。 更多... | |
| boolean | onRButtonDown (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| 当鼠标右键按下时调用此函数。 更多... | |
| boolean | onRButtonUp (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| 当鼠标右键抬起时调用此函数。 更多... | |
| boolean | onSelectAll () throws com.foxit.sdk.PDFException |
| 当弹出菜单项"全选"按下时调用此函数。 更多... | |
| boolean | onWheelButtonDoubleClick (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| (保留,尚未支持)当鼠标滚轮按钮双击时调用此函数。 更多... | |
| boolean | onWheelButtonDown (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| (保留,尚未支持)当鼠标滚轮按钮按下时调用此函数。 更多... | |
| boolean | onWheelButtonUp (PDFPage page, PointF point, int flags) throws com.foxit.sdk.PDFException |
| (保留,尚未支持)当鼠标滚轮按钮抬起时调用此函数。 更多... | |
| void | render (PDFPage page, Matrix2D matrix, Renderer renderer) throws com.foxit.sdk.PDFException |
| 在页面上绘制当前获得焦点的表单控件。 更多... | |
| boolean | setFocus (Control control) throws com.foxit.sdk.PDFException |
| 将焦点设置到表单控件上。 更多... | |
| void | setHighlightColor (long color) throws com.foxit.sdk.PDFException |
| 设置用于高亮显示表单字段的高亮颜色。 更多... | |
| void | showOverflowIndicator (boolean is_show_overflow_indicator) throws com.foxit.sdk.PDFException |
| 决定当文本字段中的文本溢出时是否显示溢出指示器。 更多... | |
Public 成员函数 继承自 com.foxit.sdk.common.Base | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
静态 Public 属性 | |
| static final int | e_EventFlagAltKey = 0x0004 |
| 事件标志:"Alt"键。 | |
| static final int | e_EventFlagAutoRepeat = 0x0020 |
| 事件标志:自动重复。 | |
| static final int | e_EventFlagCommand = 0x0200 |
| 事件标志:命令键。 | |
| static final int | e_EventFlagControlKey = 0x0002 |
| 事件标志:"Ctrl"键。 | |
| static final int | e_EventFlagKeyPad = 0x0010 |
| 事件标志:键盘。 | |
| static final int | e_EventFlagLeftButtonDown = 0x0040 |
| 事件标志:鼠标左键按下。 | |
| static final int | e_EventFlagMetaKey = 0x0008 |
| 事件标志:元键。 | |
| static final int | e_EventFlagMiddleButtonDown = 0x0080 |
| 事件标志:鼠标中键按下。 | |
| static final int | e_EventFlagRightButtonDown = 0x0100 |
| 事件标志:鼠标右键按下。 | |
| static final int | e_EventFlagShiftKey = 0x0001 |
| 事件标志:"Shift"键。 | |
| static final int | e_Vkey0 = 0x30 |
| 0键。 | |
| static final int | e_Vkey1 = 0x31 |
| 1键。 | |
| static final int | e_Vkey2 = 0x32 |
| 2键。 | |
| static final int | e_Vkey3 = 0x33 |
| 3键。 | |
| static final int | e_Vkey4 = 0x34 |
| 4键。 | |
| static final int | e_Vkey5 = 0x35 |
| 5键。 | |
| static final int | e_Vkey6 = 0x36 |
| 6键。 | |
| static final int | e_Vkey7 = 0x37 |
| 7键。 | |
| static final int | e_Vkey8 = 0x38 |
| 8键。 | |
| static final int | e_Vkey9 = 0x39 |
| 9键。 | |
| static final int | e_VkeyA = 0x41 |
| A键。 | |
| static final int | e_VkeyAdd = 0x6B |
| 数字键盘中的加号键。 | |
| static final int | e_VkeyB = 0x42 |
| B键。 | |
| static final int | e_VkeyBack = 0x08 |
| 退格键。 | |
| static final int | e_VkeyC = 0x43 |
| C键。 | |
| static final int | e_VkeyControl = 0x11 |
| Ctrl键。 | |
| static final int | e_VkeyD = 0x44 |
| D键。 | |
| static final int | e_VkeyDecimal = 0x6E |
| 数字键盘中的小数点键。 | |
| static final int | e_VkeyDelete = 0x2E |
| Delete键。 | |
| static final int | e_VkeyDivide = 0x6F |
| 数字键盘中的斜杠键。 | |
| static final int | e_VkeyDown = 0x28 |
| 下箭头键。 | |
| static final int | e_VkeyE = 0x45 |
| E键。 | |
| static final int | e_VkeyEnd = 0x23 |
| End键。 | |
| static final int | e_VkeyEscape = 0x1B |
| ESC键。 | |
| static final int | e_VkeyF = 0x46 |
| F键。 | |
| static final int | e_VkeyF1 = 0x70 |
| F1键。 | |
| static final int | e_VkeyF10 = 0x79 |
| F10键。 | |
| static final int | e_VkeyF11 = 0x7A |
| F11键。 | |
| static final int | e_VkeyF12 = 0x7B |
| F12键。 | |
| static final int | e_VkeyF2 = 0x71 |
| F2键。 | |
| static final int | e_VkeyF3 = 0x72 |
| F3键。 | |
| static final int | e_VkeyF4 = 0x73 |
| F4键。 | |
| static final int | e_VkeyF5 = 0x74 |
| F5键。 | |
| static final int | e_VkeyF6 = 0x75 |
| F6键。 | |
| static final int | e_VkeyF7 = 0x76 |
| F7键。 | |
| static final int | e_VkeyF8 = 0x77 |
| F8键。 | |
| static final int | e_VkeyF9 = 0x78 |
| F9键。 | |
| static final int | e_VkeyG = 0x47 |
| G键。 | |
| static final int | e_VkeyH = 0x48 |
| H键。 | |
| static final int | e_VkeyHelp = 0x2F |
| Help键。 | |
| static final int | e_VkeyHome = 0x24 |
| Home键。 | |
| static final int | e_VkeyI = 0x49 |
| I键。 | |
| static final int | e_VkeyInsert = 0x2D |
| Insert键。 | |
| static final int | e_VkeyJ = 0x4A |
| J键。 | |
| static final int | e_VkeyK = 0x4B |
| K键。 | |
| static final int | e_VkeyL = 0x4C |
| L键。 | |
| static final int | e_VkeyLeft = 0x25 |
| 左箭头键。 | |
| static final int | e_VkeyM = 0x4D |
| M键。 | |
| static final int | e_VkeyMenu = 0x12 |
| 菜单键。 | |
| static final int | e_VkeyMultiply = 0x6A |
| 数字键盘中的乘号键。 | |
| static final int | e_VkeyN = 0x4E |
| N键。 | |
| static final int | e_VkeyNext = 0x22 |
| Page Down键。 | |
| static final int | e_VkeyNumpad0 = 0x60 |
| 数字键盘中的0键。 | |
| static final int | e_VkeyNumpad1 = 0x61 |
| 数字键盘中的1键。 | |
| static final int | e_VkeyNumpad2 = 0x62 |
| 数字键盘中的2键。 | |
| static final int | e_VkeyNumpad3 = 0x63 |
| 数字键盘中的3键。 | |
| static final int | e_VkeyNumpad4 = 0x64 |
| 数字键盘中的4键。 | |
| static final int | e_VkeyNumpad5 = 0x65 |
| 数字键盘中的5键。 | |
| static final int | e_VkeyNumpad6 = 0x66 |
| 数字键盘中的6键。 | |
| static final int | e_VkeyNumpad7 = 0x67 |
| 数字键盘中的7键。 | |
| static final int | e_VkeyNumpad8 = 0x68 |
| 数字键盘中的8键。 | |
| static final int | e_VkeyNumpad9 = 0x69 |
| 数字键盘中的9键。 | |
| static final int | e_VkeyO = 0x4F |
| O键。 | |
| static final int | e_VkeyP = 0x50 |
| P键。 | |
| static final int | e_VkeyPause = 0x13 |
| Pause Break键。 | |
| static final int | e_VkeyPrint = 0x2A |
| Print键。 | |
| static final int | e_VkeyPrior = 0x21 |
| Page Up键。 | |
| static final int | e_VkeyQ = 0x51 |
| Q键。 | |
| static final int | e_VkeyR = 0x52 |
| R键。 | |
| static final int | e_VkeyReturn = 0x0D |
| 回车键。 | |
| static final int | e_VkeyRight = 0x27 |
| 右箭头键。 | |
| static final int | e_VkeyS = 0x53 |
| S键。 | |
| static final int | e_VkeySeparator = 0x6C |
| 数字键盘中的回车键。 | |
| static final int | e_VkeyShift = 0x10 |
| Shift键。 | |
| static final int | e_VkeySnapshot = 0x2C |
| Print Screen键。 | |
| static final int | e_VkeySpace = 0x20 |
| 空格键。 | |
| static final int | e_VkeySubtract = 0x6D |
| 数字键盘中的减号键。 | |
| static final int | e_VkeyT = 0x54 |
| T键。 | |
| static final int | e_VkeyTab = 0x09 |
| Tab键。 | |
| static final int | e_VkeyU = 0x55 |
| U键。 | |
| static final int | e_VkeyUnknown = 0x00 |
| 未知键。 | |
| static final int | e_VkeyUp = 0x26 |
| 上箭头键。 | |
| static final int | e_VkeyV = 0x56 |
| V键。 | |
| static final int | e_VkeyW = 0x57 |
| W键。 | |
| static final int | e_VkeyX = 0x58 |
| X键。 | |
| static final int | e_VkeyY = 0x59 |
| Y键。 | |
| static final int | e_VkeyZ = 0x5A |
| Z键。 | |
此类表示用于填充PDF表单的表单填充器。对于一个交互式表单应该只有一个表单填充器对象, 因此不要为一个Form 对象构造超过一个表单填充器。 建议用户实现com.foxit.sdk.ActionCallback 并通过common.Library.setActionCallback 函数将其设置到Foxit PDF SDK,以便实现表单填充器的更多功能。
| com.foxit.sdk.pdf.interform.Filler.Filler | ( | Form | form, |
| FillerAssistCallback | assist | ||
| ) | throws com.foxit.sdk.PDFException |
构造函数。
一个表单只能有一个表单填充器。
| [in] | form | 有效的PDF表单。 |
| [in] | assist | 表单填充器的辅助回调类。这应该由用户实现,不应为null。 |
| com.foxit.sdk.pdf.interform.Filler.Filler | ( | Filler | other | ) |
复制构造函数。
| [in] | other | 另一个填充器对象。 |
| synchronized void com.foxit.sdk.pdf.interform.Filler.delete | ( | ) |
直接清除C++相关资源。
| PointF com.foxit.sdk.pdf.interform.Filler.getEditingTextCaretPosition | ( | Matrix2D | matrix | ) | throws com.foxit.sdk.PDFException |
当文本字段或组合框处于编辑状态时获取文本光标位置。
| [in] | matrix | 用于将返回位置转换到设备坐标系统的矩阵。 |
| void com.foxit.sdk.pdf.interform.Filler.highlightFormFields | ( | boolean | is_highlight | ) | throws com.foxit.sdk.PDFException |
决定是否高亮显示表单字段(包括签名字段)。
除按钮字段外,所有类型的表单字段都可以高亮显示。 如果不调用此函数,Foxit PDF SDK默认会高亮显示所有表单字段(包括签名字段)。
| [in] | is_highlight | true 表示高亮显示表单字段(包括签名字段), false 表示不高亮显示表单字段(包括签名字段)。 |
| void com.foxit.sdk.pdf.interform.Filler.highlightFormFields | ( | boolean | is_highlight, |
| boolean | is_sign_highlight | ||
| ) | throws com.foxit.sdk.PDFException |
决定是否高亮显示签名字段和其他表单字段。
除按钮字段外,所有类型的表单字段都可以高亮显示。 如果不调用此函数,Foxit PDF SDK默认会高亮显示除签名字段外的所有表单字段 (签名字段默认不高亮显示)。
| [in] | is_highlight | 此布尔值用于非签名字段: true 表示高亮显示表单字段,false 表示 不高亮显示表单字段。 |
| [in] | is_sign_highlight | 此布尔值仅用于签名字段: true 表示高亮显示签名字段,false 表示 不高亮显示签名字段。 |
| boolean com.foxit.sdk.pdf.interform.Filler.isEmpty | ( | ) |
检查当前对象是否为空。
当当前对象为空时,表示当前对象无用。
| boolean com.foxit.sdk.pdf.interform.Filler.killFocus | ( | ) | throws com.foxit.sdk.PDFException |
从表单中移除焦点。
| boolean com.foxit.sdk.pdf.interform.Filler.onChar | ( | int | char_code, |
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当字符代码即将输入到表单字段时调用此函数。
| [in] | char_code | 字符代码,采用UTF16-LE编码。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onCopy | ( | ) | throws com.foxit.sdk.PDFException |
当弹出菜单项"复制"按下时调用此函数。
| boolean com.foxit.sdk.pdf.interform.Filler.onCut | ( | ) | throws com.foxit.sdk.PDFException |
当弹出菜单项"剪切"按下时调用此函数。
| boolean com.foxit.sdk.pdf.interform.Filler.onDelete | ( | ) | throws com.foxit.sdk.PDFException |
当弹出菜单项"删除"按下时调用此函数。
| boolean com.foxit.sdk.pdf.interform.Filler.onKeyDown | ( | int | key_code, |
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当键盘上的键按下时调用此函数。
| [in] | key_code | 键码。请参考从com.foxit.sdk.pdf.interform.Filler.e_VkeyUnknown 开始的值, 这应该是这些值中的一个。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onKeyUp | ( | int | key_code, |
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当键盘上的键抬起时调用此函数。
| [in] | key_code | 键码。请参考从com.foxit.sdk.pdf.interform.Filler.e_VkeyUnknown 开始的值, 这应该是这些值中的一个。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onLButtonDoubleClick | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当鼠标左键双击时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onLButtonDown | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当鼠标左键按下时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键按下的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onLButtonUp | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当鼠标左键抬起时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onMouseEnter | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
(保留,尚未支持)当鼠标进入某处时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onMouseHover | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
(保留,尚未支持)当鼠标悬停在某处时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onMouseLeave | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
(保留,尚未支持)当鼠标离开某处时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onMouseMove | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当鼠标移动时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onMouseWheel | ( | PDFPage | page, |
| PointF | point, | ||
| int | delta, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
(保留,尚未支持)当鼠标滚轮移动时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | delta | 指示鼠标滚轮移动的量。正值表示向前移动, 负值表示向后移动。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onPaste | ( | ) | throws com.foxit.sdk.PDFException |
当弹出菜单项"粘贴"按下时调用此函数。
| boolean com.foxit.sdk.pdf.interform.Filler.onRButtonDoubleClick | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
(保留,尚未支持)当鼠标右键双击时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onRButtonDown | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当鼠标右键按下时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onRButtonUp | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
当鼠标右键抬起时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onSelectAll | ( | ) | throws com.foxit.sdk.PDFException |
当弹出菜单项"全选"按下时调用此函数。
| boolean com.foxit.sdk.pdf.interform.Filler.onWheelButtonDoubleClick | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
(保留,尚未支持)当鼠标滚轮按钮双击时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onWheelButtonDown | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
(保留,尚未支持)当鼠标滚轮按钮按下时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| boolean com.foxit.sdk.pdf.interform.Filler.onWheelButtonUp | ( | PDFPage | page, |
| PointF | point, | ||
| int | flags | ||
| ) | throws com.foxit.sdk.PDFException |
(保留,尚未支持)当鼠标滚轮按钮抬起时调用此函数。
| [in] | page | 有效的PDF页面对象。 |
| [in] | point | 页面中鼠标左键抬起的点,在中。 |
| [in] | flags | 事件标志。请参考从com.foxit.sdk.pdf.interform.Filler.e_EventFlagShiftKey 开始的值, 这应该是这些值中的一个或组合。 |
| void com.foxit.sdk.pdf.interform.Filler.render | ( | PDFPage | page, |
| Matrix2D | matrix, | ||
| Renderer | renderer | ||
| ) | throws com.foxit.sdk.PDFException |
在页面上绘制当前获得焦点的表单控件。
如果页面上没有获得焦点的表单控件,此函数将不绘制任何内容。 获得焦点的表单控件必须是最顶层的可见元素,因此它应该 始终在页面内容和所有其他注释都已渲染后再渲染。
关于如何渲染表单控件(与控件注释关联),请参考 Renderer类注释中提到的推荐流程。
| [in] | page | 有效的PDF页面对象。 |
| [in] | matrix | 用于渲染的变换矩阵,通常由PDFPage.getDisplayMatrix 函数返回。 |
| [in] | renderer | 用于渲染的有效渲染器对象。 |
| boolean com.foxit.sdk.pdf.interform.Filler.setFocus | ( | Control | control | ) | throws com.foxit.sdk.PDFException |
将焦点设置到表单控件上。
| [in] | control | 表单控件对象。如果这是由默认构造函数构造且未设置任何值, 表示无焦点控件。 |
| void com.foxit.sdk.pdf.interform.Filler.setHighlightColor | ( | long | color | ) | throws com.foxit.sdk.PDFException |
设置用于高亮显示表单字段的高亮颜色。
如果不调用此函数,Foxit PDF SDK默认会使用一种浅蓝灰色(值0x80C8D2FF)。
| [in] | color | 要为高亮显示表单字段设置的高亮颜色。 |
| void com.foxit.sdk.pdf.interform.Filler.showOverflowIndicator | ( | boolean | is_show_overflow_indicator | ) | throws com.foxit.sdk.PDFException |
决定当文本字段中的文本溢出时是否显示溢出指示器。
如果不调用此函数,Foxit PDF SDK默认不会显示表单字段溢出指示器。
| [in] | is_show_overflow_indicator | true 表示当文本字段中的文本溢出时显示溢出指示器, false 表示在这种情况下不显示溢出指示器。 |