Package org.apache.fop.layoutmgr
Class ElementListObserver
java.lang.Object
org.apache.fop.layoutmgr.ElementListObserver
This class is used to observe Knuth element lists generated within the layout managers. This
is mainly used for the purpose of automated testing. This implementation here does nothing.
Please see the subclass within the test code.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Implement this interface to receive notifications on element lists. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addObserver
(ElementListObserver.Observer observer) Adds a new Observer to the list.static boolean
static void
Notifies all registered observers about the element list.static void
removeObserver
(ElementListObserver.Observer observer) Removes an Observer from the list.
-
Method Details
-
addObserver
Adds a new Observer to the list.- Parameters:
observer
- the observer implementation
-
removeObserver
Removes an Observer from the list. This call simply returns if the observer was not on the list and does nothing.- Parameters:
observer
- the observer to remove
-
observe
Notifies all registered observers about the element list.- Parameters:
elementList
- the Knuth element listcategory
- the category for the element list (example: main, static-content, table-cell)id
- ID for the element list (may be null)
-
isObservationActive
public static boolean isObservationActive()- Returns:
- true if observation is active, i.e. Observers are registered.
-