前回に続いて、今回は Sheet のプロパティを見ていきます。
Sheet に定義されているプロパティ
HSSFSheet と XSSFSheet に共通のプロパティ。 分類は拙者の独断と偏見。
| プロパティ名 | プロパティ値の型 | Read (Getter) |
Write (Setter) |
|---|---|---|---|
| class | java.lang.Class | ☆ | × |
| workbook | Workbook | ☆ | × |
| sheetName header footer selected |
java.lang.String Header Footer boolean |
☆ ☆ ☆ ☆ |
× × × ☆ |
| defaultRowHeight defaultRowHeightInPoints physicalNumberOfRows firstRowNum lastRowNum topRow rowSumsBelow rowSumsRight |
short float int int int short boolean boolean |
☆ ☆ ☆ ☆ ☆ ☆ ☆ ☆ |
☆ ☆ × × × × ☆ ☆ |
| defaultColumnWidth | int | ☆ | ☆ |
| autobreaks rowBreak rowBreaks columnBreak columnBreaks horizontallyCenter verticallyCenter fitToPage |
boolean int int int int boolean boolean boolean |
☆ × ☆ × ☆ ☆ ☆ ☆ |
☆ ☆ × ☆ × ☆ ☆ ☆ |
| leftCol | short | ☆ | × |
| numMergedRegions | int | ☆ | × |
| paneInformation | PaneInformation | ☆ | × |
| protect | boolean | ☆ | × |
| scenarioProtect | boolean | ☆ | × |
| displayFormulas displayGridlines displayGuts displayRowColHeadings displayZeros |
boolean |
☆ | ☆ |
| printSetup printGridlines |
PrintSetup boolean |
☆ ☆ |
× ☆ |
Header, Footer
Header, Footer はどちらも HeaderFooter というインターフェースを拡張し、同じプロパティを持っています。
| プロパティ名 | プロパティ値の型 | Read (Getter) |
Write (Setter) |
|---|---|---|---|
| class | java.lang.Class | ☆ | × |
| left center right |
java.lang.String | ☆ | ☆ |
PrintSetup
| プロパティ名 | プロパティ値の型 | Read (Getter) |
Write (Setter) |
|---|---|---|---|
| class | java.lang.Class | ☆ | × |
| paperSize landscape |
short boolean |
☆ ☆ |
☆ ☆ |
| usePage pageStartshort |
boolean |
☆ |
☆ |
| headerMargin footerMargin |
double | ☆ | ☆ |
| fitHeight fitWidth |
short | ☆ | ☆ |
| HResolution VResolution |
short | ☆ | ☆ |
| leftToRight noOrientation |
boolean boolean |
☆ | ☆ |
| noColor | boolean | ☆ | ☆ |
| notes | boolean | ☆ | ☆ |
| scale | short | ☆ | ☆ |
| copies | short | ☆ | ☆ |
| draft | boolean | ☆ | ☆ |
| validSettings | boolean | ☆ | ☆ |
HSSFSheet 特有のプロパティ
上記のプロパティに加えて、org.apache.poi.hssf.usermodel.HSSFSheet に特有のプロパティ。
| プロパティ名 | プロパティ値の型 | Read (Getter) |
Write (Setter) |
スコープ |
|---|---|---|---|---|
| sheet sheetConditionalFormatting propertiesFromSheet |
org.apache.poi.hssf.model.Sheet org.apache.poi.hssf.usermodel.HSSFSheetConditionalFormatting org.apache.poi.hssf.model.Sheet |
☆ ☆ × |
× × ☆ |
package public private |
| active | boolean | ☆ | ☆ | public |
| protectionBlock | org.apache.poi.hssf.record.aggregates.WorksheetProtectionBlock | ☆ | × | private |
| objectProtect | boolean | ☆ | × | public |
| alternateExpression alternativeExpression alternateFormula alternativeFormula |
boolean | ☆ × ☆ × |
× ☆ × ☆ |
public |
| drawingEscherAggregate drawingPatriarch |
org.apache.poi.hssf.record.EscherAggregate org.apache.poi.hssf.usermodel.HSSFPatriarch |
☆ | × | public |
| rightToLeft | boolean | ☆ | ☆ | public |
| forceFormulaRecalculation | boolean | ☆ | ☆ | public |
| gridsPrinted | boolean | ☆ | ☆ | public |
| dialog | boolean | ☆ | ☆ | public |
| password | short | ☆ | × | public |
HSSFHeader, HSSFFooter
HSSFHeader, HSSFFooter に特有のプロパティ。
| プロパティ名 | プロパティ値の型 | Read (Getter) |
Write (Setter) |
スコープ |
|---|---|---|---|---|
| headerFooterText rawText |
java.lang.String | × ☆ |
☆ × |
protected |
PaneInformation
| プロパティ名 | プロパティ値の型 | Read (Getter) |
Write (Setter) |
スコープ |
|---|---|---|---|---|
| class | java.lang.Class | ☆ | × | public |
| activePane freezePane |
byte boolean |
☆ | × | public |
| horizontalSplitPosition horizontalSplitTopRow |
short | ☆ | × | public |
| verticalSplitPosition verticalSplitLeftColumn |
short | ☆ | × | public |
HSSFPrintSetup
| プロパティ名 | プロパティ値の型 | Read (Getter) |
Write (Setter) |
スコープ |
|---|---|---|---|---|
| options | short | ☆ | ☆ | public |
- 作者: Dierk Konig,Andrew Glover,Paul King,Guillaume Laforge,Jon Skeet,杉浦孝,櫻井正樹,須江信洋,関谷和愛,佐野徹郎,寺沢尚史
- 出版社/メーカー: 毎日コミュニケーションズ
- 発売日: 2008/09/27
- メディア: 単行本(ソフトカバー)
- 購入: 5人 クリック: 146回
- この商品を含むブログ (121件) を見る