Interface FeedbackModel

All Superinterfaces:
EventListener, PropertyChangeListener
All Known Implementing Classes:
AbstractFeedbackModel, CommandDelegateFeedbackModel

public interface FeedbackModel extends PropertyChangeListener

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 Type
    Method
    Description
    void
    to allow ActionListener to regiser with FeedbackModel

    Supported API: true
    void
    Adds a Message to the FeedbackModel.
    void
    clears the messages in the model

    Supported API: true
    extracts all of the messages from the model

    Supported API: true
    void
    allow ActionListener to unregister with FeedbackModel

    Supported API: true
    int
    returns the total number of feedback messages in the model

    Supported API: true

    Methods 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

      void addActionListener(ActionListener listener)
      to allow ActionListener to regiser with FeedbackModel

      Supported API: true
      Parameters:
      listener -
    • removeActionListener

      void removeActionListener(ActionListener listener)
      allow ActionListener to unregister with FeedbackModel

      Supported API: true
      Parameters:
      listener -
    • addMessage

      void addMessage(Message message) throws WTException
      Adds a Message to the FeedbackModel.

      Supported API: true
      Parameters:
      message -
      Throws:
      WTException