public class OutcomesListModel extends javax.swing.DefaultListModel<Outcome> implements Listener<NegotiationEvent>
NegotiationEvents and keeps a
DefaultListModel with the Outcomes that were reported.
Notice: some panels assume that only 1 item is added to OutcomesModel at a
time.| Constructor and Description |
|---|
OutcomesListModel(java.util.List<? extends PartyWithUtility> parties) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends PartyWithUtility> |
getParties() |
void |
notifyChange(NegotiationEvent e)
a notification call that occurs when something changed.
|
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSizepublic OutcomesListModel(java.util.List<? extends PartyWithUtility> parties)
public void notifyChange(NegotiationEvent e)
ListenerSwingUtilities.invokeLater(Runnable). We recommend to avoid
synchronize as this will can block indefinitely (see notice 1) which
might lead to deadlocks.notifyChange in interface Listener<NegotiationEvent>e - additional data, typically the new value associated with the
eventpublic java.util.List<? extends PartyWithUtility> getParties()