|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.CollectingAlertHandler
public class CollectingAlertHandler
A simple alert handler that keeps track of alerts in a list.
Constructor Summary | |
---|---|
CollectingAlertHandler()
Create an instance with an ArrayList |
|
CollectingAlertHandler(java.util.List list)
Create an instance with the specified list. |
Method Summary | |
---|---|
java.util.List |
getCollectedAlerts()
Return a list containing the message portion of any collected alerts. |
void |
handleAlert(Page page,
java.lang.String message)
Handle the alert. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectingAlertHandler()
public CollectingAlertHandler(java.util.List list)
list
- The list to store alerts in.Method Detail |
---|
public java.util.List getCollectedAlerts()
public void handleAlert(Page page, java.lang.String message)
handleAlert
in interface AlertHandler
page
- The page that triggered the alertmessage
- The message in the alert.
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |