Package org.apache.pivot.wtk
Interface AlertListener
-
- All Known Implementing Classes:
AlertListener.Adapter
,AlertListener.Listeners
,TerraAlertSkin
public interface AlertListener
Alert listener interface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AlertListener.Adapter
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.static class
AlertListener.Listeners
Alert listeners.
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default void
bodyChanged(Alert alert, Component previousBody)
Called when an alert's body has changed.default void
messageChanged(Alert alert, java.lang.String previousMessage)
Called when an alert's message has changed.default void
messageTypeChanged(Alert alert, MessageType previousMessageType)
Called when an alert's message type has changed.default void
optionInserted(Alert alert, int index)
Called when an option has been inserted into an alert's option sequence.default void
optionsRemoved(Alert alert, int index, Sequence<?> removed)
Called when options have been removed from an alert's option sequence.default void
selectedOptionChanged(Alert alert, int previousSelectedOption)
Called when an alert's selected option has changed.
-
-
-
Method Detail
-
messageTypeChanged
default void messageTypeChanged(Alert alert, MessageType previousMessageType)
Called when an alert's message type has changed.- Parameters:
alert
- The alert that has changed.previousMessageType
- The previous message type for the alert.
-
messageChanged
default void messageChanged(Alert alert, java.lang.String previousMessage)
Called when an alert's message has changed.- Parameters:
alert
- The alert that has changed.previousMessage
- The previous message for this alert.
-
bodyChanged
default void bodyChanged(Alert alert, Component previousBody)
Called when an alert's body has changed.- Parameters:
alert
- The alert that has changed.previousBody
- The previous body for this alert.
-
optionInserted
default void optionInserted(Alert alert, int index)
Called when an option has been inserted into an alert's option sequence.- Parameters:
alert
- The alert that has changed.index
- The index where the new option was inserted.
-
optionsRemoved
default void optionsRemoved(Alert alert, int index, Sequence<?> removed)
Called when options have been removed from an alert's option sequence.- Parameters:
alert
- The alert that has changed.index
- The starting index where the options were removed.removed
- The actual sequence of the options that were removed.
-
selectedOptionChanged
default void selectedOptionChanged(Alert alert, int previousSelectedOption)
Called when an alert's selected option has changed.- Parameters:
alert
- The alert that has changed.previousSelectedOption
- The index of the previously selected option.
-
-