Interface FeedbackModel
- All Superinterfaces:
EventListener,PropertyChangeListener
- All Known Implementing Classes:
AbstractFeedbackModel,CommandDelegateFeedbackModel
This interface defines ways of getting and adding messages to a FeedbackModel.
The class contains an enumeration of FeedbackMessages. This enumeration
is built as actions and events occur and FeedbackMessages are added to
the FeedbackModel. The viewing mechanism can then get the messages stored
inside the model.
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionListener(ActionListener listener) to allow ActionListener to regiser with FeedbackModel
Supported API: truevoidaddMessage(Message message) Adds a Message to the FeedbackModel.voidclear()clears the messages in the model
Supported API: trueextracts all of the messages from the model
Supported API: truevoidremoveActionListener(ActionListener listener) allow ActionListener to unregister with FeedbackModel
Supported API: trueintsize()returns the total number of feedback messages in the model
Supported API: trueMethods inherited from interface java.beans.PropertyChangeListener
propertyChange
-
Method Details
-
getMessages
Enumeration getMessages()extracts all of the messages from the model
Supported API: true- Returns:
- Enumeration
-
clear
void clear()clears the messages in the model
Supported API: true -
size
int size()returns the total number of feedback messages in the model
Supported API: true- Returns:
- int
-
addActionListener
to allow ActionListener to regiser with FeedbackModel
Supported API: true- Parameters:
listener-
-
removeActionListener
allow ActionListener to unregister with FeedbackModel
Supported API: true- Parameters:
listener-
-
addMessage
Adds a Message to the FeedbackModel.
Supported API: true- Parameters:
message-- Throws:
WTException
-