public class NotifyingSlotContainer extends UniqueSlotContainer implements INotifyingSlotContainer
_useMutable
Constructor and Description |
---|
NotifyingSlotContainer() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ISlotContainerListener listener,
java.util.concurrent.Executor executor) |
void |
addSlot(ISlot slot)
Adds a slot
|
protected ISlot |
createSlot(ISlot slot) |
void |
dispose() |
void |
removeListener(ISlotContainerListener listener) |
void |
removeSlot(ISlot slot)
remove a slot
|
void |
setDelegateContainer(INotifyingSlotContainer container)
if you want to use this class as a delegate for another class, you can
retarget the source of the events to use this container
|
void |
valueChanged(ISlot slot,
java.lang.Object oldValue,
java.lang.Object newValue)
method used by the owned slot to communicate its change of value to the
container
|
clear, getMutableSlots, getSlot, getSlots, getSlots, hasSlot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSlot, hasSlot
getSlots, getSlots
public void setDelegateContainer(INotifyingSlotContainer container)
container
- public void addListener(ISlotContainerListener listener, java.util.concurrent.Executor executor)
addListener
in interface INotifyingSlotContainer
public void removeListener(ISlotContainerListener listener)
removeListener
in interface INotifyingSlotContainer
public void valueChanged(ISlot slot, java.lang.Object oldValue, java.lang.Object newValue)
INotifyingSlotContainer
valueChanged
in interface INotifyingSlotContainer
protected ISlot createSlot(ISlot slot)
createSlot
in class UniqueSlotContainer
public void addSlot(ISlot slot)
ISlotContainer
addSlot
in interface ISlotContainer
addSlot
in class UniqueSlotContainer
slot
- The feature to be added to the ISlot attributepublic void removeSlot(ISlot slot)
ISlotContainer
removeSlot
in interface ISlotContainer
removeSlot
in class UniqueSlotContainer
slot
- Description of Parameterpublic void dispose()