1 2 17 18 19 package org.apache.poi.hwpf.usermodel; 20 21 import org.apache.poi.hwpf.model.types.TCAbstractType; 22 23 public class TableCellDescriptor 24 extends TCAbstractType 25 { 26 public static final int SIZE = 20; 27 28 public TableCellDescriptor() 29 { 30 field_3_brcTop = new BorderCode(); 31 field_4_brcLeft = new BorderCode(); 32 field_5_brcBottom = new BorderCode(); 33 field_6_brcRight = new BorderCode(); 34 35 } 36 37 public Object clone() 38 throws CloneNotSupportedException 39 { 40 TableCellDescriptor tc = (TableCellDescriptor)super.clone(); 41 tc.field_3_brcTop = (BorderCode)field_3_brcTop.clone(); 42 tc.field_4_brcLeft = (BorderCode)field_4_brcLeft.clone(); 43 tc.field_5_brcBottom = (BorderCode)field_5_brcBottom.clone(); 44 tc.field_6_brcRight = (BorderCode)field_6_brcRight.clone(); 45 return tc; 46 } 47 48 public static TableCellDescriptor convertBytesToTC(byte[] buf, int offset) 49 { 50 TableCellDescriptor tc = new TableCellDescriptor(); 51 tc.fillFields(buf, offset); 52 return tc; 53 } 54 55 } 56 | Popular Tags |