- Posts: 13
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about Android development and PDF
The class Annotation: non-working getters
- Semenovich
- Topic Author
- Offline
- New Member
-
Less
More
IP: 192.168.0.71
11 years 6 months ago #7277
by Semenovich
The class Annotation: non-working getters was created by Semenovich
I use the methods SetCheckValue() and SetRadio() for editing my PDF form.
It works great and radiobox and checkbox buttons updated. But when I call getters for the updated object of Annotation I get illegal values:
Why the methods GetIndexInPage(), GetComboItemSel() and GetComboItemCount() are not working for me?
Code:
switch (element.GetCheckStatus()) {
case 0:
element.SetCheckValue(true);
break;
case 1:
element.SetCheckValue(false);
break;
case 2:
case 3:
element.SetRadio();
break;
}
mRadaeeView.vRenderSync(page);
mListener.onFormComboButtonClick(page, element);
It works great and radiobox and checkbox buttons updated. But when I call getters for the updated object of Annotation I get illegal values:
Code:
@Override
public void onFormComboButtonClick(PDFVPage vPage, Annotation formElement) {
Log.d(TAG, "onFormComboButtonClick: page #" + vPage.GetPageNo()
+ ", annotation #" + formElement.GetIndexInPage()
+ ", selected: " + formElement.GetComboItemSel()
+ " of " + formElement.GetComboItemCount());
}
Code:
09-24 16:09:10.193: D/FormActivity(1061): onFormComboButtonClick: page #0, annotation #-1, selected: -1 of -1
Why the methods GetIndexInPage(), GetComboItemSel() and GetComboItemCount() are not working for me?
IP: 192.168.0.71
11 years 6 months ago #7279
by radaee
Replied by radaee on topic The class Annotation: non-working getters
after set check value or combo value, PDFView refresh the page, Page and Annotation object was not aviable.
you shall re-get annotation object after page refreshed.
you shall re-get annotation object after page refreshed.
- Semenovich
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
IP: 192.168.0.71
11 years 6 months ago - 11 years 6 months ago #7284
by Semenovich
Replied by Semenovich on topic The class Annotation: non-working getters
OK, I remember page number and annotation index before calling SetCheckValue() or SetRadio() methods. Then I get annotation again using these values.
Here is the code.
But the methods GetComboItemSel() and GetComboItemCount() are still not working
Here is the code.
But the methods GetComboItemSel() and GetComboItemCount() are still not working
Code:
09-25 12:00:20.304: D/FormActivity(21368): onFormComboButtonClick: page #2, annotation #27, selected: -1 of -1
Last edit: 11 years 6 months ago by carpinteyroyku.
IP: 192.168.0.71
11 years 6 months ago #7285
by radaee
Replied by radaee on topic The class Annotation: non-working getters
to be ensure you actived premium license.
if so, you can send me PDF file.
if so, you can send me PDF file.
IP: 192.168.0.71
11 years 6 months ago - 11 years 6 months ago #7286
by radaee
Replied by radaee on topic The class Annotation: non-working getters
oh, sorry, radio and check-box has no combo items.
combobox is a dropdown list box, and users can select 1 item to change text value.
combobox is a dropdown list box, and users can select 1 item to change text value.
Last edit: 11 years 6 months ago by .
- Semenovich
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 13
- Thank you received: 0
IP: 192.168.0.71
11 years 6 months ago #7288
by Semenovich
Replied by Semenovich on topic The class Annotation: non-working getters
Hmm... Nevertheless can I get the selected radiobox position?
Time to create page: 0.378 seconds