public class CollectingAlertHandler extends Object implements AlertHandler, Serializable
Constructor and Description |
---|
CollectingAlertHandler ()
Creates a new instance, initializing it with an empty list.
|
CollectingAlertHandler (List<String> list)
Creates an instance with the specified list.
|
Modifier and Type | Method and Description |
---|---|
void |
clear ()
Removes all alerts.
|
List<String> |
getCollectedAlerts ()
Returns a list containing the message portion of any collected alerts.
|
void |
handleAlert (Page page,
String message)
Handles the alert.
|
public CollectingAlertHandler()
public void handleAlert(Page page, String message)
handleAlert
in interface AlertHandler
page
- the page that triggered the alertmessage
- the message in the alertpublic List<String> getCollectedAlerts()
public void clear()
Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.