|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.ElementListObserver
public class 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 | |
---|---|
static interface |
ElementListObserver.Observer
Implement this interface to receive notifications on element lists. |
Constructor Summary | |
---|---|
ElementListObserver()
|
Method Summary | |
---|---|
static void |
addObserver(ElementListObserver.Observer observer)
Adds a new Observer to the list. |
static boolean |
isObservationActive()
|
static void |
observe(java.util.List elementList,
java.lang.String category,
java.lang.String id)
Notifies all registered observers about the element list. |
static void |
removeObserver(ElementListObserver.Observer observer)
Removes an Observer from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementListObserver()
Method Detail |
---|
public static void addObserver(ElementListObserver.Observer observer)
observer
- the observer implementationpublic static void removeObserver(ElementListObserver.Observer observer)
observer
- the observer to removepublic static void observe(java.util.List elementList, java.lang.String category, java.lang.String id)
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)public static boolean isObservationActive()
|
fop 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |