You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FOTreeListener.java 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 1999-2004 The Apache Software Foundation.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. /* $Id$ */
  17. package org.apache.fop.fo;
  18. //java
  19. import java.util.EventListener;
  20. //sax
  21. import org.xml.sax.SAXException;
  22. //fop
  23. import org.apache.fop.apps.FOPException;
  24. /**
  25. * An interface for classes that need to handle FOTreeEvent objects as they
  26. * are fired.
  27. * The key benefit to using this interface is that the implementation can handle
  28. * PageSequence objects at a higher level, rather than dealing directly with
  29. * a lower-level SAX event.
  30. * @see FOTreeEvent
  31. */
  32. public interface FOTreeListener extends EventListener {
  33. /**
  34. * Method for handling a completed PageSequence object.
  35. * @param e the FOTreeEvent that has been fired
  36. * @throws FOPException for invalid input
  37. */
  38. void foPageSequenceComplete (FOTreeEvent e) throws FOPException;
  39. /**
  40. * Method for handling the end of the document.
  41. * @param e the FOTreeEvent that has been fired
  42. * @throws SAXException for parsing error
  43. */
  44. void foDocumentComplete (FOTreeEvent e) throws SAXException;
  45. }