jp.mosp.common.common
クラス PoiUtility

java.lang.Object
  上位を拡張 jp.mosp.common.common.PoiUtility

public class PoiUtility
extends Object

Poiによる帳票作成機能を提供する。

Excelで帳票を作成する際に有用なライブラリーをMosPフレームワーク内で利用する。


フィールドの概要
static short ALT_BARS
           
static short AQUA
           
static short BIG_SPOTS
           
static short BLACK
           
static short BLUE
           
static short BLUE_GREY
           
static short BORDER_DOTTED
           
static short BORDER_THIN
           
static short BRICKS
           
static short BRIGHT_GREEN
           
static short BROWN
           
static short CORAL
           
static short CORNFLOWER_BLUE
           
static short DARK_BLUE
           
static short DARK_GREEN
           
static short DARK_RED
           
static short DARK_TEAL
           
static short DARK_YELLOW
           
static String DATA_FORMAT_DATE1
          書式 yyyy mm dd
static String DATA_FORMAT_DATE2
          書式 yyyy/mm/dd
static String DATA_FORMAT_DATE3
          書式 yyyy-mm-dd
static short DATA_FORMAT_DOUBLE
          書式 0.00
static short DATA_FORMAT_INTEGER
          書式 0
static short DATA_FORMAT_PERSENT
          書式 0%
static short DATA_FORMAT_PERSENT1
          書式 0.00%
static short DATA_FORMAT_TEXT
          書式 text、@
static short DATA_FORMAT_TIME1
          書式 h:mm AM/PM
static short DATA_FORMAT_TIME2
          書式 h:mm:ss AM/PM
static short DATA_FORMAT_TIME3
          書式 h:mm
static short DATA_FORMAT_TIME4
          書式 h:mm:ss
static short DATA_FORMAT_TIME5
          書式 mm:ss
static short DATA_FORMAT_TIME6
          書式 [h]:mm:ss
static short DATA_FORMAT_TIME7
          書式 mm:ss.0
static short DIAMONDS
           
static short FINE_DOTS
           
static short GOLD
           
static short GREEN
           
static short GREY_25_PERCENT
           
static short GREY_40_PERCENT
           
static short GREY_50_PERCENT
           
static short GREY_80_PERCENT
           
static short INDIGO
           
static short LAVENDER
           
static short LEMON_CHIFFON
           
static short LIGHT_BLUE
           
static short LIGHT_CORNFLOWER_BLUE
           
static short LIGHT_GREEN
           
static short LIGHT_ORANGE
           
static short LIGHT_TURQUOISE
           
static short LIGHT_YELLOW
           
static short LIME
           
static short MAROON
           
static String MS_GOTHIC
           
static String MS_MINTYO
           
static String MS_P_MINTYO
           
static short NO_FILL
           
static short OLIVE_GREEN
           
static short ORANGE
           
static short ORCHID
           
static short PALE_BLUE
           
static short PINK
           
static short PLUM
           
static short RED
           
static short ROSE
           
static short ROYAL_BLUE
           
static short SEA_GREEN
           
static short SKY_BLUE
           
static short SOLID_FOREGROUND
           
static short SPARSE_DOTS
           
static short SQUARES
           
static short TAN
           
static short TEAL
           
static short THICK_BACKWARD_DIAG
           
static short THICK_FORWARD_DIAG
           
static short THICK_HORZ_BANDS
           
static short THICK_VERT_BANDS
           
static short THIN_BACKWARD_DIAG
           
static short THIN_FORWARD_DIAG
           
static short THIN_HORZ_BANDS
           
static short THIN_VERT_BANDS
           
static short TURQUOISE
           
static short VIOLET
           
static short WHITE
           
static short YELLOW
           
 
コンストラクタの概要
PoiUtility()
          コンストラクタ。
 
メソッドの概要
 void addMergedRegion(int rrf, int ccf, int rrt, int cct)
          セル結合メソッド。
 void clnCellStyle(int rr, int cc, int tr, int tc)
          セルスタイル複写メソッド。
 void clnSheet(int shno, int newno, String shnm)
          新しいシート作成メソッド (参照用)。
 void clrCell(int rr, int cc)
          項目消去メソッド。
 void createCellStyle()
          スタイル設定生成 メソッド実行後、prtItem(int, int, String)等を実行した後、
必ずreflectCellStyleNoFont()を実行してください。
 void createCellStyleAndFont()
          スタイル・フォント設定生成 メソッド実行後、prtItem(int, int, String)等を実行した後、
必ずreflectCellStyle()を実行してください。
 void crtNewDoc(int shno, String shname)
          新しい頁作成メソッド。
 void crtNewDocR(int shno, String file1)
          新しい頁作成メソッド (参照用)。
 void crtRow(int rr)
          行作成メソッド。
 void crtSheet(int newno, String shnm)
          新しいシート作成メソッド。
 void dltRow(int rr)
          行削除メソッド。
 double getdItem(int rr, int cc)
          セル読込メソッド(double)。
 int getFirstRow()
          最初行取得メソッド。
 int getiItem(int rr, int cc)
          セル読込メソッド(int)。
 int getLastRow()
          最終行取得メソッド。
 void getRow(int rr)
          行読込メソッド。
 String getsItem(int cc)
          セル読込メソッド(String)1。
 String getsItem(int rr, int cc)
          セル読込メソッド(String)2。
 org.apache.poi.hssf.usermodel.HSSFWorkbook getWorkbook()
          Workbookを返却するメソッド。
 void outputDoc(String file)
          ドキュメント出力メソッド。
 void prtBorderBottom(int rr, int cc)
          セル罫線印刷メソッド。
 void prtBorderTop(int rr, int cc)
          セル罫線印刷メソッド。
 void prtItem(int rr, int cc, double ddata)
          セル印刷メソッド(double)。
 void prtItem(int rr, int cc, int idata)
          セル印刷メソッド(int)。
 void prtItem(int rr, int cc, String sdata)
          セル印刷メソッド(String)。
 void prtItem(int rr, int cc, String sdata, boolean isStyle)
          セル印刷設定
 void reflectCellStyle()
          スタイル反映 スタイルを設定した場合、必ずこのメソッドを実行してください。
 void reflectCellStyleNoFont()
          スタイル反映(フォント設定無し) スタイルを設定(フォント設定無し)した場合、必ずこのメソッドを実行してください。
 void rmvSheet(int shno)
          シート削除メソッド。
 void selSheet(int shno)
          新しいシート作成メソッド。
 void setBorderAround(short borderStyle, short borderColor)
          セルボーダー設定
 void setBorderAroundDotted()
          黒点字ボーダーセル
 void setBorderBottom(short borderStyle, short borderColor)
          下側ボーダー設定
 void setBorderLeft(short borderStyle, short borderColor)
          左側ボーダー設定
 void setBorderRight(short borderStyle, short borderColor)
          右側ボーダー設定
 void setBorderTop(short borderStyle, short borderColor)
          上側ボーダー設定
 void setCellBgColor(short bgColor)
          セルの背景色設定
 void setCellBgColor(short bgColor, short pattern)
          セルの背景色設定(塗りつぶし指定)
 void setCellColorCoordinate(short bgColor, short fontColor)
          セルとフォントの色指定
 void setCellColorCoordinate(short bgColor, short fontColor, short pattern)
          セルとフォントの色指定(塗りつぶし指定)
 void setCellFontColor(short fontColor)
          フォント色設定
 void setCellStyle(int rr, int cc)
          セルスタイルセットメソッド。
 void setCellStyleDateFormat(int rr, int cc)
          セル日付形式メソッド。
 void setCellYen(int rr, int cc)
          セル金額円印刷メソッド。
 void setColumnWidth(int columnNo, int number)
          セル幅設定
 void setDataFormat(short format)
          書式設定
 void setDataFormat(String type)
          書式設定
 void setDefaultColumnWidth(int number)
          シートデフォルトセル幅設定
 void setFontHAlignCenter()
          横方向中央寄せ
 void setFontHAlignLeft()
          左寄せ
 void setFontHAlignRight()
          右寄せ
 void setFontSize(int size)
          フォントサイズ設定
 void setFontType(String fontName)
          フォント種類設定
 void setFontVAlighCenter()
          縦方向中央寄せ
 void setFontWeightBold()
          太字設定
 void setPrintArea(int shno, int strcc, int endcc, int strrr, int endrr)
          印刷範囲の設定メソッド。
 void setPrintArea(int shno, String printa)
          印刷範囲の設定メソッド。
 void setSheetName(int sheetno, String sheetname)
          シート名変更
 void setWrapText()
          セルの文字列を折り返して全体を表示
 void setZoom(int magnification)
          表示倍率変更
 void shiftRows(int rr)
          行シフトメソッド。
 void wrtItem(int cc, double ddata)
          セル印刷メソッド(double)。
 void wrtItem(int cc, int idata)
          セル印刷メソッド(int)。
 void wrtItem(int cc, String sdata)
          セル印刷メソッド(String)。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

AQUA

public static final short AQUA
関連項目:
定数フィールド値

BLACK

public static final short BLACK
関連項目:
定数フィールド値

BLUE

public static final short BLUE
関連項目:
定数フィールド値

BLUE_GREY

public static final short BLUE_GREY
関連項目:
定数フィールド値

BRIGHT_GREEN

public static final short BRIGHT_GREEN
関連項目:
定数フィールド値

BROWN

public static final short BROWN
関連項目:
定数フィールド値

CORAL

public static final short CORAL
関連項目:
定数フィールド値

CORNFLOWER_BLUE

public static final short CORNFLOWER_BLUE
関連項目:
定数フィールド値

DARK_BLUE

public static final short DARK_BLUE
関連項目:
定数フィールド値

DARK_GREEN

public static final short DARK_GREEN
関連項目:
定数フィールド値

DARK_RED

public static final short DARK_RED
関連項目:
定数フィールド値

DARK_TEAL

public static final short DARK_TEAL
関連項目:
定数フィールド値

DARK_YELLOW

public static final short DARK_YELLOW
関連項目:
定数フィールド値

GOLD

public static final short GOLD
関連項目:
定数フィールド値

GREEN

public static final short GREEN
関連項目:
定数フィールド値

GREY_25_PERCENT

public static final short GREY_25_PERCENT
関連項目:
定数フィールド値

GREY_40_PERCENT

public static final short GREY_40_PERCENT
関連項目:
定数フィールド値

GREY_50_PERCENT

public static final short GREY_50_PERCENT
関連項目:
定数フィールド値

GREY_80_PERCENT

public static final short GREY_80_PERCENT
関連項目:
定数フィールド値

INDIGO

public static final short INDIGO
関連項目:
定数フィールド値

LAVENDER

public static final short LAVENDER
関連項目:
定数フィールド値

LEMON_CHIFFON

public static final short LEMON_CHIFFON
関連項目:
定数フィールド値

LIGHT_BLUE

public static final short LIGHT_BLUE
関連項目:
定数フィールド値

LIGHT_CORNFLOWER_BLUE

public static final short LIGHT_CORNFLOWER_BLUE
関連項目:
定数フィールド値

LIGHT_GREEN

public static final short LIGHT_GREEN
関連項目:
定数フィールド値

LIGHT_ORANGE

public static final short LIGHT_ORANGE
関連項目:
定数フィールド値

LIGHT_TURQUOISE

public static final short LIGHT_TURQUOISE
関連項目:
定数フィールド値

LIGHT_YELLOW

public static final short LIGHT_YELLOW
関連項目:
定数フィールド値

LIME

public static final short LIME
関連項目:
定数フィールド値

MAROON

public static final short MAROON
関連項目:
定数フィールド値

OLIVE_GREEN

public static final short OLIVE_GREEN
関連項目:
定数フィールド値

ORANGE

public static final short ORANGE
関連項目:
定数フィールド値

ORCHID

public static final short ORCHID
関連項目:
定数フィールド値

PALE_BLUE

public static final short PALE_BLUE
関連項目:
定数フィールド値

PINK

public static final short PINK
関連項目:
定数フィールド値

PLUM

public static final short PLUM
関連項目:
定数フィールド値

RED

public static final short RED
関連項目:
定数フィールド値

ROSE

public static final short ROSE
関連項目:
定数フィールド値

ROYAL_BLUE

public static final short ROYAL_BLUE
関連項目:
定数フィールド値

SEA_GREEN

public static final short SEA_GREEN
関連項目:
定数フィールド値

SKY_BLUE

public static final short SKY_BLUE
関連項目:
定数フィールド値

TAN

public static final short TAN
関連項目:
定数フィールド値

TEAL

public static final short TEAL
関連項目:
定数フィールド値

TURQUOISE

public static final short TURQUOISE
関連項目:
定数フィールド値

VIOLET

public static final short VIOLET
関連項目:
定数フィールド値

WHITE

public static final short WHITE
関連項目:
定数フィールド値

YELLOW

public static final short YELLOW
関連項目:
定数フィールド値

NO_FILL

public static final short NO_FILL
関連項目:
定数フィールド値

SOLID_FOREGROUND

public static final short SOLID_FOREGROUND
関連項目:
定数フィールド値

FINE_DOTS

public static final short FINE_DOTS
関連項目:
定数フィールド値

ALT_BARS

public static final short ALT_BARS
関連項目:
定数フィールド値

SPARSE_DOTS

public static final short SPARSE_DOTS
関連項目:
定数フィールド値

THICK_HORZ_BANDS

public static final short THICK_HORZ_BANDS
関連項目:
定数フィールド値

THICK_VERT_BANDS

public static final short THICK_VERT_BANDS
関連項目:
定数フィールド値

THICK_BACKWARD_DIAG

public static final short THICK_BACKWARD_DIAG
関連項目:
定数フィールド値

THICK_FORWARD_DIAG

public static final short THICK_FORWARD_DIAG
関連項目:
定数フィールド値

BIG_SPOTS

public static final short BIG_SPOTS
関連項目:
定数フィールド値

BRICKS

public static final short BRICKS
関連項目:
定数フィールド値

THIN_HORZ_BANDS

public static final short THIN_HORZ_BANDS
関連項目:
定数フィールド値

THIN_VERT_BANDS

public static final short THIN_VERT_BANDS
関連項目:
定数フィールド値

THIN_BACKWARD_DIAG

public static final short THIN_BACKWARD_DIAG
関連項目:
定数フィールド値

THIN_FORWARD_DIAG

public static final short THIN_FORWARD_DIAG
関連項目:
定数フィールド値

SQUARES

public static final short SQUARES
関連項目:
定数フィールド値

DIAMONDS

public static final short DIAMONDS
関連項目:
定数フィールド値

MS_GOTHIC

public static final String MS_GOTHIC
関連項目:
定数フィールド値

MS_P_MINTYO

public static final String MS_P_MINTYO
関連項目:
定数フィールド値

MS_MINTYO

public static final String MS_MINTYO
関連項目:
定数フィールド値

BORDER_DOTTED

public static final short BORDER_DOTTED
関連項目:
定数フィールド値

BORDER_THIN

public static final short BORDER_THIN
関連項目:
定数フィールド値

DATA_FORMAT_TEXT

public static final short DATA_FORMAT_TEXT
書式 text、@

関連項目:
定数フィールド値

DATA_FORMAT_TIME1

public static final short DATA_FORMAT_TIME1
書式 h:mm AM/PM

関連項目:
定数フィールド値

DATA_FORMAT_TIME2

public static final short DATA_FORMAT_TIME2
書式 h:mm:ss AM/PM

関連項目:
定数フィールド値

DATA_FORMAT_TIME3

public static final short DATA_FORMAT_TIME3
書式 h:mm

関連項目:
定数フィールド値

DATA_FORMAT_TIME4

public static final short DATA_FORMAT_TIME4
書式 h:mm:ss

関連項目:
定数フィールド値

DATA_FORMAT_TIME5

public static final short DATA_FORMAT_TIME5
書式 mm:ss

関連項目:
定数フィールド値

DATA_FORMAT_TIME6

public static final short DATA_FORMAT_TIME6
書式 [h]:mm:ss

関連項目:
定数フィールド値

DATA_FORMAT_TIME7

public static final short DATA_FORMAT_TIME7
書式 mm:ss.0

関連項目:
定数フィールド値

DATA_FORMAT_DATE1

public static final String DATA_FORMAT_DATE1
書式 yyyy mm dd

関連項目:
定数フィールド値

DATA_FORMAT_DATE2

public static final String DATA_FORMAT_DATE2
書式 yyyy/mm/dd

関連項目:
定数フィールド値

DATA_FORMAT_DATE3

public static final String DATA_FORMAT_DATE3
書式 yyyy-mm-dd

関連項目:
定数フィールド値

DATA_FORMAT_INTEGER

public static final short DATA_FORMAT_INTEGER
書式 0

関連項目:
定数フィールド値

DATA_FORMAT_DOUBLE

public static final short DATA_FORMAT_DOUBLE
書式 0.00

関連項目:
定数フィールド値

DATA_FORMAT_PERSENT

public static final short DATA_FORMAT_PERSENT
書式 0%

関連項目:
定数フィールド値

DATA_FORMAT_PERSENT1

public static final short DATA_FORMAT_PERSENT1
書式 0.00%

関連項目:
定数フィールド値
コンストラクタの詳細

PoiUtility

public PoiUtility()
コンストラクタ。

メソッドの詳細

crtNewDoc

public void crtNewDoc(int shno,
                      String shname)
               throws Exception
新しい頁作成メソッド。

例外:
Exception

crtNewDocR

public void crtNewDocR(int shno,
                       String file1)
                throws Exception
新しい頁作成メソッド (参照用)。

例外:
Exception

selSheet

public void selSheet(int shno)
              throws Exception
新しいシート作成メソッド。

例外:
Exception

crtSheet

public void crtSheet(int newno,
                     String shnm)
              throws Exception
新しいシート作成メソッド。

例外:
Exception

clnSheet

public void clnSheet(int shno,
                     int newno,
                     String shnm)
              throws Exception
新しいシート作成メソッド (参照用)。

例外:
Exception

rmvSheet

public void rmvSheet(int shno)
              throws Exception
シート削除メソッド。

例外:
Exception

setColumnWidth

public void setColumnWidth(int columnNo,
                           int number)
セル幅設定

パラメータ:
columnNo - column番号
number - 文字数

setDefaultColumnWidth

public void setDefaultColumnWidth(int number)
シートデフォルトセル幅設定

パラメータ:
number - 文字数

setZoom

public void setZoom(int magnification)
表示倍率変更

パラメータ:
magnification - 表示倍率(%)

setSheetName

public void setSheetName(int sheetno,
                         String sheetname)
シート名変更

パラメータ:
sheetno - シート番号
sheetname - 変更後シート名

outputDoc

public void outputDoc(String file)
               throws Exception
ドキュメント出力メソッド。

例外:
Exception

clrCell

public void clrCell(int rr,
                    int cc)
             throws Exception
項目消去メソッド。

例外:
Exception

getRow

public void getRow(int rr)
            throws Exception
行読込メソッド。

例外:
Exception

crtRow

public void crtRow(int rr)
            throws Exception
行作成メソッド。

例外:
Exception

dltRow

public void dltRow(int rr)
            throws Exception
行削除メソッド。

例外:
Exception

shiftRows

public void shiftRows(int rr)
               throws Exception
行シフトメソッド。

例外:
Exception

prtItem

public void prtItem(int rr,
                    int cc,
                    String sdata)
             throws Exception
セル印刷メソッド(String)。

例外:
Exception

prtItem

public void prtItem(int rr,
                    int cc,
                    int idata)
             throws Exception
セル印刷メソッド(int)。

例外:
Exception

prtItem

public void prtItem(int rr,
                    int cc,
                    double ddata)
             throws Exception
セル印刷メソッド(double)。

例外:
Exception

getsItem

public String getsItem(int cc)
セル読込メソッド(String)1。


getsItem

public String getsItem(int rr,
                       int cc)
セル読込メソッド(String)2。


getiItem

public int getiItem(int rr,
                    int cc)
セル読込メソッド(int)。


getdItem

public double getdItem(int rr,
                       int cc)
セル読込メソッド(double)。


wrtItem

public void wrtItem(int cc,
                    String sdata)
             throws Exception
セル印刷メソッド(String)。

例外:
Exception

wrtItem

public void wrtItem(int cc,
                    int idata)
             throws Exception
セル印刷メソッド(int)。

例外:
Exception

wrtItem

public void wrtItem(int cc,
                    double ddata)
             throws Exception
セル印刷メソッド(double)。

例外:
Exception

clnCellStyle

public void clnCellStyle(int rr,
                         int cc,
                         int tr,
                         int tc)
                  throws Exception
セルスタイル複写メソッド。

例外:
Exception

setCellStyle

public void setCellStyle(int rr,
                         int cc)
                  throws Exception
セルスタイルセットメソッド。

例外:
Exception

prtBorderTop

public void prtBorderTop(int rr,
                         int cc)
                  throws Exception
セル罫線印刷メソッド。

例外:
Exception

prtBorderBottom

public void prtBorderBottom(int rr,
                            int cc)
                     throws Exception
セル罫線印刷メソッド。

例外:
Exception

setCellYen

public void setCellYen(int rr,
                       int cc)
                throws Exception
セル金額円印刷メソッド。

例外:
Exception

setCellStyleDateFormat

public void setCellStyleDateFormat(int rr,
                                   int cc)
                            throws Exception
セル日付形式メソッド。

例外:
Exception

addMergedRegion

public void addMergedRegion(int rrf,
                            int ccf,
                            int rrt,
                            int cct)
                     throws Exception
セル結合メソッド。

例外:
Exception

setCellBgColor

public void setCellBgColor(short bgColor)
セルの背景色設定

パラメータ:
bgColor - PoiUtilityの色

setCellBgColor

public void setCellBgColor(short bgColor,
                           short pattern)
セルの背景色設定(塗りつぶし指定)

パラメータ:
bgColor - PoiUtilityの色
pattern - PoiUtilityのパターン

setCellFontColor

public void setCellFontColor(short fontColor)
フォント色設定

パラメータ:
fontColor - PoiUtilityの色

setFontHAlignCenter

public void setFontHAlignCenter()
横方向中央寄せ


setFontHAlignLeft

public void setFontHAlignLeft()
左寄せ


setFontHAlignRight

public void setFontHAlignRight()
右寄せ


setFontVAlighCenter

public void setFontVAlighCenter()
縦方向中央寄せ


setWrapText

public void setWrapText()
セルの文字列を折り返して全体を表示


setFontSize

public void setFontSize(int size)
フォントサイズ設定

パラメータ:
size - フォントサイズ

setFontType

public void setFontType(String fontName)
フォント種類設定

パラメータ:
fontName - フォント名

setFontWeightBold

public void setFontWeightBold()
太字設定


setCellColorCoordinate

public void setCellColorCoordinate(short bgColor,
                                   short fontColor)
セルとフォントの色指定

パラメータ:
bgColor - PoiUtilityの色
fontColor - PoiUtilityの色

setCellColorCoordinate

public void setCellColorCoordinate(short bgColor,
                                   short fontColor,
                                   short pattern)
セルとフォントの色指定(塗りつぶし指定)

パラメータ:
bgColor - PoiUtilityの色
fontColor - PoiUtilityの色
pattern - PoiUtilityのパターン

setBorderAround

public void setBorderAround(short borderStyle,
                            short borderColor)
セルボーダー設定

パラメータ:
borderStyle - ボーダータイプ
borderColor - ボーダー色

setBorderAroundDotted

public void setBorderAroundDotted()
黒点字ボーダーセル


setBorderTop

public void setBorderTop(short borderStyle,
                         short borderColor)
上側ボーダー設定

パラメータ:
borderStyle - ボーダータイプ
borderColor - ボーダー色

setBorderRight

public void setBorderRight(short borderStyle,
                           short borderColor)
右側ボーダー設定

パラメータ:
borderStyle - ボーダータイプ
borderColor - ボーダー色

setBorderBottom

public void setBorderBottom(short borderStyle,
                            short borderColor)
下側ボーダー設定

パラメータ:
borderStyle - ボーダータイプ
borderColor - ボーダー色

setBorderLeft

public void setBorderLeft(short borderStyle,
                          short borderColor)
左側ボーダー設定

パラメータ:
borderStyle - ボーダータイプ
borderColor - ボーダー色

createCellStyle

public void createCellStyle()
スタイル設定生成

メソッド実行後、prtItem(int, int, String)等を実行した後、
必ずreflectCellStyleNoFont()を実行してください。


createCellStyleAndFont

public void createCellStyleAndFont()
スタイル・フォント設定生成

メソッド実行後、prtItem(int, int, String)等を実行した後、
必ずreflectCellStyle()を実行してください。


prtItem

public void prtItem(int rr,
                    int cc,
                    String sdata,
                    boolean isStyle)
             throws Exception
セル印刷設定

パラメータ:
rr - row番号
cc - cell番号
sdata - Stringデータ
isStyle - スタイルの利用可否(フォント設定有り)
例外:
Exception -

isStyleがtrueの場合、実行後スタイルを設定し、
必ずreflectCellStyle()を実行してください。


setDataFormat

public void setDataFormat(short format)
書式設定

パラメータ:
format - 書式タイプ

setDataFormat

public void setDataFormat(String type)
書式設定

パラメータ:
type - 書式タイプ

reflectCellStyle

public void reflectCellStyle()
スタイル反映

スタイルを設定した場合、必ずこのメソッドを実行してください。


reflectCellStyleNoFont

public void reflectCellStyleNoFont()
スタイル反映(フォント設定無し)

スタイルを設定(フォント設定無し)した場合、必ずこのメソッドを実行してください。


getFirstRow

public int getFirstRow()
最初行取得メソッド。


getLastRow

public int getLastRow()
最終行取得メソッド。


setPrintArea

public void setPrintArea(int shno,
                         int strcc,
                         int endcc,
                         int strrr,
                         int endrr)
印刷範囲の設定メソッド。


setPrintArea

public void setPrintArea(int shno,
                         String printa)
印刷範囲の設定メソッド。


getWorkbook

public org.apache.poi.hssf.usermodel.HSSFWorkbook getWorkbook()
Workbookを返却するメソッド。