public class PFExcelFileAccessor extends java.lang.Object implements PFComponent, PFXMLSerializable
また、従来のExcelファイル(.xls)とExcel 2007以降のXML形式ファイル(.xlsx)に対して同じメソッドで 入出力ができるが、POI内部では両者のデータモデルが異なるため、相互変換はできない。 例えば、readFile(String)メソッドで.xlsファイルを読み込んだ場合は、 writeFile(String)で.xlsxファイルとして出力することはできない。同様に、setEmptyBook()および setEmptyBook(false)で.xlsファイルのオブジェクトを作成したときも、.xlsxファイルとして出力することはできない。
このバージョンで使用することができる主な機能は次の通りである。
Excelの機能のうちこのコンポーネントで利用できない主な機能は次の通りである。
コンストラクタと説明 |
---|
PFExcelFileAccessor()
デフォルトコンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
int |
addMergedRegion(int firstRow,
int lastRow,
int firstCol,
int lastCol)
現在のシート内にセルの結合領域を追加する。
|
void |
createCell(int index)
現在の行に位置指定でセルを作成する。
|
void |
createCell(int index,
int type)
現在の行に位置と種別指定でセルを作成する。
|
void |
createCellIfNeeded(int index)
現在の行にあるセルを位置指定で選択する。
|
short |
createCellStyle()
セル書式を作成して識別番号を返す。
|
short |
createCellStyleFromCurrent()
現在のセル書式を複製して識別番号を返す。
|
short |
createFont()
フォントを作成して識別番号を返す。
|
void |
createRow(int index)
行を位置指定で作成する。
|
void |
createRowIfNeeded(int index)
行を位置指定で選択する。
|
void |
createSheet()
シートを作成する。
|
void |
createSheet(java.lang.String name)
シートを名前指定で作成する。
|
static short |
getBorderDashDot()
一点鎖線(細線)罫線の識別番号を取得する。
|
static short |
getBorderDashDotDot()
二点鎖線(細線)罫線の識別番号を取得する。
|
static short |
getBorderDashed()
破線(細線)罫線の識別番号を取得する。
|
static short |
getBorderDotted()
点線(細線)罫線の識別番号を取得する。
|
static short |
getBorderDouble()
二重罫線の識別番号を取得する。
|
static short |
getBorderHair()
ヘアライン罫線の識別番号を取得する。
|
static short |
getBorderMedium()
標準罫線の識別番号を取得する。
|
static short |
getBorderMediumDashDot()
一点鎖線罫線の識別番号を取得する。
|
static short |
getBorderMediumDashDotDot()
二点鎖線罫線の識別番号を取得する。
|
static short |
getBorderMediumDashed()
破線罫線の識別番号を取得する。
|
static short |
getBorderNone()
罫線なしの識別番号を取得する。
|
static short |
getBorderThick()
太線罫線の識別番号を取得する。
|
static short |
getBorderThin()
細線罫線の識別番号を取得する。
|
static short |
getCellStyleAlignmentCenter()
セル書式の横方向テキスト配置で中央揃え状態の識別番号を取得する。
|
static short |
getCellStyleAlignmentGeneral()
セル書式の横方向テキスト配置で標準状態の識別番号を取得する。
|
static short |
getCellStyleAlignmentLeft()
セル書式の横方向テキスト配置で左詰め状態の識別番号を取得する。
|
static short |
getCellStyleAlignmentRight()
セル書式の横方向テキスト配置で右詰め状態の識別番号を取得する。
|
short |
getCellStyleOfCurrentCell()
現在のセルのセル書式(識別番号)を取得する。
|
static short |
getCellStyleVerticalAlignmentBottom()
セル書式の縦方向テキスト配置で下詰め状態の識別番号を取得する。
|
static short |
getCellStyleVerticalAlignmentCenter()
セル書式の縦方向テキスト配置で中央揃え状態の識別番号を取得する。
|
static short |
getCellStyleVerticalAlignmentTop()
セル書式の縦方向テキスト配置で上詰め状態の識別番号を取得する。
|
static int |
getCellTypeBlank()
セル種別空欄の識別番号を取得する。
|
static int |
getCellTypeBoolean()
セル種別論理値の識別番号を取得する。
|
static int |
getCellTypeError()
セル種別エラーの識別番号を取得する。
|
static int |
getCellTypeFormula()
セル種別式の識別番号を取得する。
|
static int |
getCellTypeNumeric()
セル種別数値の識別番号を取得する。
|
static int |
getCellTypeString()
セル種別文字列の識別番号を取得する。
|
static short |
getColorAutomatic()
色「自動」の識別番号を取得する。
|
static short |
getColorBlack()
色「黒」の識別番号を取得する。
|
static short |
getColorBlue()
色「青」の識別番号を取得する。
|
static short |
getColorBrown()
色「茶」の識別番号を取得する。
|
static java.awt.Color |
getColorFromIndex(short index)
色オブジェクト(Color)を識別番号から取得する。
|
static short |
getColorGreen()
色「緑」の識別番号を取得する。
|
static short |
getColorGrey25()
色「グレー25%」の識別番号を取得する。
|
static short |
getColorGrey40()
色「グレー40%」の識別番号を取得する。
|
static short |
getColorGrey50()
色「グレー50%」の識別番号を取得する。
|
static short |
getColorGrey80()
色「グレー80%」の識別番号を取得する。
|
static short |
getColorIndexFrom(java.awt.Color color)
色オブジェクトから最も近い色の識別番号を取得する。
|
static short |
getColorLightBlue()
色「ライトブルー」の識別番号を取得する。
|
static short |
getColorLightGreen()
色「ライトグリーン」の識別番号を取得する。
|
static short |
getColorOrange()
色「オレンジ」の識別番号を取得する。
|
static short |
getColorPink()
色「ピンク」の識別番号を取得する。
|
static short |
getColorRed()
色「赤」の識別番号を取得する。
|
static short |
getColorViolet()
色「紫」の識別番号を取得する。
|
static short |
getColorWhite()
色「白」の識別番号を取得する。
|
static short |
getColorYellow()
色「黄」の識別番号を取得する。
|
int |
getColumnWidth(int index)
列幅を位置指定で取得する。
|
int |
getComponentID()
コンポーネントIDを取得する。
|
java.lang.String |
getComponentKey()
コンポーネントキーを取得する。
|
PFMultiLocaleString |
getComponentKeys()
全ロケール分のコンポーネントキーを返す。
|
java.lang.String |
getComponentName()
コンポーネント名称を取得する。
|
java.lang.String |
getComponentPublicName()
コンポーネント公開名を取得する.
|
java.lang.String |
getComponentString()
コンポーネントの文字列表現を取得する。
|
org.apache.poi.ss.usermodel.Workbook |
getCurrentBook()
現在のブックを取得する。
|
org.apache.poi.ss.usermodel.Cell |
getCurrentCell()
現在のセルを取得する。
|
int |
getCurrentCellColumnIndex()
現在のセルの列位置を取得する。
|
java.lang.String |
getCurrentCellCommentString()
現在のセルのコメント文字列を取得する。
|
java.lang.String |
getCurrentCellFormula()
現在のセルの式の文字列を取得する。
|
int |
getCurrentCellFormulaResultType()
現在のセルの数式の評価結果の種別を取得する。
|
java.lang.Object |
getCurrentCellFormulaResultValue()
現在のセルの数式の値を取得する。
|
java.lang.String |
getCurrentCellHyperlinkAddress()
現在のセルに関連付けられたハイパーリンクアドレス文字列を取得する。
|
int |
getCurrentCellMergedRegionIndex()
現在のセルが含まれる結合領域のインデックスを取得する。
|
int |
getCurrentCellRowIndex()
現在のセルの行位置を取得する。
|
short |
getCurrentCellStyleAlignment()
現在のセル書式の横方向テキスト配置状態(識別番号)を取得する。
|
short |
getCurrentCellStyleBorderBottom()
現在のセル書式の下罫線状態(識別番号)を取得する。
|
short |
getCurrentCellStyleBorderLeft()
現在のセル書式の左罫線状態(識別番号)を取得する。
|
short |
getCurrentCellStyleBorderRight()
現在のセル書式の右罫線状態(識別番号)を取得する。
|
short |
getCurrentCellStyleBorderTop()
現在のセル書式の上罫線状態(識別番号)を取得する。
|
short |
getCurrentCellStyleBottomBorderColor()
現在のセル書式の下罫線色(識別番号)を取得する。
|
short |
getCurrentCellStyleFillColor()
現在のセル書式の塗りつぶし色(識別番号)を取得する。
|
short |
getCurrentCellStyleFont()
現在のセル書式のフォント(識別番号)を取得する。
|
short |
getCurrentCellStyleIndex()
現在のセルスタイルの識別番号を取得する。
|
short |
getCurrentCellStyleLeftBorderColor()
現在のセル書式の左罫線色(識別番号)を取得する。
|
short |
getCurrentCellStyleRightBorderColor()
現在のセル書式の右罫線色(識別番号)を取得する。
|
short |
getCurrentCellStyleTopBorderColor()
現在のセル書式の上罫線色(識別番号)を取得する。
|
short |
getCurrentCellStyleVerticalAlignment()
現在のセル書式の縦方向テキスト配置状態(識別番号)を取得する。
|
int |
getCurrentCellType()
現在のセルの種別を取得する。
|
boolean |
getCurrentCellValueAsBoolean()
現在のセルの論理値(boolean)を取得する。
|
java.util.Date |
getCurrentCellValueAsDate()
現在のセルの日付の値を取得する。
|
double |
getCurrentCellValueAsDouble()
現在のセルの数値(double)を取得する。
|
java.lang.String |
getCurrentCellValueAsString()
現在のセルの値を文字列として取得する。
|
short |
getCurrentFontColor()
現在のフォントの色の識別番号を取得する。
|
short |
getCurrentFontHeightInPoints()
現在のフォントの高さを取得する。
|
short |
getCurrentFontIndex()
現在のフォントの識別番号を取得する。
|
java.lang.String |
getCurrentFontName()
現在のフォントの名前を取得する。
|
byte |
getCurrentFontUnderlineType()
現在のフォントの下線種別を取得する。
|
int |
getCurrentLastCellNum()
現在の行にある最後のセルの位置を取得する。
|
int |
getCurrentLastRowNum()
最後の行位置を取得する。
|
int |
getCurrentPhysicalNumberOfCells()
現在の行にある実際のセルの数を取得する。
|
int |
getCurrentPhysicalNumberOfRows()
実際の行数を取得する。
|
org.apache.poi.ss.usermodel.Row |
getCurrentRow()
現在の行オブジェクトを取得する。
|
short |
getCurrentRowHeight()
現在の行の高さを取得する。
|
int |
getCurrentRowIndex()
現在の行の位置を取得する。
|
org.apache.poi.ss.usermodel.Sheet |
getCurrentSheet()
現在のシートを取得する。
|
int |
getCurrentSheetIndex()
現在のシートの位置を取得する。
|
static byte |
getFontUnderlineAccountingDouble()
フォントの下線種別「二重下線(会計)」を取得する。
|
static byte |
getFontUnderlineAccountingSingle()
フォントの下線種別「下線(会計)」を取得する。
|
static byte |
getFontUnderlineDouble()
フォントの下線種別「二重下線」を取得する。
|
static byte |
getFontUnderlineNone()
フォントの下線種別「なし」を取得する。
|
static byte |
getFontUnderlineSingle()
フォントの下線種別「下線」を取得する。
|
java.lang.String |
getFooterCenter()
現在のシートの印刷用フッタ(中央)を取得する。
|
java.lang.String |
getFooterLeft()
現在のシートの印刷用フッタ(左)を取得する。
|
java.lang.String |
getFooterRight()
現在のシートの印刷用フッタ(右)を取得する。
|
java.lang.String |
getHeaderCenter()
現在のシートの印刷用ヘッダ(中央)を取得する。
|
java.lang.String |
getHeaderLeft()
現在のシートの印刷用ヘッダ(左)を取得する。
|
java.lang.String |
getHeaderRight()
現在のシートの印刷用ヘッダ(右)を取得する。
|
static short |
getMarginTypeBottom()
印刷用下余白の識別番号を取得する。
|
static short |
getMarginTypeFooter()
印刷用フッタ余白の識別番号を取得する。
|
static short |
getMarginTypeHeader()
印刷用ヘッダ余白の識別番号を取得する。
|
static short |
getMarginTypeLeft()
印刷用左余白の識別番号を取得する。
|
static short |
getMarginTypeRight()
印刷用右余白の識別番号を取得する。
|
static short |
getMarginTypeTop()
印刷用上余白の識別番号を取得する。
|
int |
getMergedRegionColumnFirst(int index)
現在のシートに含まれる結合領域の開始列位置を取得する。
|
int |
getMergedRegionColumnLast(int index)
現在のシートに含まれる結合領域の終了列位置を取得する。
|
int |
getMergedRegionIndexAt(int row,
int col)
現在のシートで指定位置のセルを含む結合領域を取得する。
|
int |
getMergedRegionRowFirst(int index)
現在のシートに含まれる結合領域の開始行位置を取得する。
|
int |
getMergedRegionRowLast(int index)
現在のシートに含まれる結合領域の終了行位置を取得する。
|
short |
getNumberOfCellStyles()
セル書式の数を取得する。
|
short |
getNumberOfFonts()
フォントの数を取得する。
|
int |
getNumberOfMergedRegions()
現在のシート内のセルの結合領域の数を取得する。
|
int |
getNumberOfSheets()
シートの数を取得する。
|
PFObjectList |
getPicturesAll()
現在のブックの全画像リストを取得する。
|
double |
getPrintingMargin(short margin)
現在のシートの印刷用余白を位置指定で取得する。
|
static short |
getPrintingPaperSizeA4()
印刷用紙サイズA4の識別番号を取得する。
|
static short |
getPrintingPaperSizeA5()
印刷用紙サイズA5の識別番号を取得する。
|
static int |
getShapeLineStyleDashGel()
図形線種別の破線の識別番号を取得する。
|
static int |
getShapeLineStyleDotGel()
図形線種別の点線の識別番号を取得する。
|
static int |
getShapeLineStyleLongDashGel()
図形線種別の長破線の識別番号を取得する。
|
static int |
getShapeLineStyleNone()
図形線種別の線なしの識別番号を取得する。
|
static int |
getShapeLineStyleSolid()
図形線種別の実線の識別番号を取得する。
|
int |
getSheetIndex(java.lang.String name)
シートの位置を名前指定で取得する。
|
java.lang.String |
getSheetName(int index)
シートの名前を位置指定で取得する。
|
PFObjectList |
getSheetNameList()
シートの名前のリストを取得する。
|
boolean |
hasCurrentCellComment()
現在のセルのコメントの有無を取得する。
|
boolean |
hasCurrentCellStyleWrapText()
現在のセル書式のテキスト折り返し表示の有無を取得する。
|
boolean |
hasCurrentFontStrikeThrough()
現在のフォントの取り消し線の有無を取得する。
|
void |
initDrawing()
図形描画オブジェクトを初期化する。
|
void |
initDrawing(boolean create)
図形描画オブジェクトを初期化する。
|
boolean |
isAllowPullTransfer()
他PFからのPull型コンポーネント転送要求に対する可否属性を取得する.
|
boolean |
isAllowPushTransfer()
他PFへのPush型コンポーネント転送要求に対する可否属性を取得する.
|
boolean |
isAllowRemoteInvocation()
他PFからのコンポーネント連携要求に対する可否属性を取得する.
|
boolean |
isCurrentCellMerged()
現在のセルが結合されているか判定する。
|
boolean |
isCurrentCellStyleFilled()
現在のセル書式の塗りつぶしの有無を取得する。
|
boolean |
isCurrentFontBold()
現在のフォントの太字属性の有無を取得する。
|
boolean |
isCurrentFontItalic()
現在のフォントの斜体属性の有無を取得する。
|
void |
localeUpdated()
ロケール変更に対応する。
|
org.apache.poi.ss.usermodel.Comment |
makeCellComment(java.lang.String text,
int row_c,
int col_c,
int row1,
int col1,
int row2,
int col2)
現在のシートに位置指定でセルコメントを追加する。
|
org.apache.poi.ss.usermodel.Comment |
makeCellComment(java.lang.String text,
int row_c,
int col_c,
int row1,
int col1,
int row2,
int col2,
boolean visible)
現在のシートに位置指定でセルコメントを追加する。
|
java.lang.Object |
makeLine(int row1,
int col1,
int row2,
int col2,
int dx1,
int dy1,
int dx2,
int dy2)
現在のシートに位置指定で直線を追加する。
|
java.lang.Object |
makeOval(int row1,
int col1,
int row2,
int col2,
int dx1,
int dy1,
int dx2,
int dy2)
現在のシートに位置指定で楕円を追加する。
|
org.apache.poi.ss.usermodel.Picture |
makePicture(java.awt.Image image,
int row,
int col)
現在のシートに位置指定で画像を追加する。
|
org.apache.poi.ss.usermodel.Picture |
makePicture(java.awt.Image image,
int row,
int col,
double scale)
現在のシートに位置と倍率指定で画像を追加する。
|
java.lang.Object |
makeRectangle(int row1,
int col1,
int row2,
int col2,
int dx1,
int dy1,
int dx2,
int dy2)
現在のシートに位置指定で長方形を追加する。
|
java.lang.Object |
makeTextbox(java.lang.String text,
int row1,
int col1,
int row2,
int col2)
現在のシートに位置指定でテキストボックスを追加する。
|
java.lang.Object |
makeTextbox(java.lang.String text,
int row1,
int col1,
int row2,
int col2,
int dx1,
int dy1,
int dx2,
int dy2)
現在のシートに詳細位置指定でテキストボックスを追加する。
|
void |
readFile(java.lang.String filename)
Excelファイルを読み込んでブックを設定する。
|
void |
readFile(java.lang.String filename,
java.lang.String password)
Excelファイルをパスワード指定で読み込んでブックを設定する。
|
void |
readXML(PFXMLLoader in)
コンポーネントのXML入力.
|
void |
removeMergedRegion(int index)
現在のシート内のセルの結合領域を削除する。
|
void |
selectCell(org.apache.poi.ss.usermodel.Cell cell)
セルをオブジェクト指定で選択する。
|
void |
selectCell(int index)
現在の行にあるセルを位置指定で選択する。
|
void |
selectCellStyle(short index)
セル書式を番号指定で選択する。
|
void |
selectCellStyleFromCurrentCell()
現在のセルのセル書式を選択する。
|
void |
selectFont(short index)
フォントを番号指定で選択する。
|
void |
selectFontFromCurrentCellStyle()
現在のセル書式のフォントを選択する。
|
void |
selectRow(int index)
行を位置指定で選択する。
|
void |
selectRow(org.apache.poi.ss.usermodel.Row row)
行をオブジェクト指定で選択する。
|
void |
selectSheet(org.apache.poi.ss.usermodel.Sheet sheet)
シートをオブジェクト指定で選択する。
|
void |
selectSheet(java.lang.String name)
シートを名前指定で選択する。
|
void |
selectSheetAt(int index)
シートを位置指定で選択する。
|
void |
setAllowPullTransfer(boolean flag)
他PFからのPull型コンポーネント転送要求に対する可否属性を設定する.
|
void |
setAllowPushTransfer(boolean flag)
他PFへのPush型コンポーネント転送要求に対する可否属性を設定する.
|
void |
setAllowRemoteInvocation(boolean flag)
他PFからのコンポーネント連携要求に対する可否属性を設定する.
|
void |
setCellStyleOfCurrentCell(short index)
現在のセルのセル書式を番号指定で設定する。
|
void |
setCellStyleOfCurrentCellFromCurrentCellStyle()
現在のセルに現在のセル書式を設定する。
|
void |
setColumnWidth(int index,
int width)
列幅を位置指定で設定する。
|
void |
setComponentID(int id)
コンポーネントIDを設定する。
|
void |
setComponentKey(java.lang.String key)
コンポーネントのキー情報を設定する
|
void |
setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。
|
void |
setComponentPublicName(java.lang.String publicName)
コンポーネント公開名を設定する.
|
void |
setCurrentCellFormula(java.lang.String formula)
現在のセルの式の文字列を設定する。
|
void |
setCurrentCellStyleAlignment(short alignment)
現在のセル書式の横方向テキスト配置状態を番号指定で設定する。
|
void |
setCurrentCellStyleBorderBottom(short border)
現在のセル書式の下罫線状態を番号指定で設定する。
|
void |
setCurrentCellStyleBorderLeft(short border)
現在のセル書式の左罫線状態を番号指定で設定する。
|
void |
setCurrentCellStyleBorderRight(short border)
現在のセル書式の右罫線状態を番号指定で設定する。
|
void |
setCurrentCellStyleBorderTop(short border)
現在のセル書式の上罫線状態を番号指定で設定する。
|
void |
setCurrentCellStyleBottomBorderColor(short color)
現在のセル書式の下罫線色を番号指定で設定する。
|
void |
setCurrentCellStyleFillColor(short color)
現在のセル書式の塗りつぶし色を番号指定で設定する。
|
void |
setCurrentCellStyleFont(short font)
現在のセル書式のフォントを番号指定で設定する。
|
void |
setCurrentCellStyleFontFromCurrentFont()
現在のセル書式のフォントを現在のフォントに設定する。
|
void |
setCurrentCellStyleLeftBorderColor(short color)
現在のセル書式の左罫線色を番号指定で設定する。
|
void |
setCurrentCellStyleNoFill()
現在のセル書式を塗りつぶしなしに設定する。
|
void |
setCurrentCellStyleRightBorderColor(short color)
現在のセル書式の右罫線色を番号指定で設定する。
|
void |
setCurrentCellStyleTopBorderColor(short color)
現在のセル書式の上罫線色を番号指定で設定する。
|
void |
setCurrentCellStyleVerticalAlignment(short alignment)
現在のセル書式の縦方向テキスト配置状態を番号指定で設定する。
|
void |
setCurrentCellStyleWrapText(boolean wrap)
現在のセル書式のテキスト折り返し表示の有無を設定する。
|
void |
setCurrentCellType(int type)
現在のセルの種別を番号指定で設定する。
|
void |
setCurrentCellValue(boolean value)
現在のセルの論理値を設定する。
|
void |
setCurrentCellValue(java.util.Date value)
現在のセルの日付の値を設定する。
|
void |
setCurrentCellValue(double value)
現在のセルの数値を設定する。
|
void |
setCurrentCellValue(java.lang.String value)
現在のセルの文字列を設定する。
|
void |
setCurrentCellValueAuto(java.lang.Object value)
現在のセルに値を設定する。
|
void |
setCurrentFontBold(boolean bold)
現在のフォントの太字属性を設定する。
|
void |
setCurrentFontColor(short color)
現在のフォントの色を番号指定で設定する。
|
void |
setCurrentFontHeightInPoints(short height)
現在のフォントの高さを設定する。
|
void |
setCurrentFontItalic(boolean italic)
現在のフォントの斜体属性を設定する。
|
void |
setCurrentFontName(java.lang.String name)
現在のフォントの名前を設定する。
|
void |
setCurrentFontStrikeThrough(boolean strikethrough)
現在のフォントの取り消し線の有無を設定する。
|
void |
setCurrentFontUnderlineType(byte type)
現在のフォントの下線種別を設定する。
|
void |
setCurrentRowHeight(short height)
現在の行の高さを設定する。
|
void |
setEmptyBook()
空のブックを作成して設定する。
|
void |
setEmptyBook(boolean xmlstyle)
空のブックを作成して設定する。
|
void |
setFooterCenter(java.lang.String text)
現在のシートの印刷用フッタ(中央)を設定する。
|
void |
setFooterLeft(java.lang.String text)
現在のシートの印刷用フッタ(左)を設定する。
|
void |
setFooterRight(java.lang.String text)
現在のシートの印刷用フッタ(右)を設定する。
|
void |
setHeaderCenter(java.lang.String text)
現在のシートの印刷用ヘッダ(中央)を設定する。
|
void |
setHeaderLeft(java.lang.String text)
現在のシートの印刷用ヘッダ(左)を設定する。
|
void |
setHeaderRight(java.lang.String text)
現在のシートの印刷用ヘッダ(右)を設定する。
|
void |
setPrintingLandscape(boolean landscape)
現在のシートの印刷方向を設定する。
|
void |
setPrintingMargin(short margin,
double size)
現在のシートの印刷用余白を位置指定で設定する。
|
void |
setPrintingPaperSize(short size)
現在のシートの印刷用紙サイズを番号指定で設定する。
|
void |
setPrintingScale(short scale)
現在のシートの印刷時の倍率を設定する。
|
void |
setPrintingScaleToOnePage()
現在のシートが印刷時に1ページに収まるように倍率を自動で設定する。
|
static void |
setShapeFillColor(java.lang.Object shape,
java.awt.Color color)
図形の塗りつぶし色を設定する。
|
static void |
setShapeLineStyle(java.lang.Object shape,
int style)
図形の線種別を番号指定で設定する。
|
static void |
setShapeLineStyleColor(java.lang.Object shape,
java.awt.Color color)
図形の線色を設定する。
|
static void |
setShapeLineWidth(java.lang.Object shape,
double width)
図形の線幅(ポイント)を設定する。
|
static void |
setShapeLineWidth(java.lang.Object shape,
int width)
図形の線幅(EMU)を設定する。
|
static void |
setShapeNoFill(java.lang.Object shape)
図形を塗りつぶしなしに設定する。
|
void |
setSheetName(int index,
java.lang.String name)
シートの名前を位置指定で設定する。
|
void |
writeFile(java.lang.String filename)
現在のブックをExcelファイルに書き出す。
|
void |
writeXML(PFXMLGenerator out)
コンポーネントのXML出力.
|
public java.lang.String getComponentName()
getComponentName
インタフェース内 PFComponent
PFComponent.getComponentName()
public java.lang.String getComponentKey()
getComponentKey
インタフェース内 PFComponent
PFComponent.getComponentKey()
public void setComponentKey(java.lang.String key)
setComponentKey
インタフェース内 PFComponent
key
- 設定するコンポーネントのキーPFComponent.setComponentKey(java.lang.String)
public PFMultiLocaleString getComponentKeys()
public void setComponentKeys(PFMultiLocaleString keys)
keys
- 全ロケール分のコンポーネントキーpublic int getComponentID()
getComponentID
インタフェース内 PFComponent
PFComponent.getComponentID()
public void setComponentID(int id)
PFComponentBus
から設定される。
各コンポーネント内では操作しないこと。setComponentID
インタフェース内 PFComponent
id
- 設定するコンポーネントIDPFComponent.setComponentID(int)
public java.lang.String getComponentString()
getComponentString
インタフェース内 PFComponent
PFComponent.getComponentString()
public java.lang.String getComponentPublicName()
getComponentPublicName
インタフェース内 PFComponent
public void setComponentPublicName(java.lang.String publicName) throws PFComponentException
setComponentPublicName
インタフェース内 PFComponent
publicName
- 設定するコンポーネント公開名PFComponentException
- 規約に反する名前が設定されようとした場合public boolean isAllowRemoteInvocation()
isAllowRemoteInvocation
インタフェース内 PFComponent
public void setAllowRemoteInvocation(boolean flag)
setAllowRemoteInvocation
インタフェース内 PFComponent
flag
- コンポーネント連携要求に対する可否public boolean isAllowPullTransfer()
isAllowPullTransfer
インタフェース内 PFComponent
public void setAllowPullTransfer(boolean flag)
setAllowPullTransfer
インタフェース内 PFComponent
flag
- Pull型コンポーネント転送要求に対する可否public boolean isAllowPushTransfer()
isAllowPushTransfer
インタフェース内 PFComponent
public void setAllowPushTransfer(boolean flag)
setAllowPushTransfer
インタフェース内 PFComponent
flag
- Push型コンポーネント転送要求に対する可否public void localeUpdated()
localeUpdated
インタフェース内 PFComponent
PFComponent.localeUpdated()
public void readXML(PFXMLLoader in)
readXML
インタフェース内 PFXMLSerializable
in
- XML入力ユーティリティpublic void writeXML(PFXMLGenerator out) throws java.io.IOException
writeXML
インタフェース内 PFXMLSerializable
out
- XML出力ユーティリティjava.io.IOException
public void readFile(java.lang.String filename) throws PFException
filename
- Excelファイル名PFException
- ファイル読み込みの失敗public void readFile(java.lang.String filename, java.lang.String password) throws PFException
filename
- Excelファイル名password
- パスワードPFException
- ファイル読み込みの失敗public void writeFile(java.lang.String filename) throws PFException
filename
- ファイル名PFComponentException
- 入出力エラーPFException
public void setEmptyBook()
public void setEmptyBook(boolean xmlstyle)
xmlstyle
- XML形式(.xlsx)かどうかpublic void createSheet()
public void createSheet(java.lang.String name)
name
- 名前public int getNumberOfSheets()
public void selectSheetAt(int index)
index
- シートの位置public void selectSheet(java.lang.String name)
name
- シートの名前public void selectSheet(org.apache.poi.ss.usermodel.Sheet sheet)
sheet
- シートpublic int getSheetIndex(java.lang.String name)
name
- 名前public java.lang.String getSheetName(int index)
index
- 位置public void setSheetName(int index, java.lang.String name)
index
- 位置name
- 名前public PFObjectList getSheetNameList()
public short createCellStyle()
public short createCellStyleFromCurrent()
public void selectCellStyle(short index)
index
- 識別番号public short getNumberOfCellStyles()
public short createFont()
public void selectFont(short index)
index
- 識別番号public void selectFontFromCurrentCellStyle()
public short getNumberOfFonts()
public short getCurrentFontIndex()
public java.lang.String getCurrentFontName()
public void setCurrentFontName(java.lang.String name)
name
- 名前public short getCurrentFontHeightInPoints()
public void setCurrentFontHeightInPoints(short height)
height
- 高さ(ポイント)public short getCurrentFontColor()
public void setCurrentFontColor(short color)
color
- 色の識別番号public boolean isCurrentFontItalic()
public void setCurrentFontItalic(boolean italic)
italic
- 斜体かどうかpublic boolean isCurrentFontBold()
public void setCurrentFontBold(boolean bold)
bold
- 太字かどうかpublic byte getCurrentFontUnderlineType()
public void setCurrentFontUnderlineType(byte type)
public static byte getFontUnderlineNone()
public static byte getFontUnderlineSingle()
public static byte getFontUnderlineDouble()
public static byte getFontUnderlineAccountingSingle()
public static byte getFontUnderlineAccountingDouble()
public boolean hasCurrentFontStrikeThrough()
public void setCurrentFontStrikeThrough(boolean strikethrough)
strikethrough
- 取り消し線の有無public short getCurrentCellStyleIndex()
public boolean hasCurrentCellStyleWrapText()
public void setCurrentCellStyleWrapText(boolean wrap)
wrap
- テキスト折り返し表示の有無public short getCurrentCellStyleAlignment()
public void setCurrentCellStyleAlignment(short alignment)
alignment
- 横方向テキスト配置状態の識別番号public static short getCellStyleAlignmentGeneral()
public static short getCellStyleAlignmentLeft()
public static short getCellStyleAlignmentRight()
public static short getCellStyleAlignmentCenter()
public short getCurrentCellStyleVerticalAlignment()
public void setCurrentCellStyleVerticalAlignment(short alignment)
alignment
- 縦方向テキスト配置状態の識別番号public static short getCellStyleVerticalAlignmentTop()
public static short getCellStyleVerticalAlignmentBottom()
public static short getCellStyleVerticalAlignmentCenter()
public short getCurrentCellStyleFillColor()
public void setCurrentCellStyleFillColor(short color)
color
- 色の識別番号public void setCurrentCellStyleNoFill()
color
- 色の識別番号public boolean isCurrentCellStyleFilled()
public short getCurrentCellStyleFont()
public void setCurrentCellStyleFont(short font)
font
- フォントの識別番号public void setCurrentCellStyleFontFromCurrentFont()
public short getCurrentCellStyleBorderBottom()
public void setCurrentCellStyleBorderBottom(short border)
border
- 罫線状態の識別番号public short getCurrentCellStyleBorderTop()
public void setCurrentCellStyleBorderTop(short border)
border
- 罫線状態の識別番号public short getCurrentCellStyleBorderLeft()
public void setCurrentCellStyleBorderLeft(short border)
border
- 罫線状態の識別番号public short getCurrentCellStyleBorderRight()
public void setCurrentCellStyleBorderRight(short border)
border
- 罫線状態の識別番号public short getCurrentCellStyleTopBorderColor()
public void setCurrentCellStyleTopBorderColor(short color)
color
- 色の識別番号public short getCurrentCellStyleBottomBorderColor()
public void setCurrentCellStyleBottomBorderColor(short color)
color
- 色の識別番号public short getCurrentCellStyleLeftBorderColor()
public void setCurrentCellStyleLeftBorderColor(short color)
color
- 色の識別番号public short getCurrentCellStyleRightBorderColor()
public void setCurrentCellStyleRightBorderColor(short color)
color
- 色の識別番号public static short getBorderNone()
public static short getBorderThin()
public static short getBorderThick()
public static short getBorderMedium()
public static short getBorderDashed()
public static short getBorderHair()
public static short getBorderDouble()
public static short getBorderDotted()
public static short getBorderMediumDashed()
public static short getBorderDashDot()
public static short getBorderMediumDashDot()
public static short getBorderDashDotDot()
public static short getBorderMediumDashDotDot()
public int getCurrentSheetIndex()
public org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
public void createRow(int index)
index
- 行の位置public void selectRow(int index)
index
- 行の位置public void createRowIfNeeded(int index)
index
- 行の位置public void selectRow(org.apache.poi.ss.usermodel.Row row)
row
- 行public int getCurrentPhysicalNumberOfRows()
public int getCurrentLastRowNum()
public int getColumnWidth(int index)
index
- 列の位置public void setColumnWidth(int index, int width)
index
- 列の位置width
- 列幅public void setPrintingScaleToOnePage()
public void setPrintingLandscape(boolean landscape)
landscape
- 横方向の場合truepublic void setPrintingScale(short scale)
scale
- 倍率public static short getPrintingPaperSizeA4()
public static short getPrintingPaperSizeA5()
public void setPrintingPaperSize(short size)
size
- 用紙サイズの識別番号public void setHeaderCenter(java.lang.String text)
text
- 文字列public java.lang.String getHeaderCenter()
public void setHeaderRight(java.lang.String text)
text
- 文字列public java.lang.String getHeaderRight()
public void setHeaderLeft(java.lang.String text)
text
- 文字列public java.lang.String getHeaderLeft()
public void setFooterCenter(java.lang.String text)
text
- 文字列public java.lang.String getFooterCenter()
public void setFooterRight(java.lang.String text)
text
- 文字列public java.lang.String getFooterRight()
public void setFooterLeft(java.lang.String text)
text
- 文字列public java.lang.String getFooterLeft()
public void setPrintingMargin(short margin, double size)
margin
- 位置の識別番号size
- 余白長さpublic double getPrintingMargin(short margin)
margin
- 位置の識別番号public static short getMarginTypeBottom()
public static short getMarginTypeTop()
public static short getMarginTypeLeft()
public static short getMarginTypeRight()
public static short getMarginTypeHeader()
public static short getMarginTypeFooter()
public void initDrawing()
public void initDrawing(boolean create)
create
- 新規作成の場合truepublic static int getShapeLineStyleNone()
public static int getShapeLineStyleSolid()
public static int getShapeLineStyleDashGel()
public static int getShapeLineStyleDotGel()
public static int getShapeLineStyleLongDashGel()
public static void setShapeLineStyle(java.lang.Object shape, int style)
shape
- 図形style
- 図形線種別の識別番号public static void setShapeLineWidth(java.lang.Object shape, double width)
shape
- 図形width
- 線幅(ポイント)public static void setShapeLineWidth(java.lang.Object shape, int width)
shape
- 図形width
- 線幅(EMU)public static void setShapeLineStyleColor(java.lang.Object shape, java.awt.Color color)
shape
- 図形color
- 色public static void setShapeFillColor(java.lang.Object shape, java.awt.Color color)
shape
- 図形color
- 色public static void setShapeNoFill(java.lang.Object shape)
shape
- 図形public org.apache.poi.ss.usermodel.Picture makePicture(java.awt.Image image, int row, int col)
image
- 画像row
- 行の位置col
- 列の位置public org.apache.poi.ss.usermodel.Picture makePicture(java.awt.Image image, int row, int col, double scale)
image
- 画像row
- 行の位置col
- 列の位置scale
- 倍率public java.lang.Object makeLine(int row1, int col1, int row2, int col2, int dx1, int dy1, int dx2, int dy2)
row1
- 始点の行の位置col1
- 始点の列の位置row2
- 終点の行の位置col2
- 終点の列の位置dx1
- 始点のセル内横方向位置dy1
- 始点のセル内縦方向位置dx2
- 終点のセル内横方向位置dy2
- 終点のセル内縦方向位置public java.lang.Object makeRectangle(int row1, int col1, int row2, int col2, int dx1, int dy1, int dx2, int dy2)
row1
- 始点の行の位置col1
- 始点の列の位置row2
- 終点の行の位置col2
- 終点の列の位置dx1
- 始点のセル内横方向位置dy1
- 始点のセル内縦方向位置dx2
- 終点のセル内横方向位置dy2
- 終点のセル内縦方向位置public java.lang.Object makeOval(int row1, int col1, int row2, int col2, int dx1, int dy1, int dx2, int dy2)
row1
- 始点の行の位置col1
- 始点の列の位置row2
- 終点の行の位置col2
- 終点の列の位置dx1
- 始点のセル内横方向位置dy1
- 始点のセル内縦方向位置dx2
- 終点のセル内横方向位置dy2
- 終点のセル内縦方向位置public java.lang.Object makeTextbox(java.lang.String text, int row1, int col1, int row2, int col2)
text
- 文字列row1
- 始点の行の位置col1
- 始点の列の位置row2
- 終点の行の位置col2
- 終点の列の位置public java.lang.Object makeTextbox(java.lang.String text, int row1, int col1, int row2, int col2, int dx1, int dy1, int dx2, int dy2)
text
- 文字列row1
- 始点の行の位置col1
- 始点の列の位置row2
- 終点の行の位置col2
- 終点の列の位置dx1
- 始点のセル内横方向位置dy1
- 始点のセル内縦方向位置dx2
- 終点のセル内横方向位置dy2
- 終点のセル内縦方向位置public org.apache.poi.ss.usermodel.Comment makeCellComment(java.lang.String text, int row_c, int col_c, int row1, int col1, int row2, int col2)
text
- 文字列row_c
- セルの行位置col_c
- セルの列位置row1
- 始点の行の位置col1
- 始点の列の位置row2
- 終点の行の位置col2
- 終点の列の位置public org.apache.poi.ss.usermodel.Comment makeCellComment(java.lang.String text, int row_c, int col_c, int row1, int col1, int row2, int col2, boolean visible)
text
- 文字列row_c
- セルの行位置col_c
- セルの列位置row1
- 始点の行の位置col1
- 始点の列の位置row2
- 終点の行の位置col2
- 終点の列の位置visible
- 表示の有無author
- 作者名public PFObjectList getPicturesAll()
public int getCurrentRowIndex()
public org.apache.poi.ss.usermodel.Row getCurrentRow()
public void createCell(int index)
index
- 列の位置public void createCell(int index, int type)
index
- 列の位置type
- セル種別の識別番号public void selectCell(int index)
index
- 列の位置public void createCellIfNeeded(int index)
index
- 列の位置public void selectCell(org.apache.poi.ss.usermodel.Cell cell)
cell
- セルpublic int getCurrentPhysicalNumberOfCells()
public int getCurrentLastCellNum()
public short getCurrentRowHeight()
public void setCurrentRowHeight(short height)
height
- 高さpublic int getCurrentCellColumnIndex()
public int getCurrentCellRowIndex()
public org.apache.poi.ss.usermodel.Cell getCurrentCell()
public boolean isCurrentCellMerged()
public int getCurrentCellMergedRegionIndex()
public int getMergedRegionColumnFirst(int index)
index
- 結合領域のインデックスpublic int getMergedRegionColumnLast(int index)
index
- 結合領域のインデックスpublic int getMergedRegionRowFirst(int index)
index
- 結合領域のインデックスpublic int getMergedRegionRowLast(int index)
index
- 結合領域のインデックスpublic int addMergedRegion(int firstRow, int lastRow, int firstCol, int lastCol)
firstRow
- 始点行位置lastRow
- 終点行位置firstCol
- 始点列位置lastCol
- 終点列位置public void removeMergedRegion(int index)
index
- 結合領域のインデックスpublic int getNumberOfMergedRegions()
public int getMergedRegionIndexAt(int row, int col)
row
- 行位置col
- 列位置public java.lang.String getCurrentCellValueAsString()
public void setCurrentCellValue(java.lang.String value)
value
- 文字列public boolean getCurrentCellValueAsBoolean()
public void setCurrentCellValue(boolean value)
value
- 論理値public double getCurrentCellValueAsDouble()
public void setCurrentCellValue(double value)
value
- 数値public java.util.Date getCurrentCellValueAsDate()
public void setCurrentCellValue(java.util.Date value)
value
- 日付(Date)public void setCurrentCellValueAuto(java.lang.Object value)
value
- 値public java.lang.String getCurrentCellFormula()
public void setCurrentCellFormula(java.lang.String formula)
formula
- 式の文字列public java.lang.String getCurrentCellCommentString()
public boolean hasCurrentCellComment()
public int getCurrentCellType()
public void setCurrentCellType(int type)
type
- セル種別の識別番号public static int getCellTypeBlank()
public static int getCellTypeString()
public static int getCellTypeNumeric()
public static int getCellTypeBoolean()
public static int getCellTypeFormula()
public static int getCellTypeError()
public short getCellStyleOfCurrentCell()
public void setCellStyleOfCurrentCell(short index)
index
- セル書式の識別番号public void setCellStyleOfCurrentCellFromCurrentCellStyle()
public void selectCellStyleFromCurrentCell()
index
- 識別番号public static short getColorAutomatic()
public static short getColorBlack()
public static short getColorWhite()
public static short getColorRed()
public static short getColorBlue()
public static short getColorGreen()
public static short getColorYellow()
public static short getColorOrange()
public static short getColorBrown()
public static short getColorViolet()
public static short getColorPink()
public static short getColorLightBlue()
public static short getColorLightGreen()
public static short getColorGrey25()
public static short getColorGrey40()
public static short getColorGrey50()
public static short getColorGrey80()
public static java.awt.Color getColorFromIndex(short index)
index
- 色の識別番号public static short getColorIndexFrom(java.awt.Color color)
color
- 色(Color)public org.apache.poi.ss.usermodel.Workbook getCurrentBook()
public java.lang.Object getCurrentCellFormulaResultValue()
public int getCurrentCellFormulaResultType()
public java.lang.String getCurrentCellHyperlinkAddress()