common
クラス CommonListData

java.lang.Object
  拡張java.util.AbstractCollection
      拡張java.util.AbstractList
          拡張java.util.ArrayList
              拡張common.CommonListData
すべての実装インタフェース:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable
直系の既知のサブクラス:
XMLListData

public class CommonListData
extends java.util.ArrayList

[共通]ListDataクラス
ListDataクラスで共通に使用するユーティリティーメソッドを持つ

関連項目:
直列化された形式

フィールドの概要
 
クラス java.util.AbstractList から継承したフィールド
modCount
 
コンストラクタの概要
CommonListData()
          デフォルトコンストラクタ
 
メソッドの概要
 int getCurrentEndRowIndex()
          現在表示中の終了インデックスの取得。
 int getCurrentPage()
          表示ページ番号の取得。
 int getCurrentStartRowIndex()
          現在表示中の開始インデックスの取得。
 int getLastPage()
          最終ページ番号の取得。
 int getPageEndRowIndex(int page)
          ページの終了インデックスの取得。
 int getPageRowSize()
          1ページ表示件数の取得。
 int getPageStartRowIndex(int page)
          ページの開始インデックスの取得。
 boolean isLastPage()
          現在のカレントが最終ページであるかを返します。
 boolean isLastPage(int page)
          ページが最終ページであるかを返します。
protected  boolean isSpace(java.lang.String str)
          文字列が null または ""(空文字) または " "(半角空白のみ) のとき trueを返す。
 boolean isTopPage()
          現在のカレントが先頭ページであるかを返します。
protected  void printDEBUG(java.lang.String debug)
          デバッグ情報を出力する。
protected  java.lang.String rn(java.lang.String str)
          文字列が null のとき ""(空文字) に変換する。
 void setCurrentPage(int currentPage)
          表示ページ番号の設定。
 void setPageRowSize(int pageRowSize)
          1ページ表示件数の設定。
 
クラス java.util.ArrayList から継承したメソッド
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
クラス java.util.AbstractList から継承したメソッド
equals, hashCode, iterator, listIterator, listIterator, subList
 
クラス java.util.AbstractCollection から継承したメソッド
containsAll, remove, removeAll, retainAll, toString
 
クラス java.lang.Object から継承したメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 
インタフェース java.util.List から継承したメソッド
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

コンストラクタの詳細

CommonListData

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

メソッドの詳細

isSpace

protected boolean isSpace(java.lang.String str)
                   throws java.lang.Exception
文字列が null または ""(空文字) または " "(半角空白のみ) のとき trueを返す。

パラメータ:
str - チェックする文字列
戻り値:
true:null または "" または " "
false:null または "" または " "以外
例外:
java.lang.Exception

rn

protected java.lang.String rn(java.lang.String str)
                       throws java.lang.Exception
文字列が null のとき ""(空文字) に変換する。

パラメータ:
str - 変換する文字列
戻り値:
変換後の文字列
例外:
java.lang.Exception

printDEBUG

protected void printDEBUG(java.lang.String debug)
デバッグ情報を出力する。

パラメータ:
debug -

setPageRowSize

public void setPageRowSize(int pageRowSize)
1ページ表示件数の設定。

パラメータ:
pageRowSize - 1ページ表示件数

getPageRowSize

public int getPageRowSize()
1ページ表示件数の取得。

戻り値:
1ページ表示件数

setCurrentPage

public void setCurrentPage(int currentPage)
表示ページ番号の設定。

パラメータ:
currentPage - 表示ページ番号

getCurrentPage

public int getCurrentPage()
表示ページ番号の取得。

戻り値:
表示ページ番号

getLastPage

public int getLastPage()
最終ページ番号の取得。

戻り値:
最終ページ番号

getCurrentStartRowIndex

public int getCurrentStartRowIndex()
現在表示中の開始インデックスの取得。

戻り値:
現在表示中の開始インデックス

getCurrentEndRowIndex

public int getCurrentEndRowIndex()
現在表示中の終了インデックスの取得。

戻り値:
現在表示中の開始インデックス

isLastPage

public boolean isLastPage()
現在のカレントが最終ページであるかを返します。

戻り値:
最終ページである場合にtrueを返します。

isTopPage

public boolean isTopPage()
現在のカレントが先頭ページであるかを返します。

戻り値:
先頭ページである場合にtrueを返します。

getPageStartRowIndex

public int getPageStartRowIndex(int page)
ページの開始インデックスの取得。

パラメータ:
page - ページ番号
戻り値:
表示する開始インデックス

getPageEndRowIndex

public int getPageEndRowIndex(int page)
ページの終了インデックスの取得。

パラメータ:
page - ページ番号
戻り値:
表示する開始インデックス

isLastPage

public boolean isLastPage(int page)
ページが最終ページであるかを返します。

戻り値:
最終ページである場合にtrueを返します。