01: /**
02: * ===========================================
03: * JFreeReport : a free Java reporting library
04: * ===========================================
05: *
06: * Project Info: http://reporting.pentaho.org/
07: *
08: * (C) Copyright 2001-2007, by Object Refinery Ltd, Pentaho Corporation and Contributors.
09: *
10: * This library is free software; you can redistribute it and/or modify it under the terms
11: * of the GNU Lesser General Public License as published by the Free Software Foundation;
12: * either version 2.1 of the License, or (at your option) any later version.
13: *
14: * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15: * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16: * See the GNU Lesser General Public License for more details.
17: *
18: * You should have received a copy of the GNU Lesser General Public License along with this
19: * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
20: * Boston, MA 02111-1307, USA.
21: *
22: * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
23: * in the United States and other countries.]
24: *
25: * ------------
26: * BandStyleKeys.java
27: * ------------
28: * (C) Copyright 2001-2007, by Object Refinery Ltd, Pentaho Corporation and Contributors.
29: */package org.jfree.report.style;
30:
31: /**
32: * A band style sheet. Defines some base StyleKeys for all Bands.
33: *
34: * @author Thomas Morgner
35: */
36: public class BandStyleKeys {
37: /**
38: * A key for the band's 'page break before' flag.
39: */
40: public static final StyleKey PAGEBREAK_BEFORE = StyleKey
41: .getStyleKey("pagebreak-before", Boolean.class, false,
42: false);
43:
44: /**
45: * A key for the band's 'page break after' flag.
46: */
47: public static final StyleKey PAGEBREAK_AFTER = StyleKey
48: .getStyleKey("pagebreak-after", Boolean.class, false, false);
49:
50: /**
51: * A key for the band's 'display on first page' flag.
52: */
53: public static final StyleKey DISPLAY_ON_FIRSTPAGE = StyleKey
54: .getStyleKey("display-on-firstpage", Boolean.class, false,
55: false);
56:
57: /**
58: * A key for the band's 'display on last page' flag.
59: */
60: public static final StyleKey DISPLAY_ON_LASTPAGE = StyleKey
61: .getStyleKey("display-on-lastpage", Boolean.class, false,
62: false);
63:
64: /**
65: * A key for the band's 'repeat header' flag.
66: */
67: public static final StyleKey REPEAT_HEADER = StyleKey.getStyleKey(
68: "repeat-header", Boolean.class, false, false);
69:
70: /**
71: * A key for the band's 'print on bottom' flag.
72: */
73: public static final StyleKey FIXED_POSITION = StyleKey.getStyleKey(
74: "fixed-position", Float.class, false, false);
75:
76: public static final StyleKey BOOKMARK = StyleKey.getStyleKey(
77: "bookmark", String.class, false, false);
78:
79: public static final StyleKey STICKY = StyleKey.getStyleKey(
80: "sticky", Boolean.class, false, false);
81:
82: public static final StyleKey LAYOUT = StyleKey.getStyleKey(
83: "layout", String.class, false, false);
84:
85: /**
86: * An internal carrier key that is used to store the computed sheetname for a given band.
87: */
88: public static final StyleKey COMPUTED_SHEETNAME = StyleKey
89: .getStyleKey("computed-sheetname", String.class, true,
90: false);
91:
92: /**
93: * Creates a new band style-sheet.
94: */
95: private BandStyleKeys() {
96: }
97: }
|