1 16 17 package org.apache.cocoon.components.elementprocessor.impl.poi.hssf.elements; 18 19 import org.apache.cocoon.components.elementprocessor.types.NumericConverter; 20 import org.apache.cocoon.components.elementprocessor.types.NumericResult; 21 22 import java.io.IOException ; 23 24 35 public class EPUIData extends BaseElementProcessor { 36 private NumericResult _selected_tab; 37 private static final String _selected_tab_attribute = "SelectedTab"; 38 39 42 public EPUIData() { 43 super(null); 44 _selected_tab = null; 45 } 46 47 52 public int getSelectedTab() throws IOException { 53 if (_selected_tab == null) { 54 _selected_tab = NumericConverter.extractNonNegativeInteger( 55 getValue(_selected_tab_attribute)); 56 } 57 return _selected_tab.intValue(); 58 } 59 } | Popular Tags |