jp.go.aist.dmrc.platform.beans.poi
クラス PFExcelFileAccessor

java.lang.Object
  上位を拡張 jp.go.aist.dmrc.platform.beans.poi.PFExcelFileAccessor
すべての実装されたインタフェース:
java.io.Serializable, PFComponent, PFXMLSerializable

public class PFExcelFileAccessor
extends java.lang.Object
implements PFComponent, PFXMLSerializable

Excelファイルの読み書きを行うコンポーネント。 Apache POIを使用している。 POIの機能に依存しているため、Excelファイルが保持するすべての情報を入出力できるわけではない。

また、従来の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)
          現在の行に位置と種別指定でセルを作成する。
 short createCellStyle()
          セル書式を作成して識別番号を返す。
 short createCellStyleFromCurrent()
          現在のセル書式を複製して識別番号を返す。
 short createFont()
          フォントを作成して識別番号を返す。
 void createRow(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 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出力.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

PFExcelFileAccessor

public PFExcelFileAccessor()
デフォルトコンストラクタ

メソッドの詳細

getComponentName

public java.lang.String getComponentName()
コンポーネント名称を取得する。

定義:
インタフェース PFComponent 内の getComponentName
戻り値:
コンポーネント名
関連項目:
PFComponent.getComponentName()

getComponentKey

public java.lang.String getComponentKey()
コンポーネントキーを取得する。

定義:
インタフェース PFComponent 内の getComponentKey
戻り値:
コンポーネントキー文字列
関連項目:
PFComponent.getComponentKey()

setComponentKey

public void setComponentKey(java.lang.String key)
コンポーネントのキー情報を設定する

定義:
インタフェース PFComponent 内の setComponentKey
パラメータ:
key - 設定するコンポーネントのキー
関連項目:
PFComponent.setComponentKey(java.lang.String)

getComponentKeys

public PFMultiLocaleString getComponentKeys()
全ロケール分のコンポーネントキーを返す。

戻り値:
全ロケール分のコンポーネントキー

setComponentKeys

public void setComponentKeys(PFMultiLocaleString keys)
全ロケール分のコンポーネントキーを設定する。

パラメータ:
keys - 全ロケール分のコンポーネントキー

getComponentID

public int getComponentID()
コンポーネントIDを取得する。

定義:
インタフェース PFComponent 内の getComponentID
戻り値:
コンポーネントID
関連項目:
PFComponent.getComponentID()

setComponentID

public void setComponentID(int id)
コンポーネントIDを設定する。
コンポーネントIDはプラットフォームPFComponentBusから設定される。 各コンポーネント内では操作しないこと。

定義:
インタフェース PFComponent 内の setComponentID
パラメータ:
id - 設定するコンポーネントID
関連項目:
PFComponent.setComponentID(int)

getComponentString

public java.lang.String getComponentString()
コンポーネントの文字列表現を取得する。
形式:"Component Name" [ ID : "ID" ]

定義:
インタフェース PFComponent 内の getComponentString
戻り値:
コンポーネントの文字列表現を返す。
関連項目:
PFComponent.getComponentString()

getComponentPublicName

public java.lang.String getComponentPublicName()
コンポーネント公開名を取得する.

定義:
インタフェース PFComponent 内の getComponentPublicName
戻り値:
コンポーネント公開名

setComponentPublicName

public void setComponentPublicName(java.lang.String publicName)
                            throws PFComponentException
コンポーネント公開名を設定する.
空文字のみの公開名は、nullに置き換える。数字のみの公開名は許可しない。 また、既存コンポーネントとの重複も認めない.

定義:
インタフェース PFComponent 内の setComponentPublicName
パラメータ:
publicName - 設定するコンポーネント公開名
例外:
PFComponentException - 規約に反する名前が設定されようとした場合

isAllowRemoteInvocation

public boolean isAllowRemoteInvocation()
他PFからのコンポーネント連携要求に対する可否属性を取得する.

定義:
インタフェース PFComponent 内の isAllowRemoteInvocation
戻り値:
コンポーネント連携要求可否属性

setAllowRemoteInvocation

public void setAllowRemoteInvocation(boolean flag)
他PFからのコンポーネント連携要求に対する可否属性を設定する.

定義:
インタフェース PFComponent 内の setAllowRemoteInvocation
パラメータ:
flag - コンポーネント連携要求に対する可否

isAllowPullTransfer

public boolean isAllowPullTransfer()
他PFからのPull型コンポーネント転送要求に対する可否属性を取得する.

定義:
インタフェース PFComponent 内の isAllowPullTransfer
戻り値:
Pull型コンポーネント転送要求可否属性

setAllowPullTransfer

public void setAllowPullTransfer(boolean flag)
他PFからのPull型コンポーネント転送要求に対する可否属性を設定する.

定義:
インタフェース PFComponent 内の setAllowPullTransfer
パラメータ:
flag - Pull型コンポーネント転送要求に対する可否

isAllowPushTransfer

public boolean isAllowPushTransfer()
他PFへのPush型コンポーネント転送要求に対する可否属性を取得する.

定義:
インタフェース PFComponent 内の isAllowPushTransfer
戻り値:
Push型コンポーネント転送要求可否属性

setAllowPushTransfer

public void setAllowPushTransfer(boolean flag)
他PFへのPush型コンポーネント転送要求に対する可否属性を設定する.

定義:
インタフェース PFComponent 内の setAllowPushTransfer
パラメータ:
flag - Push型コンポーネント転送要求に対する可否

localeUpdated

public void localeUpdated()
ロケール変更に対応する。

定義:
インタフェース PFComponent 内の localeUpdated
関連項目:
PFComponent.localeUpdated()

readXML

public void readXML(PFXMLLoader in)
コンポーネントのXML入力.

定義:
インタフェース PFXMLSerializable 内の readXML
パラメータ:
in - XML入力ユーティリティ

writeXML

public void writeXML(PFXMLGenerator out)
              throws java.io.IOException
コンポーネントのXML出力.

定義:
インタフェース PFXMLSerializable 内の writeXML
パラメータ:
out - XML出力ユーティリティ
例外:
java.io.IOException

readFile

public void readFile(java.lang.String filename)
              throws PFException
Excelファイルを読み込んでブックを設定する。 従来のファイル形式(.xls)かXML形式(.xlsx)かはファイル名で判断して作成する。

パラメータ:
filename - Excelファイル名
例外:
PFException - ファイル読み込みの失敗

writeFile

public void writeFile(java.lang.String filename)
               throws PFException
現在のブックをExcelファイルに書き出す。 ファイル形式はブックの作成または読み込み時に決まるので、拡張子が異なる場合は例外を返す。

パラメータ:
filename - ファイル名
例外:
PFComponentException - 入出力エラー
PFException

setEmptyBook

public void setEmptyBook()
空のブックを作成して設定する。 従来の.xlsファイル形式で作成する。


setEmptyBook

public void setEmptyBook(boolean xmlstyle)
空のブックを作成して設定する。 従来のファイル形式(.xls)かXML形式(.xlsx)かを選択して作成する。

パラメータ:
xmlstyle - XML形式(.xlsx)かどうか

createSheet

public void createSheet()
シートを作成する。 作成したシートが現在のシートとして選択される。 ブックが存在しない場合は何もしない。


createSheet

public void createSheet(java.lang.String name)
シートを名前指定で作成する。 作成したシートが現在のシートとして選択される。 ブックが存在しない場合は何もしない。

パラメータ:
name - 名前

getNumberOfSheets

public int getNumberOfSheets()
シートの数を取得する。 ブックが存在しない場合は0を返す。

戻り値:
シート数

selectSheetAt

public void selectSheetAt(int index)
シートを位置指定で選択する。 ブックが存在しない場合は何もしない。

パラメータ:
index - シートの位置

selectSheet

public void selectSheet(java.lang.String name)
シートを名前指定で選択する。 ブックが存在しない場合は何もしない。

パラメータ:
name - シートの名前

selectSheet

public void selectSheet(org.apache.poi.ss.usermodel.Sheet sheet)
シートをオブジェクト指定で選択する。 nullが指定された場合はシートの選択が解除される。 指定されたシートが属するブックが現状と異なる場合にはブックも変更する。 ブックが変更された場合はセル書式とフォントの選択が解除される。

パラメータ:
sheet - シート

getSheetIndex

public int getSheetIndex(java.lang.String name)
シートの位置を名前指定で取得する。 ブックが存在しない場合は-1を返す。

パラメータ:
name - 名前
戻り値:
位置

getSheetName

public java.lang.String getSheetName(int index)
シートの名前を位置指定で取得する。 ブックが存在しない場合は空文字を返す。

パラメータ:
index - 位置
戻り値:
名前

setSheetName

public void setSheetName(int index,
                         java.lang.String name)
シートの名前を位置指定で設定する。 ブックが存在しない場合は何もしない。

パラメータ:
index - 位置
name - 名前

getSheetNameList

public PFObjectList getSheetNameList()
シートの名前のリストを取得する。 ブックが存在しない場合は空のリストを返す。

戻り値:
名前のリスト(PFObjectList)

createCellStyle

public short createCellStyle()
セル書式を作成して識別番号を返す。 作成したセル書式が現在のセル書式として選択される。 ブックが存在しない場合は何もせず-1を返す。

戻り値:
セル書式の識別番号

createCellStyleFromCurrent

public short createCellStyleFromCurrent()
現在のセル書式を複製して識別番号を返す。 作成したセル書式が現在のセル書式として選択される。 ブックが存在しない場合およびセル書式が選択されていない場合は何もせず-1を返す。

戻り値:
セル書式の識別番号

selectCellStyle

public void selectCellStyle(short index)
セル書式を番号指定で選択する。 ブックが存在しない場合は何もしない。

パラメータ:
index - 識別番号

getNumberOfCellStyles

public short getNumberOfCellStyles()
セル書式の数を取得する。 ブックが存在しない場合は0を返す。

戻り値:
セル書式の数

createFont

public short createFont()
フォントを作成して識別番号を返す。 作成したフォントが現在のフォントとして選択される。 ブックが存在しない場合は何もせず-1を返す。

戻り値:
フォントの識別番号

selectFont

public void selectFont(short index)
フォントを番号指定で選択する。 ブックが存在しない場合は何もしない。

パラメータ:
index - 識別番号

selectFontFromCurrentCellStyle

public void selectFontFromCurrentCellStyle()
現在のセル書式のフォントを選択する。 ブックが存在しない場合およびセル書式が選択されていない場合はnullが設定される。


getNumberOfFonts

public short getNumberOfFonts()
フォントの数を取得する。 ブックが存在しない場合は0を返す。

戻り値:

getCurrentFontIndex

public short getCurrentFontIndex()
現在のフォントの識別番号を取得する。 フォントが選択されていない場合は0を返す。

戻り値:
フォントの識別番号

getCurrentFontName

public java.lang.String getCurrentFontName()
現在のフォントの名前を取得する。 フォントが選択されていない場合は空文字を返す。

戻り値:
フォントの名前文字列

setCurrentFontName

public void setCurrentFontName(java.lang.String name)
現在のフォントの名前を設定する。 フォントが選択されていない場合は何もしない。

パラメータ:
name - 名前

getCurrentFontHeightInPoints

public short getCurrentFontHeightInPoints()
現在のフォントの高さを取得する。 フォントが選択されていない場合は0を返す。

戻り値:
フォントの高さ

setCurrentFontHeightInPoints

public void setCurrentFontHeightInPoints(short height)
現在のフォントの高さを設定する。 フォントが選択されていない場合は何もしない。

パラメータ:
height - 高さ(ポイント)

getCurrentFontColor

public short getCurrentFontColor()
現在のフォントの色の識別番号を取得する。 フォントが選択されていない場合は自動の色の識別番号を返す。

戻り値:
色の識別番号

setCurrentFontColor

public void setCurrentFontColor(short color)
現在のフォントの色を番号指定で設定する。 フォントが選択されていない場合は何もしない。

パラメータ:
color - 色の識別番号

isCurrentFontItalic

public boolean isCurrentFontItalic()
現在のフォントの斜体属性の有無を取得する。 フォントが選択されていない場合はfalseを返す。

戻り値:
斜体の場合true

setCurrentFontItalic

public void setCurrentFontItalic(boolean italic)
現在のフォントの斜体属性を設定する。 フォントが選択されていない場合は何もしない。

パラメータ:
italic - 斜体かどうか

isCurrentFontBold

public boolean isCurrentFontBold()
現在のフォントの太字属性の有無を取得する。 フォントが選択されていない場合はfalseを返す。

戻り値:
太字の場合true

setCurrentFontBold

public void setCurrentFontBold(boolean bold)
現在のフォントの太字属性を設定する。 フォントが選択されていない場合は何もしない。

パラメータ:
bold - 太字かどうか

getCurrentFontUnderlineType

public byte getCurrentFontUnderlineType()
現在のフォントの下線種別を取得する。 フォントが選択されていない場合は下線なしの番号が返る。

戻り値:
下線種別の番号

setCurrentFontUnderlineType

public void setCurrentFontUnderlineType(byte type)
現在のフォントの下線種別を設定する。 フォントが選択されていない場合は何もしない。


getFontUnderlineNone

public static byte getFontUnderlineNone()
フォントの下線種別「なし」を取得する。

戻り値:
下線種別の番号

getFontUnderlineSingle

public static byte getFontUnderlineSingle()
フォントの下線種別「下線」を取得する。

戻り値:
下線種別の番号

getFontUnderlineDouble

public static byte getFontUnderlineDouble()
フォントの下線種別「二重下線」を取得する。

戻り値:
下線種別の番号

getFontUnderlineAccountingSingle

public static byte getFontUnderlineAccountingSingle()
フォントの下線種別「下線(会計)」を取得する。

戻り値:
下線種別の番号

getFontUnderlineAccountingDouble

public static byte getFontUnderlineAccountingDouble()
フォントの下線種別「二重下線(会計)」を取得する。

戻り値:
下線種別の番号

hasCurrentFontStrikeThrough

public boolean hasCurrentFontStrikeThrough()
現在のフォントの取り消し線の有無を取得する。 フォントが選択されていない場合はfalseを返す。

戻り値:
取り消し線の有無

setCurrentFontStrikeThrough

public void setCurrentFontStrikeThrough(boolean strikethrough)
現在のフォントの取り消し線の有無を設定する。 フォントが選択されていない場合は何もしない。

パラメータ:
strikethrough - 取り消し線の有無

getCurrentCellStyleIndex

public short getCurrentCellStyleIndex()
現在のセルスタイルの識別番号を取得する。 セルスタイルが選択されていない場合は0を返す。

戻り値:
セルスタイルの識別番号

hasCurrentCellStyleWrapText

public boolean hasCurrentCellStyleWrapText()
現在のセル書式のテキスト折り返し表示の有無を取得する。 セル書式が選択されていない場合はfalseを返す。

戻り値:
テキスト折り返し表示の有無

setCurrentCellStyleWrapText

public void setCurrentCellStyleWrapText(boolean wrap)
現在のセル書式のテキスト折り返し表示の有無を設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
wrap - テキスト折り返し表示の有無

getCurrentCellStyleAlignment

public short getCurrentCellStyleAlignment()
現在のセル書式の横方向テキスト配置状態(識別番号)を取得する。 セル書式が選択されていない場合は標準状態の識別番号が返る。

戻り値:
横方向テキスト配置状態の識別番号

setCurrentCellStyleAlignment

public void setCurrentCellStyleAlignment(short alignment)
現在のセル書式の横方向テキスト配置状態を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
alignment - 横方向テキスト配置状態の識別番号

getCellStyleAlignmentGeneral

public static short getCellStyleAlignmentGeneral()
セル書式の横方向テキスト配置で標準状態の識別番号を取得する。

戻り値:
横方向テキスト配置状態の識別番号

getCellStyleAlignmentLeft

public static short getCellStyleAlignmentLeft()
セル書式の横方向テキスト配置で左詰め状態の識別番号を取得する。

戻り値:
横方向テキスト配置状態の識別番号

getCellStyleAlignmentRight

public static short getCellStyleAlignmentRight()
セル書式の横方向テキスト配置で右詰め状態の識別番号を取得する。

戻り値:
横方向テキスト配置状態の識別番号

getCellStyleAlignmentCenter

public static short getCellStyleAlignmentCenter()
セル書式の横方向テキスト配置で中央揃え状態の識別番号を取得する。

戻り値:
横方向テキスト配置状態の識別番号

getCurrentCellStyleVerticalAlignment

public short getCurrentCellStyleVerticalAlignment()
現在のセル書式の縦方向テキスト配置状態(識別番号)を取得する。 セル書式が選択されていない場合は上詰め状態の識別番号が返る。

戻り値:
縦方向テキスト配置状態の識別番号

setCurrentCellStyleVerticalAlignment

public void setCurrentCellStyleVerticalAlignment(short alignment)
現在のセル書式の縦方向テキスト配置状態を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
alignment - 縦方向テキスト配置状態の識別番号

getCellStyleVerticalAlignmentTop

public static short getCellStyleVerticalAlignmentTop()
セル書式の縦方向テキスト配置で上詰め状態の識別番号を取得する。

戻り値:
縦方向テキスト配置状態の識別番号

getCellStyleVerticalAlignmentBottom

public static short getCellStyleVerticalAlignmentBottom()
セル書式の縦方向テキスト配置で下詰め状態の識別番号を取得する。

戻り値:
縦方向テキスト配置状態の識別番号

getCellStyleVerticalAlignmentCenter

public static short getCellStyleVerticalAlignmentCenter()
セル書式の縦方向テキスト配置で中央揃え状態の識別番号を取得する。

戻り値:
縦方向テキスト配置状態の識別番号

getCurrentCellStyleFillColor

public short getCurrentCellStyleFillColor()
現在のセル書式の塗りつぶし色(識別番号)を取得する。 セル書式が選択されていない場合は自動の色の識別番号を返す。

戻り値:
色の識別番号

setCurrentCellStyleFillColor

public void setCurrentCellStyleFillColor(short color)
現在のセル書式の塗りつぶし色を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
color - 色の識別番号

setCurrentCellStyleNoFill

public void setCurrentCellStyleNoFill()
現在のセル書式を塗りつぶしなしに設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
color - 色の識別番号

isCurrentCellStyleFilled

public boolean isCurrentCellStyleFilled()
現在のセル書式の塗りつぶしの有無を取得する。 セル書式が選択されていない場合はfalseを返す。

戻り値:
塗りつぶしの有無

getCurrentCellStyleFont

public short getCurrentCellStyleFont()
現在のセル書式のフォント(識別番号)を取得する。 セル書式が選択されていない場合は-1を返す。

戻り値:
フォントの識別番号

setCurrentCellStyleFont

public void setCurrentCellStyleFont(short font)
現在のセル書式のフォントを番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
font - フォントの識別番号

setCurrentCellStyleFontFromCurrentFont

public void setCurrentCellStyleFontFromCurrentFont()
現在のセル書式のフォントを現在のフォントに設定する。 セル書式かフォントが選択されていない場合は何もしない。


getCurrentCellStyleBorderBottom

public short getCurrentCellStyleBorderBottom()
現在のセル書式の下罫線状態(識別番号)を取得する。 セル書式が選択されていない場合は罫線なし状態の識別番号を返す。

戻り値:
罫線状態の識別番号

setCurrentCellStyleBorderBottom

public void setCurrentCellStyleBorderBottom(short border)
現在のセル書式の下罫線状態を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
border - 罫線状態の識別番号

getCurrentCellStyleBorderTop

public short getCurrentCellStyleBorderTop()
現在のセル書式の上罫線状態(識別番号)を取得する。 セル書式が選択されていない場合は罫線なし状態の識別番号を返す。

戻り値:
罫線状態の識別番号

setCurrentCellStyleBorderTop

public void setCurrentCellStyleBorderTop(short border)
現在のセル書式の上罫線状態を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
border - 罫線状態の識別番号

getCurrentCellStyleBorderLeft

public short getCurrentCellStyleBorderLeft()
現在のセル書式の左罫線状態(識別番号)を取得する。 セル書式が選択されていない場合は罫線なし状態の識別番号を返す。

戻り値:
罫線状態の識別番号

setCurrentCellStyleBorderLeft

public void setCurrentCellStyleBorderLeft(short border)
現在のセル書式の左罫線状態を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
border - 罫線状態の識別番号

getCurrentCellStyleBorderRight

public short getCurrentCellStyleBorderRight()
現在のセル書式の右罫線状態(識別番号)を取得する。 セル書式が選択されていない場合は罫線なし状態の識別番号を返す。

戻り値:
罫線状態の識別番号

setCurrentCellStyleBorderRight

public void setCurrentCellStyleBorderRight(short border)
現在のセル書式の右罫線状態を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
border - 罫線状態の識別番号

getCurrentCellStyleTopBorderColor

public short getCurrentCellStyleTopBorderColor()
現在のセル書式の上罫線色(識別番号)を取得する。 セル書式が選択されていない場合は自動色の識別番号を返す。

戻り値:
色の識別番号

setCurrentCellStyleTopBorderColor

public void setCurrentCellStyleTopBorderColor(short color)
現在のセル書式の上罫線色を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
color - 色の識別番号

getCurrentCellStyleBottomBorderColor

public short getCurrentCellStyleBottomBorderColor()
現在のセル書式の下罫線色(識別番号)を取得する。 セル書式が選択されていない場合は自動色の識別番号を返す。

戻り値:
色の識別番号

setCurrentCellStyleBottomBorderColor

public void setCurrentCellStyleBottomBorderColor(short color)
現在のセル書式の下罫線色を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
color - 色の識別番号

getCurrentCellStyleLeftBorderColor

public short getCurrentCellStyleLeftBorderColor()
現在のセル書式の左罫線色(識別番号)を取得する。 セル書式が選択されていない場合は自動色の識別番号を返す。

戻り値:
色の識別番号

setCurrentCellStyleLeftBorderColor

public void setCurrentCellStyleLeftBorderColor(short color)
現在のセル書式の左罫線色を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
color - 色の識別番号

getCurrentCellStyleRightBorderColor

public short getCurrentCellStyleRightBorderColor()
現在のセル書式の右罫線色(識別番号)を取得する。 セル書式が選択されていない場合は自動色の識別番号を返す。

戻り値:
色の識別番号

setCurrentCellStyleRightBorderColor

public void setCurrentCellStyleRightBorderColor(short color)
現在のセル書式の右罫線色を番号指定で設定する。 セル書式が選択されていない場合は何もしない。

パラメータ:
color - 色の識別番号

getBorderNone

public static short getBorderNone()
罫線なしの識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderThin

public static short getBorderThin()
細線罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderThick

public static short getBorderThick()
太線罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderMedium

public static short getBorderMedium()
標準罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderDashed

public static short getBorderDashed()
破線(細線)罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderHair

public static short getBorderHair()
ヘアライン罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderDouble

public static short getBorderDouble()
二重罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderDotted

public static short getBorderDotted()
点線(細線)罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderMediumDashed

public static short getBorderMediumDashed()
破線罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderDashDot

public static short getBorderDashDot()
一点鎖線(細線)罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderMediumDashDot

public static short getBorderMediumDashDot()
一点鎖線罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderDashDotDot

public static short getBorderDashDotDot()
二点鎖線(細線)罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getBorderMediumDashDotDot

public static short getBorderMediumDashDotDot()
二点鎖線罫線の識別番号を取得する。

戻り値:
罫線状態の識別番号

getCurrentSheetIndex

public int getCurrentSheetIndex()
現在のシートの位置を取得する。 シートが選択されていなければ-1が返る。

戻り値:
シート位置

getCurrentSheet

public org.apache.poi.ss.usermodel.Sheet getCurrentSheet()
現在のシートを取得する。 シートが選択されていなければnullが返る。

戻り値:
シート

createRow

public void createRow(int index)
行を位置指定で作成する。 作成した行が現在の行として選択される。 シートが選択されていない場合は何もしない。

パラメータ:
index - 行の位置

selectRow

public void selectRow(int index)
行を位置指定で選択する。 シートが選択されていない場合は何もしない。

パラメータ:
index - 行の位置

selectRow

public void selectRow(org.apache.poi.ss.usermodel.Row row)
行をオブジェクト指定で選択する。 nullが指定された場合は行の選択が解除される。 指定された行が属するシートが現状と異なる場合はシートも変更する。

パラメータ:
row - 行

getCurrentPhysicalNumberOfRows

public int getCurrentPhysicalNumberOfRows()
実際の行数を取得する。 シートが選択されていない場合は0を返す。

戻り値:
行数

getCurrentLastRowNum

public int getCurrentLastRowNum()
最後の行位置を取得する。 シートが選択されていない場合は0を返す。

戻り値:
行位置

getColumnWidth

public int getColumnWidth(int index)
列幅を位置指定で取得する。 シートが選択されていない場合は0を返す。

パラメータ:
index - 列の位置
戻り値:
列幅

setColumnWidth

public void setColumnWidth(int index,
                           int width)
列幅を位置指定で設定する。 シートが選択されていない場合は何もしない。

パラメータ:
index - 列の位置
width - 列幅

setPrintingScaleToOnePage

public void setPrintingScaleToOnePage()
現在のシートが印刷時に1ページに収まるように倍率を自動で設定する。 シートが選択されていない場合は何もしない。


setPrintingLandscape

public void setPrintingLandscape(boolean landscape)
現在のシートの印刷方向を設定する。 シートが選択されていない場合は何もしない。

パラメータ:
landscape - 横方向の場合true

setPrintingScale

public void setPrintingScale(short scale)
現在のシートの印刷時の倍率を設定する。 シートが選択されていない場合は何もしない。

パラメータ:
scale - 倍率

getPrintingPaperSizeA4

public static short getPrintingPaperSizeA4()
印刷用紙サイズA4の識別番号を取得する。

戻り値:
印刷用紙サイズの識別番号

getPrintingPaperSizeA5

public static short getPrintingPaperSizeA5()
印刷用紙サイズA5の識別番号を取得する。

戻り値:
印刷用紙サイズの識別番号

setPrintingPaperSize

public void setPrintingPaperSize(short size)
現在のシートの印刷用紙サイズを番号指定で設定する。 シートが選択されていない場合は何もしない。

パラメータ:
size - 用紙サイズの識別番号

setHeaderCenter

public void setHeaderCenter(java.lang.String text)
現在のシートの印刷用ヘッダ(中央)を設定する。 シートが選択されていない場合は何もしない。

パラメータ:
text - 文字列

getHeaderCenter

public java.lang.String getHeaderCenter()
現在のシートの印刷用ヘッダ(中央)を取得する。 シートが選択されていない場合はnullを返す。

戻り値:
文字列

setHeaderRight

public void setHeaderRight(java.lang.String text)
現在のシートの印刷用ヘッダ(右)を設定する。 シートが選択されていない場合は何もしない。

パラメータ:
text - 文字列

getHeaderRight

public java.lang.String getHeaderRight()
現在のシートの印刷用ヘッダ(右)を取得する。 シートが選択されていない場合はnullを返す。

戻り値:
文字列

setHeaderLeft

public void setHeaderLeft(java.lang.String text)
現在のシートの印刷用ヘッダ(左)を設定する。 シートが選択されていない場合は何もしない。

パラメータ:
text - 文字列

getHeaderLeft

public java.lang.String getHeaderLeft()
現在のシートの印刷用ヘッダ(左)を取得する。 シートが選択されていない場合はnullを返す。

戻り値:
文字列

setFooterCenter

public void setFooterCenter(java.lang.String text)
現在のシートの印刷用フッタ(中央)を設定する。 シートが選択されていない場合は何もしない。

パラメータ:
text - 文字列

getFooterCenter

public java.lang.String getFooterCenter()
現在のシートの印刷用フッタ(中央)を取得する。 シートが選択されていない場合はnullを返す。

戻り値:
文字列

setFooterRight

public void setFooterRight(java.lang.String text)
現在のシートの印刷用フッタ(右)を設定する。 シートが選択されていない場合は何もしない。

パラメータ:
text - 文字列

getFooterRight

public java.lang.String getFooterRight()
現在のシートの印刷用フッタ(右)を取得する。 シートが選択されていない場合はnullを返す。

戻り値:
文字列

setFooterLeft

public void setFooterLeft(java.lang.String text)
現在のシートの印刷用フッタ(左)を設定する。 シートが選択されていない場合は何もしない。

パラメータ:
text - 文字列

getFooterLeft

public java.lang.String getFooterLeft()
現在のシートの印刷用フッタ(左)を取得する。 シートが選択されていない場合はnullを返す。

戻り値:
文字列

setPrintingMargin

public void setPrintingMargin(short margin,
                              double size)
現在のシートの印刷用余白を位置指定で設定する。 シートが選択されていない場合は何もしない。

パラメータ:
margin - 位置の識別番号
size - 余白長さ

getPrintingMargin

public double getPrintingMargin(short margin)
現在のシートの印刷用余白を位置指定で取得する。 シートが選択されていない場合は-1が返る。

パラメータ:
margin - 位置の識別番号
戻り値:
余白長さ

getMarginTypeBottom

public static short getMarginTypeBottom()
印刷用下余白の識別番号を取得する。

戻り値:
印刷用余白の識別番号

getMarginTypeTop

public static short getMarginTypeTop()
印刷用上余白の識別番号を取得する。

戻り値:
印刷用余白の識別番号

getMarginTypeLeft

public static short getMarginTypeLeft()
印刷用左余白の識別番号を取得する。

戻り値:
印刷用余白の識別番号

getMarginTypeRight

public static short getMarginTypeRight()
印刷用右余白の識別番号を取得する。

戻り値:
印刷用余白の識別番号

getMarginTypeHeader

public static short getMarginTypeHeader()
印刷用ヘッダ余白の識別番号を取得する。

戻り値:
印刷用余白の識別番号

getMarginTypeFooter

public static short getMarginTypeFooter()
印刷用フッタ余白の識別番号を取得する。

戻り値:
印刷用余白の識別番号

initDrawing

public void initDrawing()
図形描画オブジェクトを初期化する。 以前の図形はすべて消去される。 シートが選択されていない場合は何もしない。


initDrawing

public void initDrawing(boolean create)
図形描画オブジェクトを初期化する。 新規作成を指定すると以前の図形はすべて消去される。 シートが選択されていない場合は何もしない。

パラメータ:
create - 新規作成の場合true

getShapeLineStyleNone

public static int getShapeLineStyleNone()
図形線種別の線なしの識別番号を取得する。

戻り値:
図形線種別の識別番号

getShapeLineStyleSolid

public static int getShapeLineStyleSolid()
図形線種別の実線の識別番号を取得する。

戻り値:
図形線種別の識別番号

getShapeLineStyleDashGel

public static int getShapeLineStyleDashGel()
図形線種別の破線の識別番号を取得する。

戻り値:
図形線種別の識別番号

getShapeLineStyleDotGel

public static int getShapeLineStyleDotGel()
図形線種別の点線の識別番号を取得する。

戻り値:
図形線種別の識別番号

getShapeLineStyleLongDashGel

public static int getShapeLineStyleLongDashGel()
図形線種別の長破線の識別番号を取得する。

戻り値:
図形線種別の識別番号

setShapeLineStyle

public static void setShapeLineStyle(java.lang.Object shape,
                                     int style)
図形の線種別を番号指定で設定する。

パラメータ:
shape - 図形
style - 図形線種別の識別番号

setShapeLineWidth

public static void setShapeLineWidth(java.lang.Object shape,
                                     double width)
図形の線幅(ポイント)を設定する。

パラメータ:
shape - 図形
width - 線幅(ポイント)

setShapeLineWidth

public static void setShapeLineWidth(java.lang.Object shape,
                                     int width)
図形の線幅(EMU)を設定する。 POIでは1ポイント=12700EMUで計算。

パラメータ:
shape - 図形
width - 線幅(EMU)

setShapeLineStyleColor

public static void setShapeLineStyleColor(java.lang.Object shape,
                                          java.awt.Color color)
図形の線色を設定する。 色がnullの場合は黒になる。

パラメータ:
shape - 図形
color - 色

setShapeFillColor

public static void setShapeFillColor(java.lang.Object shape,
                                     java.awt.Color color)
図形の塗りつぶし色を設定する。 色が指定されていれば塗りつぶし有になり、nullの場合は塗りつぶしなしになる。

パラメータ:
shape - 図形
color - 色

setShapeNoFill

public static void setShapeNoFill(java.lang.Object shape)
図形を塗りつぶしなしに設定する。

パラメータ:
shape - 図形

makePicture

public org.apache.poi.ss.usermodel.Picture makePicture(java.awt.Image image,
                                                       int row,
                                                       int col)
現在のシートに位置指定で画像を追加する。 図形描画オブジェクトが初期化されていなければ何もしない。

パラメータ:
image - 画像
row - 行の位置
col - 列の位置
戻り値:
画像の図形オブジェクト

makePicture

public org.apache.poi.ss.usermodel.Picture makePicture(java.awt.Image image,
                                                       int row,
                                                       int col,
                                                       double scale)
現在のシートに位置と倍率指定で画像を追加する。 図形描画オブジェクトが初期化されていなければ何もしない。

パラメータ:
image - 画像
row - 行の位置
col - 列の位置
scale - 倍率
戻り値:
画像の図形オブジェクト

makeLine

public java.lang.Object makeLine(int row1,
                                 int col1,
                                 int row2,
                                 int col2,
                                 int dx1,
                                 int dy1,
                                 int dx2,
                                 int dy2)
現在のシートに位置指定で直線を追加する。 図形描画オブジェクトが初期化されていなければ何もしないでnullを返す。

パラメータ:
row1 - 始点の行の位置
col1 - 始点の列の位置
row2 - 終点の行の位置
col2 - 終点の列の位置
dx1 - 始点のセル内横方向位置
dy1 - 始点のセル内縦方向位置
dx2 - 終点のセル内横方向位置
dy2 - 終点のセル内縦方向位置
戻り値:
直線の図形オブジェクト

makeRectangle

public java.lang.Object makeRectangle(int row1,
                                      int col1,
                                      int row2,
                                      int col2,
                                      int dx1,
                                      int dy1,
                                      int dx2,
                                      int dy2)
現在のシートに位置指定で長方形を追加する。 図形描画オブジェクトが初期化されていなければ何もしないでnullを返す。

パラメータ:
row1 - 始点の行の位置
col1 - 始点の列の位置
row2 - 終点の行の位置
col2 - 終点の列の位置
dx1 - 始点のセル内横方向位置
dy1 - 始点のセル内縦方向位置
dx2 - 終点のセル内横方向位置
dy2 - 終点のセル内縦方向位置
戻り値:
長方形の図形オブジェクト

makeOval

public java.lang.Object makeOval(int row1,
                                 int col1,
                                 int row2,
                                 int col2,
                                 int dx1,
                                 int dy1,
                                 int dx2,
                                 int dy2)
現在のシートに位置指定で楕円を追加する。 図形描画オブジェクトが初期化されていなければ何もしないでnullを返す。

パラメータ:
row1 - 始点の行の位置
col1 - 始点の列の位置
row2 - 終点の行の位置
col2 - 終点の列の位置
dx1 - 始点のセル内横方向位置
dy1 - 始点のセル内縦方向位置
dx2 - 終点のセル内横方向位置
dy2 - 終点のセル内縦方向位置
戻り値:
楕円の図形オブジェクト

makeTextbox

public java.lang.Object makeTextbox(java.lang.String text,
                                    int row1,
                                    int col1,
                                    int row2,
                                    int col2)
現在のシートに位置指定でテキストボックスを追加する。 図形描画オブジェクトが初期化されていなければ何もしない。

パラメータ:
text - 文字列
row1 - 始点の行の位置
col1 - 始点の列の位置
row2 - 終点の行の位置
col2 - 終点の列の位置
戻り値:
テキストボックスの図形オブジェクト

makeTextbox

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 - 終点のセル内縦方向位置
戻り値:
テキストボックスの図形オブジェクト

makeCellComment

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 - 終点の列の位置
戻り値:
セルコメントの図形オブジェクト

makeCellComment

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 - 作者名
戻り値:
セルコメントの図形オブジェクト

getPicturesAll

public PFObjectList getPicturesAll()
現在のブックの全画像リストを取得する。 ブックが設定されていなければ空のリストが返る。 (EMF形式の画像は読み込めない)

戻り値:
画像(Image)のリスト

getCurrentRowIndex

public int getCurrentRowIndex()
現在の行の位置を取得する。 行が選択されていなければ-1が返る。

戻り値:
行位置

getCurrentRow

public org.apache.poi.ss.usermodel.Row getCurrentRow()
現在の行オブジェクトを取得する。 行が選択されていなければnullが返る。

戻り値:

createCell

public void createCell(int index)
現在の行に位置指定でセルを作成する。 作成したセルが現在のセルとして選択される。 行が選択されていなければ何もしない。

パラメータ:
index - 列の位置

createCell

public void createCell(int index,
                       int type)
現在の行に位置と種別指定でセルを作成する。 作成したセルが現在のセルとして選択される。 行が選択されていなければ何もしない。

パラメータ:
index - 列の位置
type - セル種別の識別番号

selectCell

public void selectCell(int index)
現在の行にあるセルを位置指定で選択する。 行が選択されていなければ何もしない。

パラメータ:
index - 列の位置

selectCell

public void selectCell(org.apache.poi.ss.usermodel.Cell cell)
セルをオブジェクト指定で選択する。 nullが指定された場合はセルの選択を解除する。 セルが属する行が現状と異なる場合は行の選択も変更する。

パラメータ:
cell - セル

getCurrentPhysicalNumberOfCells

public int getCurrentPhysicalNumberOfCells()
現在の行にある実際のセルの数を取得する。 行が選択されていなければ0が返る。

戻り値:
セルの数

getCurrentLastCellNum

public int getCurrentLastCellNum()
現在の行にある最後のセルの位置を取得する。 行が選択されていなければ0が返る。

戻り値:
列の位置

getCurrentRowHeight

public short getCurrentRowHeight()
現在の行の高さを取得する。 行が選択されていなければ-1が返る。

戻り値:
行の高さ

setCurrentRowHeight

public void setCurrentRowHeight(short height)
現在の行の高さを設定する。 行が選択されていなければ何もしない。

パラメータ:
height - 高さ

getCurrentCellColumnIndex

public int getCurrentCellColumnIndex()
現在のセルの列位置を取得する。 セルが選択されていなければ-1が返る。

戻り値:
列位置

getCurrentCellRowIndex

public int getCurrentCellRowIndex()
現在のセルの行位置を取得する。 セルが選択されていなければ-1が返る。

戻り値:
行位置

getCurrentCell

public org.apache.poi.ss.usermodel.Cell getCurrentCell()
現在のセルを取得する。 セルが選択されていなければnullが返る。

戻り値:
セル

isCurrentCellMerged

public boolean isCurrentCellMerged()
現在のセルが結合されているか判定する。 セルが選択されていない場合はfalseが返る。

戻り値:
論理値(結合されていればtrue)

getCurrentCellMergedRegionIndex

public int getCurrentCellMergedRegionIndex()
現在のセルが含まれる結合領域のインデックスを取得する。 セルが選択されていない場合およびセルが結合領域に含まれない場合は-1が返る。

戻り値:
結合領域のインデックス

getMergedRegionColumnFirst

public int getMergedRegionColumnFirst(int index)
現在のシートに含まれる結合領域の開始列位置を取得する。 シートが選択されていない場合および無効なインデックスを指定した場合は-1が返る。

パラメータ:
index - 結合領域のインデックス
戻り値:
列位置

getMergedRegionColumnLast

public int getMergedRegionColumnLast(int index)
現在のシートに含まれる結合領域の終了列位置を取得する。 シートが選択されていない場合および無効なインデックスを指定した場合は-1が返る。

パラメータ:
index - 結合領域のインデックス
戻り値:
列位置

getMergedRegionRowFirst

public int getMergedRegionRowFirst(int index)
現在のシートに含まれる結合領域の開始行位置を取得する。 シートが選択されていない場合および無効なインデックスを指定した場合は-1が返る。

パラメータ:
index - 結合領域のインデックス
戻り値:
列位置

getMergedRegionRowLast

public int getMergedRegionRowLast(int index)
現在のシートに含まれる結合領域の終了行位置を取得する。 シートが選択されていない場合および無効なインデックスを指定した場合は-1が返る。

パラメータ:
index - 結合領域のインデックス
戻り値:
列位置

addMergedRegion

public int addMergedRegion(int firstRow,
                           int lastRow,
                           int firstCol,
                           int lastCol)
現在のシート内にセルの結合領域を追加する。 シートが選択されていなければ何もしないで-1が返る。

パラメータ:
firstRow - 始点行位置
lastRow - 終点行位置
firstCol - 始点列位置
lastCol - 終点列位置
戻り値:
結合領域のインデックス

removeMergedRegion

public void removeMergedRegion(int index)
現在のシート内のセルの結合領域を削除する。 シートが選択されていない場合および無効なインデックスを指定した場合は何もしない。

パラメータ:
index - 結合領域のインデックス

getNumberOfMergedRegions

public int getNumberOfMergedRegions()
現在のシート内のセルの結合領域の数を取得する。

戻り値:

getMergedRegionIndexAt

public int getMergedRegionIndexAt(int row,
                                  int col)
現在のシートで指定位置のセルを含む結合領域を取得する。 存在しない場合は-1を返す。

パラメータ:
row - 行位置
col - 列位置
戻り値:
結合領域のインデックス

getCurrentCellValueAsString

public java.lang.String getCurrentCellValueAsString()
現在のセルの値を文字列として取得する。 セルが選択されていなければnullが返る。 数式が含まれている場合には数式を評価した値が返る。

戻り値:
文字列

setCurrentCellValue

public void setCurrentCellValue(java.lang.String value)
現在のセルの文字列を設定する。 セルが選択されていなければ何もしない。

パラメータ:
value - 文字列

getCurrentCellValueAsBoolean

public boolean getCurrentCellValueAsBoolean()
現在のセルの論理値(boolean)を取得する。 セルが選択されていない場合および論理値型でない場合はfalseが返る。 数式が含まれている場合には数式を評価した値が返る。

戻り値:
論理値(boolean)

setCurrentCellValue

public void setCurrentCellValue(boolean value)
現在のセルの論理値を設定する。 セルが選択されていなければ何もしない。

パラメータ:
value - 論理値

getCurrentCellValueAsDouble

public double getCurrentCellValueAsDouble()
現在のセルの数値(double)を取得する。 セルが選択されていない場合および数値型でない場合は0が返る。 数式が含まれている場合には数式を評価した値が返る。

戻り値:
数値(double)

setCurrentCellValue

public void setCurrentCellValue(double value)
現在のセルの数値を設定する。 セルが選択されていなければ何もしない。

パラメータ:
value - 数値

getCurrentCellValueAsDate

public java.util.Date getCurrentCellValueAsDate()
現在のセルの日付の値を取得する。 セルが選択されていない場合および文字列型などで日付の取得に失敗する場合はnullが返る。 数式が含まれている場合には数式を評価した値が返る。

戻り値:
日付(Date)

setCurrentCellValue

public void setCurrentCellValue(java.util.Date value)
現在のセルの日付の値を設定する。 Excelでは日付型がないので数値型として扱われる。 セルが選択されていなければ何もしない。

パラメータ:
value - 日付(Date)

setCurrentCellValueAuto

public void setCurrentCellValueAuto(java.lang.Object value)
現在のセルに値を設定する。 値の型(数値・論理値・文字列)を自動的に判定して設定する。 ただし、日付は文字列として出力する。 セルが選択されていなければ何もしない。

パラメータ:
value - 値

getCurrentCellFormula

public java.lang.String getCurrentCellFormula()
現在のセルの式の文字列を取得する。 セルが選択されていない場合および式型でない場合はnullが返る。

戻り値:
式の文字列

setCurrentCellFormula

public void setCurrentCellFormula(java.lang.String formula)
現在のセルの式の文字列を設定する。 セルが選択されていなければ何もしない。

パラメータ:
formula - 式の文字列

getCurrentCellCommentString

public java.lang.String getCurrentCellCommentString()
現在のセルのコメント文字列を取得する。 セルが選択されていない場合およびコメントが設定されていない場合は空文字が返る。

戻り値:
文字列

hasCurrentCellComment

public boolean hasCurrentCellComment()
現在のセルのコメントの有無を取得する。 セルが選択されていない場合はfalseが返る。

戻り値:
セルコメントの有無

getCurrentCellType

public int getCurrentCellType()
現在のセルの種別を取得する。 セルが選択されていなければ空欄の識別番号が返る。

戻り値:
セル種別の識別番号

setCurrentCellType

public void setCurrentCellType(int type)
現在のセルの種別を番号指定で設定する。 セルが選択されていなければ何もしない。

パラメータ:
type - セル種別の識別番号

getCellTypeBlank

public static int getCellTypeBlank()
セル種別空欄の識別番号を取得する。

戻り値:
セル種別の識別番号

getCellTypeString

public static int getCellTypeString()
セル種別文字列の識別番号を取得する。

戻り値:
セル種別の識別番号

getCellTypeNumeric

public static int getCellTypeNumeric()
セル種別数値の識別番号を取得する。

戻り値:
セル種別の識別番号

getCellTypeBoolean

public static int getCellTypeBoolean()
セル種別論理値の識別番号を取得する。

戻り値:
セル種別の識別番号

getCellTypeFormula

public static int getCellTypeFormula()
セル種別式の識別番号を取得する。

戻り値:
セル種別の識別番号

getCellTypeError

public static int getCellTypeError()
セル種別エラーの識別番号を取得する。

戻り値:
セル種別の識別番号

getCellStyleOfCurrentCell

public short getCellStyleOfCurrentCell()
現在のセルのセル書式(識別番号)を取得する。 セルが選択されていなければ0を返す。

戻り値:
セル書式の識別番号

setCellStyleOfCurrentCell

public void setCellStyleOfCurrentCell(short index)
現在のセルのセル書式を番号指定で設定する。 セルが選択されていなければ何もしない。

パラメータ:
index - セル書式の識別番号

setCellStyleOfCurrentCellFromCurrentCellStyle

public void setCellStyleOfCurrentCellFromCurrentCellStyle()
現在のセルに現在のセル書式を設定する。 セルまたはセル書式が選択されていなければ何もしない。


selectCellStyleFromCurrentCell

public void selectCellStyleFromCurrentCell()
現在のセルのセル書式を選択する。 ブックが存在しない場合およびセルが選択されていない場合はnullが設定される。

パラメータ:
index - 識別番号

getColorAutomatic

public static short getColorAutomatic()
色「自動」の識別番号を取得する。

戻り値:
色の識別番号

getColorBlack

public static short getColorBlack()
色「黒」の識別番号を取得する。

戻り値:
色の識別番号

getColorWhite

public static short getColorWhite()
色「白」の識別番号を取得する。

戻り値:
色の識別番号

getColorRed

public static short getColorRed()
色「赤」の識別番号を取得する。

戻り値:
色の識別番号

getColorBlue

public static short getColorBlue()
色「青」の識別番号を取得する。

戻り値:
色の識別番号

getColorGreen

public static short getColorGreen()
色「緑」の識別番号を取得する。

戻り値:
色の識別番号

getColorYellow

public static short getColorYellow()
色「黄」の識別番号を取得する。

戻り値:
色の識別番号

getColorOrange

public static short getColorOrange()
色「オレンジ」の識別番号を取得する。

戻り値:
色の識別番号

getColorBrown

public static short getColorBrown()
色「茶」の識別番号を取得する。

戻り値:
色の識別番号

getColorViolet

public static short getColorViolet()
色「紫」の識別番号を取得する。

戻り値:
色の識別番号

getColorPink

public static short getColorPink()
色「ピンク」の識別番号を取得する。

戻り値:
色の識別番号

getColorLightBlue

public static short getColorLightBlue()
色「ライトブルー」の識別番号を取得する。

戻り値:
色の識別番号

getColorLightGreen

public static short getColorLightGreen()
色「ライトグリーン」の識別番号を取得する。

戻り値:
色の識別番号

getColorGrey25

public static short getColorGrey25()
色「グレー25%」の識別番号を取得する。

戻り値:
色の識別番号

getColorGrey40

public static short getColorGrey40()
色「グレー40%」の識別番号を取得する。

戻り値:
色の識別番号

getColorGrey50

public static short getColorGrey50()
色「グレー50%」の識別番号を取得する。

戻り値:
色の識別番号

getColorGrey80

public static short getColorGrey80()
色「グレー80%」の識別番号を取得する。

戻り値:
色の識別番号

getColorFromIndex

public static java.awt.Color getColorFromIndex(short index)
色オブジェクト(Color)を識別番号から取得する。 対応する色オブジェクトが存在しない場合はnullが返る。

パラメータ:
index - 色の識別番号
戻り値:
色(Color)

getColorIndexFrom

public static short getColorIndexFrom(java.awt.Color color)
色オブジェクトから最も近い色の識別番号を取得する。

パラメータ:
color - 色(Color)
戻り値:
色の識別番号

getCurrentBook

public org.apache.poi.ss.usermodel.Workbook getCurrentBook()
現在のブックを取得する。

戻り値:
現在のブック

getCurrentCellFormulaResultValue

public java.lang.Object getCurrentCellFormulaResultValue()
現在のセルの数式の値を取得する。 現在のセルが数式でない場合には値を取得する。

戻り値:
現在のセルの数式の値

getCurrentCellFormulaResultType

public int getCurrentCellFormulaResultType()
現在のセルの数式の評価結果の種別を取得する。

戻り値:
セルの数式の評価結果の種別

getCurrentCellHyperlinkAddress

public java.lang.String getCurrentCellHyperlinkAddress()
現在のセルに関連付けられたハイパーリンクアドレス文字列を取得する。 現在のセルにハイパーリンクが関連付けられていなければ空文字列を返す。 セルが選択されていなければNULLを返す。

戻り値:
現在のセルに関連付けられたハイパーリンクアドレス文字列