Menu

How to check Radiobuttons and Buttons

Help
Leitender
2011-08-30
2013-05-28
  • Leitender

    Leitender - 2011-08-30

    Hello,

    PDAcroFormField button
    PDAcroFormField radiobutton

    Is there any possibility to check whether the FormField is a Button or a Radiobutton? Yes I know they are both Buttons, but it isnt the same I think ;)

    When I call

    System.out.println(button.isTypeBtn())
    System.out.println(radiobutton.isTypeBtn())

    it will be:

    true
    true

    Is there a another way to check a radiobutton?

     
  • mtraut

    mtraut - 2011-08-30

    How about

    button.isRadio()
    

    or

    button.isPushbutton()
    
     
  • Leitender

    Leitender - 2011-08-30

    I am sorry I must have missed that

    These functions are in PDAFButtonField.

     

Log in to post a comment.