Package org.apache.pivot.wtk
Class AlertListener.Adapter
- java.lang.Object
-
- org.apache.pivot.wtk.AlertListener.Adapter
-
- All Implemented Interfaces:
AlertListener
- Enclosing interface:
- AlertListener
@Deprecated public static class AlertListener.Adapter extends java.lang.Object implements AlertListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.Alert listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.wtk.AlertListener
AlertListener.Adapter, AlertListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
bodyChanged(Alert alert, Component previousBody)
Deprecated.Called when an alert's body has changed.void
messageChanged(Alert alert, java.lang.String previousMessage)
Deprecated.Called when an alert's message has changed.void
messageTypeChanged(Alert alert, MessageType previousMessageType)
Deprecated.Called when an alert's message type has changed.void
optionInserted(Alert alert, int index)
Deprecated.Called when an option has been inserted into an alert's option sequence.void
optionsRemoved(Alert alert, int index, Sequence<?> removed)
Deprecated.Called when options have been removed from an alert's option sequence.void
selectedOptionChanged(Alert alert, int previousSelectedOption)
Deprecated.Called when an alert's selected option has changed.
-
-
-
Method Detail
-
messageTypeChanged
public void messageTypeChanged(Alert alert, MessageType previousMessageType)
Deprecated.Description copied from interface:AlertListener
Called when an alert's message type has changed.- Specified by:
messageTypeChanged
in interfaceAlertListener
- Parameters:
alert
- The alert that has changed.previousMessageType
- The previous message type for the alert.
-
messageChanged
public void messageChanged(Alert alert, java.lang.String previousMessage)
Deprecated.Description copied from interface:AlertListener
Called when an alert's message has changed.- Specified by:
messageChanged
in interfaceAlertListener
- Parameters:
alert
- The alert that has changed.previousMessage
- The previous message for this alert.
-
bodyChanged
public void bodyChanged(Alert alert, Component previousBody)
Deprecated.Description copied from interface:AlertListener
Called when an alert's body has changed.- Specified by:
bodyChanged
in interfaceAlertListener
- Parameters:
alert
- The alert that has changed.previousBody
- The previous body for this alert.
-
optionInserted
public void optionInserted(Alert alert, int index)
Deprecated.Description copied from interface:AlertListener
Called when an option has been inserted into an alert's option sequence.- Specified by:
optionInserted
in interfaceAlertListener
- Parameters:
alert
- The alert that has changed.index
- The index where the new option was inserted.
-
optionsRemoved
public void optionsRemoved(Alert alert, int index, Sequence<?> removed)
Deprecated.Description copied from interface:AlertListener
Called when options have been removed from an alert's option sequence.- Specified by:
optionsRemoved
in interfaceAlertListener
- 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
public void selectedOptionChanged(Alert alert, int previousSelectedOption)
Deprecated.Description copied from interface:AlertListener
Called when an alert's selected option has changed.- Specified by:
selectedOptionChanged
in interfaceAlertListener
- Parameters:
alert
- The alert that has changed.previousSelectedOption
- The index of the previously selected option.
-
-