|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.mosp.common.common.PoiUtility
public class PoiUtility
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 |
フィールドの詳細 |
---|
public static final short AQUA
public static final short BLACK
public static final short BLUE
public static final short BLUE_GREY
public static final short BRIGHT_GREEN
public static final short BROWN
public static final short CORAL
public static final short CORNFLOWER_BLUE
public static final short DARK_BLUE
public static final short DARK_GREEN
public static final short DARK_RED
public static final short DARK_TEAL
public static final short DARK_YELLOW
public static final short GOLD
public static final short GREEN
public static final short GREY_25_PERCENT
public static final short GREY_40_PERCENT
public static final short GREY_50_PERCENT
public static final short GREY_80_PERCENT
public static final short INDIGO
public static final short LAVENDER
public static final short LEMON_CHIFFON
public static final short LIGHT_BLUE
public static final short LIGHT_CORNFLOWER_BLUE
public static final short LIGHT_GREEN
public static final short LIGHT_ORANGE
public static final short LIGHT_TURQUOISE
public static final short LIGHT_YELLOW
public static final short LIME
public static final short MAROON
public static final short OLIVE_GREEN
public static final short ORANGE
public static final short ORCHID
public static final short PALE_BLUE
public static final short PINK
public static final short PLUM
public static final short RED
public static final short ROSE
public static final short ROYAL_BLUE
public static final short SEA_GREEN
public static final short SKY_BLUE
public static final short TAN
public static final short TEAL
public static final short TURQUOISE
public static final short VIOLET
public static final short WHITE
public static final short YELLOW
public static final short NO_FILL
public static final short SOLID_FOREGROUND
public static final short FINE_DOTS
public static final short ALT_BARS
public static final short SPARSE_DOTS
public static final short THICK_HORZ_BANDS
public static final short THICK_VERT_BANDS
public static final short THICK_BACKWARD_DIAG
public static final short THICK_FORWARD_DIAG
public static final short BIG_SPOTS
public static final short BRICKS
public static final short THIN_HORZ_BANDS
public static final short THIN_VERT_BANDS
public static final short THIN_BACKWARD_DIAG
public static final short THIN_FORWARD_DIAG
public static final short SQUARES
public static final short DIAMONDS
public static final String MS_GOTHIC
public static final String MS_P_MINTYO
public static final String MS_MINTYO
public static final short BORDER_DOTTED
public static final short BORDER_THIN
public static final short DATA_FORMAT_TEXT
public static final short DATA_FORMAT_TIME1
public static final short DATA_FORMAT_TIME2
public static final short DATA_FORMAT_TIME3
public static final short DATA_FORMAT_TIME4
public static final short DATA_FORMAT_TIME5
public static final short DATA_FORMAT_TIME6
public static final short DATA_FORMAT_TIME7
public static final String DATA_FORMAT_DATE1
public static final String DATA_FORMAT_DATE2
public static final String DATA_FORMAT_DATE3
public static final short DATA_FORMAT_INTEGER
public static final short DATA_FORMAT_DOUBLE
public static final short DATA_FORMAT_PERSENT
public static final short DATA_FORMAT_PERSENT1
コンストラクタの詳細 |
---|
public PoiUtility()
メソッドの詳細 |
---|
public void crtNewDoc(int shno, String shname) throws Exception
Exception
public void crtNewDocR(int shno, String file1) throws Exception
Exception
public void selSheet(int shno) throws Exception
Exception
public void crtSheet(int newno, String shnm) throws Exception
Exception
public void clnSheet(int shno, int newno, String shnm) throws Exception
Exception
public void rmvSheet(int shno) throws Exception
Exception
public void setColumnWidth(int columnNo, int number)
columnNo
- column番号number
- 文字数public void setDefaultColumnWidth(int number)
number
- 文字数public void setZoom(int magnification)
magnification
- 表示倍率(%)public void setSheetName(int sheetno, String sheetname)
sheetno
- シート番号sheetname
- 変更後シート名public void outputDoc(String file) throws Exception
Exception
public void clrCell(int rr, int cc) throws Exception
Exception
public void getRow(int rr) throws Exception
Exception
public void crtRow(int rr) throws Exception
Exception
public void dltRow(int rr) throws Exception
Exception
public void shiftRows(int rr) throws Exception
Exception
public void prtItem(int rr, int cc, String sdata) throws Exception
Exception
public void prtItem(int rr, int cc, int idata) throws Exception
Exception
public void prtItem(int rr, int cc, double ddata) throws Exception
Exception
public String getsItem(int cc)
public String getsItem(int rr, int cc)
public int getiItem(int rr, int cc)
public double getdItem(int rr, int cc)
public void wrtItem(int cc, String sdata) throws Exception
Exception
public void wrtItem(int cc, int idata) throws Exception
Exception
public void wrtItem(int cc, double ddata) throws Exception
Exception
public void clnCellStyle(int rr, int cc, int tr, int tc) throws Exception
Exception
public void setCellStyle(int rr, int cc) throws Exception
Exception
public void prtBorderTop(int rr, int cc) throws Exception
Exception
public void prtBorderBottom(int rr, int cc) throws Exception
Exception
public void setCellYen(int rr, int cc) throws Exception
Exception
public void setCellStyleDateFormat(int rr, int cc) throws Exception
Exception
public void addMergedRegion(int rrf, int ccf, int rrt, int cct) throws Exception
Exception
public void setCellBgColor(short bgColor)
bgColor
- PoiUtility
の色public void setCellBgColor(short bgColor, short pattern)
bgColor
- PoiUtility
の色pattern
- PoiUtility
のパターンpublic void setCellFontColor(short fontColor)
fontColor
- PoiUtility
の色public void setFontHAlignCenter()
public void setFontHAlignLeft()
public void setFontHAlignRight()
public void setFontVAlighCenter()
public void setWrapText()
public void setFontSize(int size)
size
- フォントサイズpublic void setFontType(String fontName)
fontName
- フォント名public void setFontWeightBold()
public void setCellColorCoordinate(short bgColor, short fontColor)
bgColor
- PoiUtility
の色fontColor
- PoiUtility
の色public void setCellColorCoordinate(short bgColor, short fontColor, short pattern)
bgColor
- PoiUtility
の色fontColor
- PoiUtility
の色pattern
- PoiUtility
のパターンpublic void setBorderAround(short borderStyle, short borderColor)
borderStyle
- ボーダータイプborderColor
- ボーダー色public void setBorderAroundDotted()
public void setBorderTop(short borderStyle, short borderColor)
borderStyle
- ボーダータイプborderColor
- ボーダー色public void setBorderRight(short borderStyle, short borderColor)
borderStyle
- ボーダータイプborderColor
- ボーダー色public void setBorderBottom(short borderStyle, short borderColor)
borderStyle
- ボーダータイプborderColor
- ボーダー色public void setBorderLeft(short borderStyle, short borderColor)
borderStyle
- ボーダータイプborderColor
- ボーダー色public void createCellStyle()
メソッド実行後、prtItem(int, int, String)
等を実行した後、
必ずreflectCellStyleNoFont()
を実行してください。
public void createCellStyleAndFont()
メソッド実行後、prtItem(int, int, String)
等を実行した後、
必ずreflectCellStyle()
を実行してください。
public void prtItem(int rr, int cc, String sdata, boolean isStyle) throws Exception
rr
- row番号cc
- cell番号sdata
- StringデータisStyle
- スタイルの利用可否(フォント設定有り)
Exception
-
isStyleがtrueの場合、実行後スタイルを設定し、
必ずreflectCellStyle()
を実行してください。
public void setDataFormat(short format)
format
- 書式タイプpublic void setDataFormat(String type)
type
- 書式タイプpublic void reflectCellStyle()
スタイルを設定した場合、必ずこのメソッドを実行してください。
public void reflectCellStyleNoFont()
スタイルを設定(フォント設定無し)した場合、必ずこのメソッドを実行してください。
public int getFirstRow()
public int getLastRow()
public void setPrintArea(int shno, int strcc, int endcc, int strrr, int endrr)
public void setPrintArea(int shno, String printa)
public org.apache.poi.hssf.usermodel.HSSFWorkbook getWorkbook()
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |