|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.webrenderer.se.event.internal.DOMAdapter
public abstract class DOMAdapter
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 |
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DOMAdapter()
| Method Detail |
|---|
public void onCheckBoxChecked(DOMEvent e)
DOMListener
onCheckBoxChecked in interface DOMListenerpublic void onCheckBoxUnchecked(DOMEvent e)
DOMListener
onCheckBoxUnchecked in interface DOMListenerpublic void onRadioSelected(DOMEvent e)
DOMListener
onRadioSelected in interface DOMListenerpublic void onInputTextChanged(DOMEvent e)
DOMListener
onInputTextChanged in interface DOMListenerpublic void onButtonClicked(DOMEvent e)
DOMListener
onButtonClicked in interface DOMListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||