|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.bbreak.excella.reports.util.ReportsUtil
public final class ReportsUtil
帳票用ユーティリティクラス
フィールドの概要 | |
---|---|
static String |
VALUE_SHEET_NAMES
システム変数:シート名 |
static String |
VALUE_SHEET_VALUES
システム変数:シート値 |
メソッドの概要 | |
---|---|
static CellStyle[][] |
getBlockCellStyle(Sheet sheet,
int bStartRowIndex,
int bEndRowIndex,
int bStartColIndex,
int bEndColIndex)
対象シートの指定された範囲のセルに書かれている文字列をCellStyle[行番号][列番号]の形式で取得する。 |
static int[][] |
getBlockCellType(Sheet sheet,
int bStartRowIndex,
int bEndRowIndex,
int bStartColIndex,
int bEndColIndex)
対象シートの指定された範囲のセルのタイプint[行番号][列番号]の形式で取得する。 |
static Object[][] |
getBlockCellValue(Sheet sheet,
int bStartRowIndex,
int bEndRowIndex,
int bStartColIndex,
int bEndColIndex)
対象シートの指定された範囲のセルに書かれている文字列をString[行番号][列番号]の形式で取得する。 |
static int[] |
getCellIndex(String cellParam,
String tagName)
オプション定義が範囲(XXXCell=n:n)から、nを数値で取得する。 |
static CellRangeAddress |
getMergedAddress(Sheet sheet,
int rowIndex,
int columnIndex)
指定された行、列座標のセルを含む結合セルを取得する。 |
static List<Object> |
getParamValues(ParamInfo info,
String propertyNameString,
List<ReportsTagParser<?>> parsers)
パラメータ情報(子パラメータを含む)より、置換変数名で指定されている変換値を取得する。 |
static ReportSheet |
getReportSheet(String sheetName,
ReportBook reportBook)
シート名と一致する帳票シート情報を取得する。 |
static List<String> |
getSheetNames(ReportBook reportBook)
シート名リストを取得する。 |
static List<Object> |
getSheetValues(ReportBook reportBook,
String propertyName,
List<ReportsTagParser<?>> parsers)
シートの値を取得する。 |
static BigDecimal |
getSumValue(ParamInfo info,
String propertyName,
List<ReportsTagParser<?>> parsers)
合計値を取得する。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
public static final String VALUE_SHEET_NAMES
public static final String VALUE_SHEET_VALUES
メソッドの詳細 |
---|
public static ReportSheet getReportSheet(String sheetName, ReportBook reportBook)
sheetName
- シート名reportBook
- 帳票ワークブック情報
public static List<String> getSheetNames(ReportBook reportBook)
reportBook
- 帳票シート情報
public static List<Object> getParamValues(ParamInfo info, String propertyNameString, List<ReportsTagParser<?>> parsers)
置換変数文字列指定方法 タグ名:置換変数名 例) $R[]:金額 $C:日付 $:名前 名前(単純置換の場合は『タグ名:』は省略可…『$:』が補完される) ブロックタグ($BR[]、$BC[])は『.』で子パラメータを指定する。 ブロックタグが複数でも連続して指定可能 ブロックタグ名:置換変数名.ブロックタグ名:置換変数名.タグ名:置換変数名 例) $BR[]:支店.$R[]:担当者 $BR[]:支店.支店名
info
- パラメータ情報propertyNameString
- 置換変数文字列parsers
- 使用中のパーサ群
public static List<Object> getSheetValues(ReportBook reportBook, String propertyName, List<ReportsTagParser<?>> parsers)
reportBook
- 帳票シート情報propertyName
- 単純置換変数parsers
- 使用中のパーサ群
public static BigDecimal getSumValue(ParamInfo info, String propertyName, List<ReportsTagParser<?>> parsers)
info
- パラメータ情報propertyName
- 置換変数文字列parsers
- 使用中のパーサ群
public static CellRangeAddress getMergedAddress(Sheet sheet, int rowIndex, int columnIndex)
sheet
- 対象シートrowIndex
- 行インデックスcolumnIndex
- 列インデックス
public static int[] getCellIndex(String cellParam, String tagName) throws ParseException
cellParam
- 範囲指定(n:n)tagName
- タグ名称(エラー時出力用)
ParseException
public static Object[][] getBlockCellValue(Sheet sheet, int bStartRowIndex, int bEndRowIndex, int bStartColIndex, int bEndColIndex)
sheet
- 対象となるシートbStartRowIndex
- 範囲開始行番号bEndRowIndex
- 範囲終了行番号bStartColIndex
- 範囲開始列番号bEndColIndex
- 範囲終了列番号
public static CellStyle[][] getBlockCellStyle(Sheet sheet, int bStartRowIndex, int bEndRowIndex, int bStartColIndex, int bEndColIndex)
sheet
- 対象となるシートbStartRowIndex
- 範囲開始行番号bEndRowIndex
- 範囲終了行番号bStartColIndex
- 範囲開始列番号bEndColIndex
- 範囲終了列番号
public static int[][] getBlockCellType(Sheet sheet, int bStartRowIndex, int bEndRowIndex, int bStartColIndex, int bEndColIndex)
sheet
- 対象となるシートbStartRowIndex
- 範囲開始行番号bEndRowIndex
- 範囲終了行番号bStartColIndex
- 範囲開始列番号bEndColIndex
- 範囲終了列番号
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |