com.qoppa.pdf.annotations
Class WidgetHandler

java.lang.Object
  extended by com.qoppa.pdf.annotations.WidgetHandler

public class WidgetHandler
extends Object

This class is used by WidgetComponents to set the value to their respective FormFields when focus is lost, selection is changed in a choice field, or a button is clicked.

Author:
Qoppa Software

Constructor Summary
WidgetHandler()
           
 
Method Summary
 void getValueFromComponent(com.qoppa.pdf.annotations.comps.WidgetComponent widgetComp)
          Sets the value from the WidgetComponent on the associated FormField.
 void setSelected(com.qoppa.pdf.annotations.comps.WButtonComponent widgetComp, boolean selected)
          Sets the selection state of the WidgetComponent on the associated FormField.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetHandler

public WidgetHandler()
Method Detail

getValueFromComponent

public void getValueFromComponent(com.qoppa.pdf.annotations.comps.WidgetComponent widgetComp)
                           throws PDFException
Sets the value from the WidgetComponent on the associated FormField. This method should be used with Text and Choice components.

Parameters:
widgetComp -
Throws:
PDFException

setSelected

public void setSelected(com.qoppa.pdf.annotations.comps.WButtonComponent widgetComp,
                        boolean selected)
Sets the selection state of the WidgetComponent on the associated FormField. This method should be used with Button components.

Parameters:
widgetComp -
selected -