com.webrenderer.event
Class DOMAdapter

java.lang.Object
  extended bycom.webrenderer.event.DOMAdapter
All Implemented Interfaces:
DOMListener, java.util.EventListener

public abstract class DOMAdapter
extends java.lang.Object
implements DOMListener

An abstract adapter class for receiving dom events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a DomEvent listener and override the methods for the events of interest. (If you implement the DomListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you only have to define methods for events you care about.)

Create a listener object using the extended class and then register it with a browser using the browser's addDomListener method. When a dom event occurs, the relevant method in the listener object is invoked and the DomEvent is passed to it.


Constructor Summary
DOMAdapter()
           
 
Method Summary
 void onButtonClicked(DOMEvent e)
          Invoked when a submit, reset or button element is clicked
 void onCheckBoxChecked(DOMEvent e)
          Invoked when a checkbox becomes checked.
 void onCheckBoxUnchecked(DOMEvent e)
          Invoked when the a checkbox becomes unchecked.
 void onDropdownChanged(DOMEvent e)
          Invoked when a select element changes value.
Note: Currently only fires for IE.
 void onInputTextChanged(DOMEvent e)
          Invoked when the user changes text in a textbox or textarea
 void onRadioSelected(DOMEvent e)
          Invoked when a radio button becomes selected.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMAdapter

public DOMAdapter()
Method Detail

onCheckBoxChecked

public void onCheckBoxChecked(DOMEvent e)
Description copied from interface: DOMListener
Invoked when a checkbox becomes checked.

Specified by:
onCheckBoxChecked in interface DOMListener

onCheckBoxUnchecked

public void onCheckBoxUnchecked(DOMEvent e)
Description copied from interface: DOMListener
Invoked when the a checkbox becomes unchecked.

Specified by:
onCheckBoxUnchecked in interface DOMListener

onRadioSelected

public void onRadioSelected(DOMEvent e)
Description copied from interface: DOMListener
Invoked when a radio button becomes selected.

Specified by:
onRadioSelected in interface DOMListener

onInputTextChanged

public void onInputTextChanged(DOMEvent e)
Description copied from interface: DOMListener
Invoked when the user changes text in a textbox or textarea

Specified by:
onInputTextChanged in interface DOMListener

onButtonClicked

public void onButtonClicked(DOMEvent e)
Description copied from interface: DOMListener
Invoked when a submit, reset or button element is clicked

Specified by:
onButtonClicked in interface DOMListener

onDropdownChanged

public void onDropdownChanged(DOMEvent e)
Description copied from interface: DOMListener
Invoked when a select element changes value.
Note: Currently only fires for IE.

Specified by:
onDropdownChanged in interface DOMListener