jp.mosp.common.common
クラス ListVo

java.lang.Object
  上位を拡張 jp.mosp.common.common.BaseVo
      上位を拡張 jp.mosp.common.common.ListVo
すべての実装されたインタフェース:
Serializable, VoInterface

public class ListVo
extends BaseVo

一覧表示に有用な機能を提供する。

頁送り情報、ソート情報等を保持し、そのアクセサメソッドを有する。

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

フィールドの概要
protected  int count
           
protected  int countAllData
          総件数。
protected  int dataPerPage
          1頁あたりの表示件数。
protected  String formerKey
           
protected  boolean isAscending
           
protected  List<?> list
           
protected  int listLength
           
protected  String pageCommand
          頁繰りコマンド。
protected  int selectIndex
          選択頁番号。
protected  String selectKey
          ソートキー。
 
クラス jp.mosp.common.common.BaseVo から継承されたフィールド
aryMenu, cfg, cmd, docXml, errDetails, errFields, errMessage, isValid, msg, nam, needDirectJs, retUrl, subTitle, xmlRetCode
 
コンストラクタの概要
ListVo()
          コンストラクタ。
 
メソッドの概要
 int getCount()
           
 int getCountAllData()
           
 int getDataPerPage()
           
 int getEnd()
           
 String getFormerKey()
           
 boolean getIsAscending()
           
 List<?> getList()
           
 boolean getNeedFormer()
           
 boolean getNeedNext()
           
 int getOffset()
          OFFSET取得。
 String getPageCommand()
           
 int getSelectIndex()
           
 String getSelectKey()
           
 String getSortMark(String key)
          ソートマーク出力。
 int getStart()
           
 void initListInfo()
          リスト情報初期化。
 void initVo(Properties cfg, Properties msg, String cmd, CmAspUserDto aspUserDto, CmUserDto userDto)
          VO初期化。
 void pageFormer()
          リスト頁戻し。
 void pageNext()
          リスト頁送り。
 void setCount(int count)
           
 void setCountAllData(int countAllData)
           
 void setDataPerPage(int dataPerPage)
           
 void setFormerKey(String formerKey)
           
 void setIsAscending(boolean isAscending)
           
 void setPageButton()
          頁ボタン要否設定。
 void setPageCommand(String pageCommand)
           
 void setSelectIndex(int selectIndex)
           
 void setSelectKey(String selectKey)
           
 void setSortKey(String sortKey)
          ソートキー設定。
 void sortList(Comparator<Object> comp)
          リストソート(ソート情報の変更無し)。
 void sortList(String key, Comparator<Object> comp)
          リストソート。
 
クラス jp.mosp.common.common.BaseVo から継承されたメソッド
addErrDetails, addErrField, addErrMessage, addExtraCss, addExtraJs, appendElement, appendTextElement, checkCode, checkCode, checkCompare, checkDate, checkDate, checkDateBeforeAfter, checkDecimal, checkLength, checkLength, checkNumber, checkNumber, checkNumeric, checkNumeric, checkPassword, checkPhone, checkRegex, checkRegex, checkRequired, checkRequired, checkTerm, checkTerm, checkTime, checkTime, clearErrField, clearMessage, createElement, endValidation, escapeHTML, getAryField, getAryField, getAryField, getAryMenu, getAspName, getAspUserId, getClassName, getCommonCss, getCopy, getDate, getDateField, getDirectJs, getDirectJs, getDocXml, getDoubleParam, getErrMessage, getEscAspName, getEscAspUserId, getEscCommonCss, getEscCopy, getEscMessage, getEscProcSeq, getEscTitle, getEscUserId, getEscUserName, getEscVersion, getExtraCss, getExtraJs, getFloatParam, getFormatNumber, getIntParam, getIsDialog, getLogoPath, getLongParam, getMessage, getName, getProcSeq, getRetUrl, getStrDay, getStrDocXml, getStrMonth, getStrYear, getSubTitle, getTime, getTitle, getUserId, getUserName, getVersion, getXmlRetCode, initVo, initXmlDoc, setAspName, setAspUserId, setCommonCss, setCopy, setErrMessage, setExtraCss, setExtraJs, setFieldsName, setIsDialog, setMessage, setProcSeq, setRetUrl, setSubTitle, setTitle, setUserId, setUserName, setVersion, setViewPath, setXmlRetCode, startValidation
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

count

protected int count

list

protected List<?> list

formerKey

protected String formerKey

isAscending

protected boolean isAscending

listLength

protected int listLength

pageCommand

protected String pageCommand
頁繰りコマンド。
HtmlUtility.getListInfoFlex(ListVo)で用いる。


selectKey

protected String selectKey
ソートキー。
HtmlUtility.getListInfoFlex(ListVo)で用いる。


selectIndex

protected int selectIndex
選択頁番号。
HtmlUtility.getListInfoFlex(ListVo)で用いる。


countAllData

protected int countAllData
総件数。
HtmlUtility.getListInfoFlex(ListVo)で用いる。


dataPerPage

protected int dataPerPage
1頁あたりの表示件数。
HtmlUtility.getListInfoFlex(ListVo)で用いる。

コンストラクタの詳細

ListVo

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

メソッドの詳細

initVo

public void initVo(Properties cfg,
                   Properties msg,
                   String cmd,
                   CmAspUserDto aspUserDto,
                   CmUserDto userDto)
VO初期化。
MosPフレームワークで用いる各種情報を設定する。

オーバーライド:
クラス BaseVo 内の initVo
パラメータ:
cfg - 設定ファイル
msg - メッセージファイル
cmd - コマンド
aspUserDto - ASPユーザー
userDto - ユーザー

initListInfo

public void initListInfo()
                  throws MospException
リスト情報初期化。

例外:
MospException

pageNext

public void pageNext()
リスト頁送り。


pageFormer

public void pageFormer()
リスト頁戻し。


setPageButton

public void setPageButton()
頁ボタン要否設定。


sortList

public void sortList(String key,
                     Comparator<Object> comp)
              throws MospException
リストソート。

例外:
MospException

sortList

public void sortList(Comparator<Object> comp)
リストソート(ソート情報の変更無し)。


getSortMark

public String getSortMark(String key)
ソートマーク出力。

パラメータ:
key - ソートキー
戻り値:
HTMLソートマークの文字列

getOffset

public int getOffset()
OFFSET取得。

戻り値:
OFFSET

setSortKey

public void setSortKey(String sortKey)
ソートキー設定。

パラメータ:
sortKey - ソートキー

getList

public List<?> getList()

getCount

public int getCount()

getStart

public int getStart()

getEnd

public int getEnd()

getNeedFormer

public boolean getNeedFormer()

getNeedNext

public boolean getNeedNext()

getIsAscending

public boolean getIsAscending()

getFormerKey

public String getFormerKey()

setCount

public void setCount(int count)

setFormerKey

public void setFormerKey(String formerKey)

setIsAscending

public void setIsAscending(boolean isAscending)

getPageCommand

public String getPageCommand()

getSelectKey

public String getSelectKey()

getSelectIndex

public int getSelectIndex()

getCountAllData

public int getCountAllData()

getDataPerPage

public int getDataPerPage()

setPageCommand

public void setPageCommand(String pageCommand)

setSelectKey

public void setSelectKey(String selectKey)

setSelectIndex

public void setSelectIndex(int selectIndex)

setCountAllData

public void setCountAllData(int countAllData)

setDataPerPage

public void setDataPerPage(int dataPerPage)