1 16 17 package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements; 18 19 import java.io.IOException ; 20 21 30 public class EPFooter extends BaseElementProcessor { 31 private String _left; 32 private String _middle; 33 private String _right; 34 private static final String _left_attribute = "Left"; 35 private static final String _middle_attribute = "Middle"; 36 private static final String _right_attribute = "Right"; 37 38 41 public EPFooter() { 42 super(null); 43 _left = null; 44 _middle = null; 45 _right = null; 46 } 47 48 51 public String getLeft() { 52 if (_left == null) { 53 _left = getValue(_left_attribute); 54 if (_left == null) { 55 _left = ""; 56 } 57 } 58 return _left; 59 } 60 61 64 public String getMiddle() { 65 if (_middle == null) { 66 _middle = getValue(_middle_attribute); 67 if (_middle == null) { 68 _middle = ""; 69 } 70 } 71 return _middle; 72 } 73 74 77 public String getRight() { 78 if (_right == null) { 79 _right = getValue(_right_attribute); 80 if (_right == null) { 81 _right = ""; 82 } 83 } 84 return _right; 85 } 86 87 91 public void endProcessing() throws IOException { 92 this.getSheet().setFooter(getLeft(), getMiddle(), getRight()); 93 } 94 } | Popular Tags |