public class CollectingAlertHandler extends Object implements AlertHandler
Constructor and Description |
---|
CollectingAlertHandler()
Create an instance with an ArrayList
|
CollectingAlertHandler(List list)
Create an instance with the specified list.
|
Modifier and Type | Method and Description |
---|---|
List |
getCollectedAlerts()
Return a list containing the message portion of any collected alerts.
|
void |
handleAlert(Page page,
String message)
Handle the alert.
|
public CollectingAlertHandler()
public CollectingAlertHandler(List list)
list
- The list to store alerts in.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()
Copyright © 2002-2012 Gargoyle Software Inc.. All Rights Reserved.