Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
What Is poi-examples-5.2.3.jar?
What Is poi-examples-5.2.3.jar?
✍: FYIcenter.com
poi-examples-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which
provides an API for Microsoft document files of Word, Excel, PowerPoint, and Visio.
poi-examples-5.2.3.jar provides examples for both poi.jar and poi-ooxml.jar components.
poi-examples-5.2.3.jar is distributed as part of the poi-bin-5.2.3-20220909.zip download file.
JAR File Size and Download Location:
JAR name: poi-examples-5.2.3.jar Target JDK version: 1.6 Dependency: poi.jar poi-ooxml.jar File name: poi-examples-5.2.3.jar File size: 388829 bytes Release date: 09-09-2022 Download: Apache POI Website
Here are Java Source Code files for poi-examples-5.2.3.jar:
⏎ org/apache/poi/examples/hssf/usermodel/Outlines.java
/* ==================================================================== Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==================================================================== */ package org.apache.poi.examples.hssf.usermodel; import java.io.Closeable; import java.io.FileOutputStream; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFWorkbook; /** * Creates outlines. */ public class Outlines implements Closeable { public static void main(String[] args) throws IOException, IllegalAccessException, InvocationTargetException, NoSuchMethodException { Logger LOGGER = LogManager.getLogger(Outlines.class); for (int i=1; i<=13; i++) { try (Outlines o = new Outlines()) { String log = (String) Outlines.class.getDeclaredMethod("test" + i).invoke(o); String filename = "outline" + i + ".xls"; o.writeOut(filename); LOGGER.atInfo().log("{} written. {}", filename, log); } } } private final HSSFWorkbook wb = new HSSFWorkbook(); private final HSSFSheet sheet1 = wb.createSheet("new sheet"); public void writeOut(String filename) throws IOException { try (FileOutputStream fileOut = new FileOutputStream(filename)) { wb.write(fileOut); } } @Override public void close() throws IOException { wb.close(); } public String test1() { sheet1.groupColumn(4, 7); for (int row = 0; row < 200; row++) { HSSFRow r = sheet1.createRow(row); for (int column = 0; column < 200; column++) { HSSFCell c = r.createCell(column); c.setCellValue(column); } } return "Two expanded groups."; } public String test2() { sheet1.groupColumn(2, 10); sheet1.groupColumn(4, 7); sheet1.setColumnGroupCollapsed(4, true); return "Two groups. Inner group collapsed."; } public String test3() { sheet1.groupColumn(2, 10); sheet1.groupColumn(4, 7); sheet1.setColumnGroupCollapsed(4, true); sheet1.setColumnGroupCollapsed(2, true); return "Two groups. Both collapsed."; } public String test4() { sheet1.groupColumn(2, 10); sheet1.groupColumn(4, 7); sheet1.setColumnGroupCollapsed(4, true); sheet1.setColumnGroupCollapsed(2, true); sheet1.setColumnGroupCollapsed(4, false); return "Two groups. Collapsed then inner group expanded."; } public String test5() { sheet1.groupColumn(2, 10); sheet1.groupColumn(4, 7); sheet1.setColumnGroupCollapsed(4, true); sheet1.setColumnGroupCollapsed(2, true); sheet1.setColumnGroupCollapsed(4, false); sheet1.setColumnGroupCollapsed(3, false); return "Two groups. Collapsed then reexpanded."; } public String test6() { sheet1.groupColumn(2, 10); sheet1.groupColumn(4, 10); sheet1.setColumnGroupCollapsed(4, true); sheet1.setColumnGroupCollapsed(2, true); sheet1.setColumnGroupCollapsed(3, false); return "Two groups with matching end points. Second group collapsed."; } public String test7() { sheet1.groupRow(5, 14); sheet1.groupRow(7, 10); return "Row outlines."; } public String test8() { sheet1.groupRow(5, 14); sheet1.groupRow(7, 10); sheet1.setRowGroupCollapsed(7, true); return "Row outlines. Inner group collapsed."; } public String test9() { sheet1.groupRow(5, 14); sheet1.groupRow(7, 10); sheet1.setRowGroupCollapsed(7, true); sheet1.setRowGroupCollapsed(5, true); return "Row outlines. Both collapsed."; } public String test10() { sheet1.groupRow(5, 14); sheet1.groupRow(7, 10); sheet1.setRowGroupCollapsed(7, true); sheet1.setRowGroupCollapsed(5, true); sheet1.setRowGroupCollapsed(8, false); return "Row outlines. Collapsed then inner group expanded."; } public String test11() { sheet1.groupRow(5, 14); sheet1.groupRow(7, 10); sheet1.setRowGroupCollapsed(7, true); sheet1.setRowGroupCollapsed(5, true); sheet1.setRowGroupCollapsed(8, false); sheet1.setRowGroupCollapsed(14, false); return "Row outlines. Collapsed then expanded."; } public String test12() { sheet1.groupRow(5, 14); sheet1.groupRow(7, 14); sheet1.setRowGroupCollapsed(7, true); sheet1.setRowGroupCollapsed(5, true); sheet1.setRowGroupCollapsed(6, false); return "Row outlines. Two row groups with matching end points. Second group collapsed."; } public String test13() { sheet1.groupRow(5, 14); sheet1.groupRow(7, 14); sheet1.groupRow(16, 19); sheet1.groupColumn(4, 7); sheet1.groupColumn(9, 12); sheet1.groupColumn(10, 11); return "Mixed bag."; } }
⏎ org/apache/poi/examples/hssf/usermodel/Outlines.java
Or download all of them as a single archive file:
File name: poi-examples-5.2.3-src.zip File size: 396538 bytes Release date: 2022-09-09 Download
⇒ Download and Install poi-bin-3.15-20160924.zip
⇐ What Is poi-scratchpad-5.2.3.jar?
2017-03-22, 4318👍, 0💬
Popular Posts:
What Is ojdbc7.jar for Oracle 12c R1? ojdbc7.jar for Oracle 12c R1 is the JAR files of ojdbc.jar, JD...
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...
MP3SPI is a Java Service Provider Interface that adds MP3 (MPEG 1/2/2.5 Layer 1/2/3) audio format su...
How to download and install mysql-connector-j-8.0.31 .zip?Connector/J Java library is a JDBC Driver ...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...