KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hssf > record > VerticalPageBreakRecord


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 ==================================================================== */

17         
18 package org.apache.poi.hssf.record;
19
20 /**
21  * VerticalPageBreak record that stores page breaks at columns
22  * <p>
23  * This class is just used so that SID compares work properly in the RecordFactory
24  * @see PageBreakRecord
25  * @author Danny Mui (dmui at apache dot org)
26  */

27 public class VerticalPageBreakRecord extends PageBreakRecord {
28     
29     public static final short sid = PageBreakRecord.VERTICAL_SID;
30     
31     /**
32      *
33      */

34     public VerticalPageBreakRecord() {
35         super();
36     }
37
38     /**
39      * @param sid
40      */

41     public VerticalPageBreakRecord(short sid) {
42         super(sid);
43     }
44
45     /**
46      * @param id
47      * @param size
48      * @param data
49      */

50     public VerticalPageBreakRecord(short id, short size, byte[] data) {
51         super(id, size, data);
52     }
53
54     /**
55      * @param id
56      * @param size
57      * @param data
58      * @param offset
59      */

60     public VerticalPageBreakRecord(short id, short size, byte[] data, int offset) {
61         super(id, size, data, offset);
62     }
63
64     /* (non-Javadoc)
65      * @see org.apache.poi.hssf.record.Record#getSid()
66      */

67     public short getSid() {
68         return PageBreakRecord.VERTICAL_SID;
69     }
70
71 }
72
Popular Tags