com.ptc.core.util.feedback.common.impl
Class AbstractFeedbackModel

java.lang.Object
  extended by com.ptc.core.util.feedback.common.impl.AbstractFeedbackModel
All Implemented Interfaces:
FeedbackModel, PropertyChangeListener, Serializable, EventListener
Direct Known Subclasses:
CommandDelegateFeedbackModel

public abstract class AbstractFeedbackModel
extends Object
implements FeedbackModel, Serializable

Convenience abstract class that can be extended by custom FeedbackModels.

Supported API: true

Extendable: true

See Also:
Serialized Form

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

Supported API: true
 void clear()
          clears the messages in the model

Supported API: true
 Enumeration getMessages()
          extracts all of the messages from the model

Supported API: true
 void removeActionListener(ActionListener listener)
          allow ActionListener to unregister with FeedbackModel

Supported API: true
protected abstract  void sendFeedback(Message a_message, FeedbackSpec a_spec)
          Issues feedback.
 int size()
          returns the total number of feedback messages in the model

Supported API: true
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ptc.core.util.feedback.common.FeedbackModel
addMessage
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

getMessages

public final Enumeration getMessages()
extracts all of the messages from the model

Supported API: true

Specified by:
getMessages in interface FeedbackModel
Returns:
Enumeration

clear

public void clear()
clears the messages in the model

Supported API: true

Specified by:
clear in interface FeedbackModel

size

public int size()
returns the total number of feedback messages in the model

Supported API: true

Specified by:
size in interface FeedbackModel
Returns:
int

addActionListener

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

Supported API: true

Specified by:
addActionListener in interface FeedbackModel
Parameters:
listener -

removeActionListener

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

Supported API: true

Specified by:
removeActionListener in interface FeedbackModel
Parameters:
listener -

sendFeedback

protected abstract void sendFeedback(Message a_message,
                                     FeedbackSpec a_spec)
Issues feedback.

Supported API: true

Parameters:
a_message -
a_spec -