All Packages Class Hierarchy This Package Previous Next Index
Interface com.sgi.sysadm.category.CategoryListener
- public interface CategoryListener
- extends AttrListener
An instance of an implementation of CategoryListener receives
notifications of either the entire list or a subset of Item(s) in
a Category instance. Furthermore, it can receive
notifications of changes to the attributes of the Category
instance.
A CategoryListener can expect to receive zero or more
itemAdded() and attrAdded()
calls, followed by an endExists() call followed by zero or
more addItem(), changeItem(),
removeItem(), attrAdded(), attrChanged and
attrRemoved calls. The endExists() call signals
that the Category has communicated the entire set of
Item(s) discovered in the system to the CategoryListener.
- See Also:
- Category
-
beginBlockChanges()
- Called by Category prior to a block of
of changes.
-
endBlockChanges()
- Called by Category after a block of changes.
-
endExists()
- Called by Category when it has finished notifying
CategoryListener of all Item(s) of a specific type in a system.
-
itemAdded(Item)
- Called by Category to notify current list of Item(s) at the time
CategoryListener registers for notifications and when Item(s) are
later discovered by Category or added to the system.
-
itemChanged(Item, Item)
- Called by Category when an Item changes.
-
itemRemoved(Item)
- Called by Category when an Item is removed.
itemAdded
public abstract void itemAdded(Item item)
- Called by Category to notify current list of Item(s) at the time
CategoryListener registers for notifications and when Item(s) are
later discovered by Category or added to the system.
- Parameters:
- item - The Item that existed in the list of Item(s) in
Category when CategoryListener registers
for notifications or that is later added.
itemChanged
public abstract void itemChanged(Item oldItem,
Item newItem)
- Called by Category when an Item changes.
- Parameters:
- oldItem - The previous state of the Item.
- newItem - The current state of the Item.
itemRemoved
public abstract void itemRemoved(Item item)
- Called by Category when an Item is removed.
- Parameters:
- item - The Item that was removed from the list of Item(s).
beginBlockChanges
public abstract void beginBlockChanges()
- Called by Category prior to a block of
of changes.
endBlockChanges
public abstract void endBlockChanges()
- Called by Category after a block of changes.
endExists
public abstract void endExists()
- Called by Category when it has finished notifying
CategoryListener of all Item(s) of a specific type in a system.
If the Category has completed discovery of the existing Item(s)
of the specific type in the system before the time the
CategoryListener registers for notification, it will notify
CategoryListener of all the Item(s) in its list and send the
endExists() notification. If not, it will send the endExists()
notifications when it completes discovery of the existing Item(s).
All Packages Class Hierarchy This Package Previous Next Index