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