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.

FOTreeEvent.java 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.EventObject;
  20. //fop
  21. import org.apache.fop.fo.pagination.PageSequence;
  22. /**
  23. * An Event used for notification that various stages of the building of an
  24. * FO tree have been completed. Specifically, these are currently used to
  25. * notify Driver when a PageSequence has been completed.
  26. */
  27. public class FOTreeEvent extends EventObject {
  28. private PageSequence pageSeq;
  29. /**
  30. * Constructor captures the object that fired the event.
  31. * @param source the Object that fired the event.
  32. */
  33. public FOTreeEvent (Object source) {
  34. super(source);
  35. }
  36. /**
  37. * Sets the PageSequence object for this event.
  38. * @param pageSeq the PageSequence object attached to this event.
  39. */
  40. public void setPageSequence(PageSequence pageSeq) {
  41. this.pageSeq = pageSeq;
  42. }
  43. /**
  44. * @return the PageSequence object attached to this event.
  45. */
  46. public PageSequence getPageSequence () {
  47. return pageSeq;
  48. }
  49. }