jp.terasoluna.fw.ex.web.struts.taglib
クラス PageLinksTagEx

java.lang.Object
  上位を拡張 javax.servlet.jsp.tagext.TagSupport
      上位を拡張 jp.terasoluna.fw.web.struts.taglib.PageLinksTag
          上位を拡張 jp.terasoluna.fw.ex.web.struts.taglib.PageLinksTagEx
すべての実装されたインタフェース:
Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class PageLinksTagEx
extends jp.terasoluna.fw.web.struts.taglib.PageLinksTag

ページ単位にページを遷移するPageLinksTagの拡張機能。 基本的な仕様はTERASOLUNAフレームワークが提供するPageLinksTagに準ずる。


タグがサポートする属性

ページリンク拡張機能では、以下の属性をサポートする。

属性名 デフォルト値 必須性 実行時式 概要
id - false true この属性に文字列が指定された場合、 ページリンクの出力先を画面ではなくページコンテキストに保存する。 この属性は保存するキーとなる。
action - false true 一覧表示画面の表示を行うアクションパス名を指定する。
submit属性がfalseの場合は必須属性となる。
name - false true 表示行数、開始行インデックス、一覧情報全行数を取得するBeanを指定する。
rowProperty - true true 表示行数を保持するフィールドを指定する。 name属性が指定されていない場合は直接値を取得する。
indexProperty - true true 表示開始インデックスを保持するフィールドを指定する。 name属性が指定されていない場合は直接値を取得する。
totalProperty - true true <logic:iterate>要素によって 定義された一覧情報の全行数を保持するフィールドを指定する。 name属性が指定されていない場合は直接値を取得する。
scope - false true name属性で指定したBeanを取得するスコープを指定する。
submit false false true リンクではなく、サブミットを行う場合はtrueを指定する。デフォルトはfalse。 falseの場合、action属性が必須属性となる。 なお、この属性をtrueに設定するとaction属性は無効となる。
forward false false true TERASOLUNAのDispatchActionを使用してフォワードによる振り分けを行う場合に 使用する属性。trueを指定するとevent属性に設定された値のHiddenタグを出力する。 また、そのHiddenタグのvalue属性を"forward_pageLinks"とする。 デフォルトはfalse。
event "event" false true TERASOLUNAのDispatchActionを使用してフォワードによる振り分けを行う場合に 使用する属性。forward属性をtrueにした場合、この属性に指定した名前の Hiddenタグが生成される。デフォルトは"event"となる。
resetIndex false false true サブミット時に有効になる属性で、trueに設定すると 指定範囲リセットを行うためのstartIndexとendIndexのHiddenタグを出力する。 デフォルトはfalse。
currentPageIndex "currentPageIndex" false true 対応する一覧の現在ページ数をページコンテキストに保存する際のキーとなる。 デフォルトは"currentPageIndex"となる。
totalPageCount "totalPageCount" false true 対応する一覧の総ページ数をページコンテキストに保存する際のキーとなる。 デフォルトは"totalPageCount"となる。
pageJump false false true 拡張機能のページジャンプフォームを使用する場合はtrueを指定する。デフォルトはfalse。 submit属性=true時は使用できない。


使用方法
  • プロパティファイルの設定
  • 基本的な使用方法はTERASOLUNAフレームワークが提供するPageLinksTagに準ずる。
    拡張機能について以下に記載する。

  • プロパティファイル設定の書式解説
  •   pageLinks.first.char=<表示文字列>
      表示文字列 : 画面に表示させる、最初のページに遷移するリンク文字列。

      pageLinks.last.char=<表示文字列>
      表示文字列 : 画面に表示させる、最後ページに遷移するリンク文字列。

      pageLinks.start.tag=<出力文字列>
      出力文字列 : 出力するページリンク表示部分開始タグ情報。

      pageLinks.end.tag=<出力文字列>
      出力文字列 : 出力するページリンク表示部分終了タグ情報。

      pageLinks.start.page.tag=<出力文字列>
      出力文字列 : 出力する各ページに遷移するリンク文字列表示部分開始タグ情報。

      pageLinks.end.page.tag=<出力文字列>
      出力文字列 : 出力する各ページに遷移するリンク文字列表示部分終了タグ情報。

      pageLinks.start.prev.tag=<出力文字列>
      出力文字列 : 出力する前のページに遷移するリンク文字列表示部分開始タグ情報。
      指定しない場合pageLinks.start.page.tagで指定された文字列が出力される。

      pageLinks.end.prev.tag=<出力文字列>
      出力文字列 : 出力する前のページに遷移するリンク文字列表示部分終了タグ情報。
      指定しない場合pageLinks.end.page.tagで指定された文字列が出力される。

      pageLinks.start.next.tag=<出力文字列>
      出力文字列 : 出力する次のページに遷移するリンク文字列表示部分開始タグ情報。
      指定しない場合pageLinks.start.page.tagで指定された文字列が出力される。

      pageLinks.end.next.tag=<出力文字列>
      出力文字列 : 出力する次のページに遷移するリンク文字列表示部分終了タグ情報。
      指定しない場合pageLinks.end.page.tagで指定された文字列が出力される。

      pageLinks.start.first.tag=<出力文字列>
      出力文字列 : 出力する最初のページに遷移するリンク文字列表示部分開始タグ情報。
      指定しない場合pageLinks.satrt.prev.tagで指定された文字列が出力される。
      pageLinks.start.prev.tagも指定されていない場合は、pageLinks.start.page.tagで指定された文字列が出力される。

      pageLinks.end.first.tag=<出力文字列>
      出力文字列 : 出力する最初のページに遷移するリンク文字列表示部分終了タグ情報。
      指定しない場合pageLinks.end.prev.tagで指定された文字列が出力される。
      pageLinks.end.prev.tagも指定されていない場合は、pageLinks.end.page.tagで指定された文字列が出力される。

      pageLinks.start.last.tag=<出力文字列>
      出力文字列 : 出力する最後のページに遷移するリンク文字列表示部分開始タグ情報。
      指定しない場合pageLinks.start.next.tagで指定された文字列が出力される。
      pageLinks.start.next.tagも指定されていない場合は、pageLinks.start.page.tagで指定された文字列が出力される。

      pageLinks.end.last.tag=<出力文字列>
      出力文字列 : 出力する最後のページに遷移するリンク文字列表示部分終了タグ情報。
      指定しない場合pageLinks.end.next.tagで指定された文字列が出力される。
      pageLinks.end.next.tagも指定されていない場合は、pageLinks.end.page.tagで指定された文字列が出力される。

      pageLinks.start.active.tag=<出力文字列>
      出力文字列 : 出力する現在ページ文字列表示部分開始タグ情報。
      指定しない場合pageLinks.start.page.tagで指定された文字列が出力される。

      pageLinks.end.active.tag=<出力文字列>
      出力文字列 : 出力する現在ページ文字列表示部分終了タグ情報。
      指定しない場合pageLinks.end.page.tagで指定された文字列が出力される。

      pageLinks.start.disable.tag=<出力文字列>
      出力文字列 : 出力するリンクなし文字列表示部分開始タグ情報。
      指定しない場合pageLinks.start.page.tagで指定された文字列が出力される。

      pageLinks.end.disable.tag=<出力文字列>
      出力文字列 : 出力するリンクなし文字列表示部分終了タグ情報。
      指定しない場合pageLinks.end.page.tagで指定された文字列が出力される。

      pageLinks.start.jump.tag=<出力文字列>
      出力文字列 : 出力するページジャンプフォーム表示部分開始タグ情報。
      指定しない場合pageLinks.start.page.tagで指定された文字列が出力される。

      pageLinks.end.jump.tag=<出力文字列>
      出力文字列 : 出力するページジャンプフォーム表示部分終了タグ情報。
      指定しない場合pageLinks.end.page.tagで指定された文字列が出力される。

      pageLinks.jump.text.attributes=<出力文字列>
      出力文字列 : ページジャンプフォーム使用時のテキストフォーム属性設定フィールド情報。

      pageLinks.jump.submit.attributes=<出力文字列>
      出力文字列 : ページジャンプフォーム使用時のサブミットボタン属性設定フィールド情報。

      pageLinks.jump.submit.char=<出力文字列>
      出力文字列 : ページジャンプフォーム使用時のサブミットボタンvalue属性設定文字列情報。デフォルトは"submit"となる。


  • プロパティファイル設定例
  •   pageLinks.first.char=First
      pageLinks.last.char=Last
      pageLinks.start.tag=<ul>
      pageLinks.end.tag=</ul>
      pageLinks.start.page.tag=<li>
      pageLinks.end.page.tag=</li>
      pageLinks.start.prev.tag=<li class="prev">
      pageLinks.end.prev.tag=</li>
      pageLinks.start.next.tag=<li class="next">
      pageLinks.end.next.tag=</li>
      pageLinks.start.first.tag=<li class="first">
      pageLinks.end.first.tag=</li>
      pageLinks.start.last.tag=<li class="last">
      pageLinks.end.last.tag=</li>
      pageLinks.start.active.tag=<li class="active">
      pageLinks.end.active.tag=</li>
      pageLinks.start.disable.tag=<li class="disable">
      pageLinks.end.disable.tag=</li>
      pageLinks.start.jump.tag=<li class="jump">
      pageLinks.end.jump.tag=</li>
      pageLinks.jump.text.attributes=size="3" maxlength="2"
      pageLinks.jump.submit.attributes=class="DisableDoubleClick"
      pageLinks.jump.submit.char=click

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

    フィールドの概要
    protected static String END_ACTIVE_TAG
              ApplicationResources ファイルにおける 現在ページ文字列表示部分終了タグのプロパティ名.
    protected static String END_DISABLE_TAG
              ApplicationResources ファイルにおける リンクなし文字列表示部分終了タグのプロパティ名.
    protected static String END_FIRST_TAG
              ApplicationResources ファイルにおける 最初のページに遷移するリンク文字列表示部分終了タグのプロパティ名.
    protected static String END_JUMPFORM_TAG
              ApplicationResources ファイルにおける ページジャンプフォーム表示部分終了タグのプロパティ名.
    protected static String END_LAST_TAG
              ApplicationResources ファイルにおける 最後のページに遷移するリンク文字列表示部分終了タグのプロパティ名.
    protected static String END_LINKS
              ApplicationResources ファイルにおける ページリンク関連項目終了用のプロパティ名の構成要素.
    protected static String END_NEXT_TAG
              ApplicationResources ファイルにおける 次のページに遷移するリンク文字列表示部分終了タグのプロパティ名.
    protected static String END_PAGE_TAG
              ApplicationResources ファイルにおける 各ページに遷移するリンク文字列表示部分終了タグのプロパティ名.
    protected static String END_PAGELINKS_TAG
              ApplicationResources ファイルにおける ページリンク表示部分終了タグのプロパティ名.
    protected static String END_PREV_TAG
              ApplicationResources ファイルにおける 前のページに遷移するリンク文字列表示部分終了タグのプロパティ名.
    protected  String endActiveTag
              現在ページ文字列表示部分終了タグ情報.
    protected  String endDisableTag
              リンクなし文字列表示部分終了タグ情報.
    protected  String endFirstTag
              最初のページに遷移するリンク文字列表示部分終了タグ情報.
    protected  String endJumpFormTag
              ページジャンプフォーム表示部分終了タグ情報.
    protected  String endLastTag
              最後のページに遷移するリンク文字列表示部分終了タグ情報.
    protected  String endNextTag
              次のページに遷移するリンク文字列表示部分終了タグ情報.
    protected  String endPageLinksTag
              ページリンク表示部分終了タグ情報.
    protected  String endPageTag
              各ページに遷移するリンク文字列表示部分終了タグ情報.
    protected  String endPrevTag
              前のページに遷移するリンク文字列表示部分終了タグ情報.
    protected static String FIRST_LINKS
              ApplicationResources ファイルにおける 最初ページへのページジャンプ用リンクのプロパティ名の構成要素.
    protected  String formName
              アクションフォーム名
    protected static String JUMPFORM_SUBMIT_ATTRIBUTES
              ApplicationResources ファイルにおける ページジャンプフォーム使用時のサブミットボタン属性設定用のプロパティ名.
    protected static String JUMPFORM_SUBMIT_DEFAULT
              ページジャンプ用サブミットボタンvalue属性の初期値.
    protected static String JUMPFORM_SUBMIT_VALUE
              ApplicationResources ファイルにおける ページジャンプフォーム使用時のサブミットボタンvalue設定用のプロパティ名.
    protected static String JUMPFORM_TEXT_ATTRIBUTES
              ApplicationResources ファイルにおける ページジャンプフォーム使用時のテキストフォーム属性設定用のプロパティ名.
    protected  String jumpFormSubmitAttributes
              ページジャンプフォーム使用時のサブミットボタン属性設定フィールド情報.
    protected  String jumpFormSubmitValue
              ページジャンプフォーム使用時のサブミットボタンvalue属性設定文字列情報.
    protected  String jumpFormTextAttributes
              ページジャンプフォーム使用時のテキストフォーム属性設定フィールド情報.
    protected static String LAST_LINKS
              ApplicationResources ファイルにおける 最後ページへのページジャンプ用リンクのプロパティ名の構成要素.
    protected  boolean pageJump
              ページジャンプフォーム使用フラグ.
    protected static String PAGEJUMP_JAVASCRIPT_KEY
              ページリンク機能で出力するJavaScriptの出力フラグ.
    protected static String START_ACTIVE_TAG
              ApplicationResources ファイルにおける 現在ページ文字列表示部分開始タグのプロパティ名.
    protected static String START_DISABLE_TAG
              ApplicationResources ファイルにおける リンクなし文字列表示部分開始タグのプロパティ名.
    protected static String START_FIRST_TAG
              ApplicationResources ファイルにおける 最初のページに遷移するリンク文字列表示部分開始タグのプロパティ名.
    protected static String START_JUMPFORM_TAG
              ApplicationResources ファイルにおける ページジャンプフォーム表示部分開始タグのプロパティ名.
    protected static String START_LAST_TAG
              ApplicationResources ファイルにおける 最後のページに遷移するリンク文字列表示部分開始タグのプロパティ名.
    protected static String START_LINKS
              ApplicationResources ファイルにおける ページリンク関連項目開始用のプロパティ名の構成要素.
    protected static String START_NEXT_TAG
              ApplicationResources ファイルにおける 次のページに遷移するリンク文字列表示部分開始タグのプロパティ名.
    protected static String START_PAGE_TAG
              ApplicationResources ファイルにおける 各ページに遷移するリンク文字列表示部分開始タグのプロパティ名.
    protected static String START_PAGELINKS_TAG
              ApplicationResources ファイルにおける ページリンク表示部分開始タグのプロパティ名.
    protected static String START_PREV_TAG
              ApplicationResources ファイルにおける 前のページに遷移するリンク文字列表示部分開始タグのプロパティ名.
    protected  String startActiveTag
              現在ページ文字列表示部分開始タグ情報.
    protected  String startDisableTag
              リンクなし文字列表示部分開始タグ情報.
    protected  String startFirstTag
              最初のページに遷移するリンク文字列表示部分開始タグ情報.
    protected  String startJumpFormTag
              ページジャンプフォーム表示部分開始タグ情報.
    protected  String startLastTag
              最後のページに遷移するリンク文字列表示部分開始タグ情報.
    protected  String startNextTag
              次のページに遷移するリンク文字列表示部分開始タグ情報.
    protected  String startPageLinksTag
              ページリンク表示部分開始タグ情報.
    protected  String startPageTag
              各ページに遷移するリンク文字列表示部分開始タグ情報.
    protected  String startPrevTag
              前のページに遷移するリンク文字列表示部分開始タグ情報.
    protected  String url
              アクションURL
     
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag から継承されたフィールド
    action, CHAR_LINKS, CURRENT_PAGE_INDEX, currentPageIndex, DEFAULT_EVENT, ERROR_MESSAGE_ACTION_REQUIRED, event, forward, FORWARD_NAME, id, indexProperty, links, MAX_DSP_SIZE, maxLinkNo, maxPageCount, name, NEXT_LINKS, PAGE_LINKS_PREFIX, PAGELINKS_JAVASCRIPT_KEY, PREV_LINKS, resetIndex, rowProperty, scope, submit, TOTAL_PAGE_COUNT, totalPageCount, totalProperty, WARN_MESSAGE_ILLEGAL_ROW
     
    クラス javax.servlet.jsp.tagext.TagSupport から継承されたフィールド
    pageContext
     
    インタフェース javax.servlet.jsp.tagext.IterationTag から継承されたフィールド
    EVAL_BODY_AGAIN
     
    インタフェース javax.servlet.jsp.tagext.Tag から継承されたフィールド
    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
     
    コンストラクタの概要
    PageLinksTagEx()
               
     
    メソッドの概要
    protected  void addDirectAnchor(StringBuilder sb, int row, int startIndex, int totalCount)
              ページ番号リンクを引数のStringBuilderに追加する.
    protected  void addDirectLink(StringBuilder sb, int row, int startIndex, int totalCount)
              ページ番号リンクを引数のStringBuilderに追加する.
    protected  void addDirectSubmit(StringBuilder sb, int row, int startIndex, int totalCount)
              ページ番号リンクを引数のStringBuilderに追加する.
    protected  void addFirstLink(StringBuilder sb, int row, int startIndex, int totalCount)
              最初ページリンクを追加する.
    protected  void addFirstSubmit(StringBuilder sb, int row, int startIndex, int totalCount)
              最初のページリンクを追加する.
    protected  void addJumpForm(StringBuilder sb, int row, int startIndex)
              ページジャンプ使用時のフォーム出力する.
    protected  void addJumpFormJS(int row, int pageIndex, int pageCount)
              ページジャンプフォームボタン押下時のJavaScriptを出力する.
    protected  void addLastLink(StringBuilder sb, int row, int startIndex, int totalCount)
              最終のページリンクを追加する.
    protected  void addLastSubmit(StringBuilder sb, int row, int startIndex, int totalCount)
              最終のページリンクを追加する.
    protected  void addNextLink(StringBuilder sb, int row, int startIndex, int totalCount)
              次ページリンクを追加する.
    protected  void addNextSubmit(StringBuilder sb, int row, int startIndex, int totalCount)
              次ページリンクを追加する.
    protected  void addPrevLink(StringBuilder sb, int row, int startIndex, int totalCount)
              前ページリンクを追加する.
    protected  void addPrevSubmit(StringBuilder sb, int row, int startIndex, int totalCount)
              前ページリンクを追加する.
    protected  void addSubmitJS()
              サブミットを行う場合のJavaScriptを出力する.
    protected  void appendActiveTag(StringBuilder sb, int idx)
              現在ページにアクティブタグを追加する.
    protected  void appendLinkAnchor(StringBuilder sb, String rowProperty, int row, String indexProperty, int startIndex, String text)
              ページリンク用アンカーを作成する.
    protected  void appendSubmitAnchor(StringBuilder sb, String rowProperty, int row, String indexProperty, int startIndex, String text)
              ページリンク(サブミットを行う場合)用アンカーを作成する.
    protected  void defineHtml(int row, int startIndex, int totalCount)
              HTMLの定義を出力する.
     int doStartTag()
              タグ評価開始時に呼ばれるメソッド.
    protected  int getEndPageStartIndex(int row, int totalCount)
              最終ページの表示開始インデックスを計算して返却する.
     String getFormName()
              formNameの設定値を返却する.
     boolean getPageJump()
              pageJumpの設定値を返却する.
     String getUrl()
              urlの設定値を返却する.
     void release()
              すべてのアロケートされた資源を解放する.
     void setFormName(String formName)
              formNameに値を設定する.
     void setPageJump(boolean pageJump)
              pageJumpに値を設定する.
     void setUrl(String url)
              urlを設定する.
     
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag から継承されたメソッド
    attributePageCount, getAction, getCurrentPageIndex, getEvent, getForward, getId, getIndexProperty, getInt, getName, getPageContextFlg, getPageCount, getPageIndex, getResetIndex, getRowProperty, getScope, getSubmit, getTotalPageCount, getTotalProperty, lookup, setAction, setCurrentPageIndex, setEvent, setForward, setId, setIndexProperty, setName, setPageContextFlg, setResetIndex, setRowProperty, setScope, setSubmit, setTotalPageCount, setTotalProperty
     
    クラス javax.servlet.jsp.tagext.TagSupport から継承されたメソッド
    doAfterBody, doEndTag, findAncestorWithClass, getParent, getValue, getValues, removeValue, setPageContext, setParent, setValue
     
    クラス java.lang.Object から継承されたメソッド
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    フィールドの詳細

    url

    protected String url
    アクションURL


    formName

    protected String formName
    アクションフォーム名


    pageJump

    protected boolean pageJump
    ページジャンプフォーム使用フラグ.


    START_LINKS

    protected static final String START_LINKS
    ApplicationResources ファイルにおける ページリンク関連項目開始用のプロパティ名の構成要素.

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

    END_LINKS

    protected static final String END_LINKS
    ApplicationResources ファイルにおける ページリンク関連項目終了用のプロパティ名の構成要素.

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

    FIRST_LINKS

    protected static final String FIRST_LINKS
    ApplicationResources ファイルにおける 最初ページへのページジャンプ用リンクのプロパティ名の構成要素.

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

    LAST_LINKS

    protected static final String LAST_LINKS
    ApplicationResources ファイルにおける 最後ページへのページジャンプ用リンクのプロパティ名の構成要素.

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

    JUMPFORM_SUBMIT_DEFAULT

    protected static final String JUMPFORM_SUBMIT_DEFAULT
    ページジャンプ用サブミットボタンvalue属性の初期値.

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

    PAGEJUMP_JAVASCRIPT_KEY

    protected static String PAGEJUMP_JAVASCRIPT_KEY
    ページリンク機能で出力するJavaScriptの出力フラグ.


    START_PAGELINKS_TAG

    protected static final String START_PAGELINKS_TAG
    ApplicationResources ファイルにおける ページリンク表示部分開始タグのプロパティ名.

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

    END_PAGELINKS_TAG

    protected static final String END_PAGELINKS_TAG
    ApplicationResources ファイルにおける ページリンク表示部分終了タグのプロパティ名.

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

    START_PAGE_TAG

    protected static final String START_PAGE_TAG
    ApplicationResources ファイルにおける 各ページに遷移するリンク文字列表示部分開始タグのプロパティ名.

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

    END_PAGE_TAG

    protected static final String END_PAGE_TAG
    ApplicationResources ファイルにおける 各ページに遷移するリンク文字列表示部分終了タグのプロパティ名.

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

    START_PREV_TAG

    protected static final String START_PREV_TAG
    ApplicationResources ファイルにおける 前のページに遷移するリンク文字列表示部分開始タグのプロパティ名.

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

    END_PREV_TAG

    protected static final String END_PREV_TAG
    ApplicationResources ファイルにおける 前のページに遷移するリンク文字列表示部分終了タグのプロパティ名.

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

    START_NEXT_TAG

    protected static final String START_NEXT_TAG
    ApplicationResources ファイルにおける 次のページに遷移するリンク文字列表示部分開始タグのプロパティ名.

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

    END_NEXT_TAG

    protected static final String END_NEXT_TAG
    ApplicationResources ファイルにおける 次のページに遷移するリンク文字列表示部分終了タグのプロパティ名.

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

    START_FIRST_TAG

    protected static final String START_FIRST_TAG
    ApplicationResources ファイルにおける 最初のページに遷移するリンク文字列表示部分開始タグのプロパティ名.

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

    END_FIRST_TAG

    protected static final String END_FIRST_TAG
    ApplicationResources ファイルにおける 最初のページに遷移するリンク文字列表示部分終了タグのプロパティ名.

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

    START_LAST_TAG

    protected static final String START_LAST_TAG
    ApplicationResources ファイルにおける 最後のページに遷移するリンク文字列表示部分開始タグのプロパティ名.

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

    END_LAST_TAG

    protected static final String END_LAST_TAG
    ApplicationResources ファイルにおける 最後のページに遷移するリンク文字列表示部分終了タグのプロパティ名.

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

    START_ACTIVE_TAG

    protected static final String START_ACTIVE_TAG
    ApplicationResources ファイルにおける 現在ページ文字列表示部分開始タグのプロパティ名.

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

    END_ACTIVE_TAG

    protected static final String END_ACTIVE_TAG
    ApplicationResources ファイルにおける 現在ページ文字列表示部分終了タグのプロパティ名.

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

    START_DISABLE_TAG

    protected static final String START_DISABLE_TAG
    ApplicationResources ファイルにおける リンクなし文字列表示部分開始タグのプロパティ名.

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

    END_DISABLE_TAG

    protected static final String END_DISABLE_TAG
    ApplicationResources ファイルにおける リンクなし文字列表示部分終了タグのプロパティ名.

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

    START_JUMPFORM_TAG

    protected static final String START_JUMPFORM_TAG
    ApplicationResources ファイルにおける ページジャンプフォーム表示部分開始タグのプロパティ名.

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

    END_JUMPFORM_TAG

    protected static final String END_JUMPFORM_TAG
    ApplicationResources ファイルにおける ページジャンプフォーム表示部分終了タグのプロパティ名.

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

    JUMPFORM_TEXT_ATTRIBUTES

    protected static final String JUMPFORM_TEXT_ATTRIBUTES
    ApplicationResources ファイルにおける ページジャンプフォーム使用時のテキストフォーム属性設定用のプロパティ名.

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

    JUMPFORM_SUBMIT_ATTRIBUTES

    protected static final String JUMPFORM_SUBMIT_ATTRIBUTES
    ApplicationResources ファイルにおける ページジャンプフォーム使用時のサブミットボタン属性設定用のプロパティ名.

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

    JUMPFORM_SUBMIT_VALUE

    protected static final String JUMPFORM_SUBMIT_VALUE
    ApplicationResources ファイルにおける ページジャンプフォーム使用時のサブミットボタンvalue設定用のプロパティ名.

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

    startPageLinksTag

    protected String startPageLinksTag
    ページリンク表示部分開始タグ情報.


    endPageLinksTag

    protected String endPageLinksTag
    ページリンク表示部分終了タグ情報.


    startPageTag

    protected String startPageTag
    各ページに遷移するリンク文字列表示部分開始タグ情報.


    endPageTag

    protected String endPageTag
    各ページに遷移するリンク文字列表示部分終了タグ情報.


    startPrevTag

    protected String startPrevTag
    前のページに遷移するリンク文字列表示部分開始タグ情報.


    endPrevTag

    protected String endPrevTag
    前のページに遷移するリンク文字列表示部分終了タグ情報.


    startNextTag

    protected String startNextTag
    次のページに遷移するリンク文字列表示部分開始タグ情報.


    endNextTag

    protected String endNextTag
    次のページに遷移するリンク文字列表示部分終了タグ情報.


    startFirstTag

    protected String startFirstTag
    最初のページに遷移するリンク文字列表示部分開始タグ情報.


    endFirstTag

    protected String endFirstTag
    最初のページに遷移するリンク文字列表示部分終了タグ情報.


    startLastTag

    protected String startLastTag
    最後のページに遷移するリンク文字列表示部分開始タグ情報.


    endLastTag

    protected String endLastTag
    最後のページに遷移するリンク文字列表示部分終了タグ情報.


    startActiveTag

    protected String startActiveTag
    現在ページ文字列表示部分開始タグ情報.


    endActiveTag

    protected String endActiveTag
    現在ページ文字列表示部分終了タグ情報.


    startDisableTag

    protected String startDisableTag
    リンクなし文字列表示部分開始タグ情報.


    endDisableTag

    protected String endDisableTag
    リンクなし文字列表示部分終了タグ情報.


    startJumpFormTag

    protected String startJumpFormTag
    ページジャンプフォーム表示部分開始タグ情報.


    endJumpFormTag

    protected String endJumpFormTag
    ページジャンプフォーム表示部分終了タグ情報.


    jumpFormTextAttributes

    protected String jumpFormTextAttributes
    ページジャンプフォーム使用時のテキストフォーム属性設定フィールド情報.


    jumpFormSubmitAttributes

    protected String jumpFormSubmitAttributes
    ページジャンプフォーム使用時のサブミットボタン属性設定フィールド情報.


    jumpFormSubmitValue

    protected String jumpFormSubmitValue
    ページジャンプフォーム使用時のサブミットボタンvalue属性設定文字列情報.

    コンストラクタの詳細

    PageLinksTagEx

    public PageLinksTagEx()
    メソッドの詳細

    getUrl

    public String getUrl()
    urlの設定値を返却する.

    戻り値:
    設定されている値

    setUrl

    public void setUrl(String url)
    urlを設定する.

    パラメータ:
    url - 設定する値

    getFormName

    public String getFormName()
    formNameの設定値を返却する.

    戻り値:
    設定されている値

    setFormName

    public void setFormName(String formName)
    formNameに値を設定する.

    パラメータ:
    formName - 設定する値

    getPageJump

    public boolean getPageJump()
    pageJumpの設定値を返却する.

    戻り値:
    設定されている値

    setPageJump

    public void setPageJump(boolean pageJump)
    pageJumpに値を設定する.

    パラメータ:
    pageJump - 設定する値

    doStartTag

    public int doStartTag()
                   throws javax.servlet.jsp.JspException
    タグ評価開始時に呼ばれるメソッド.

    定義:
    インタフェース javax.servlet.jsp.tagext.Tag 内の doStartTag
    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の doStartTag
    戻り値:
    処理制御指示
    例外:
    javax.servlet.jsp.JspException - JSP例外

    defineHtml

    protected void defineHtml(int row,
                              int startIndex,
                              int totalCount)
                       throws javax.servlet.jsp.JspException
    HTMLの定義を出力する.

    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の defineHtml
    パラメータ:
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 全件数
    例外:
    javax.servlet.jsp.JspException - JSP例外

    addSubmitJS

    protected void addSubmitJS()
                        throws javax.servlet.jsp.JspException
    サブミットを行う場合のJavaScriptを出力する.

    例外:
    javax.servlet.jsp.JspException

    addFirstSubmit

    protected void addFirstSubmit(StringBuilder sb,
                                  int row,
                                  int startIndex,
                                  int totalCount)
    最初のページリンクを追加する.

    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addPrevSubmit

    protected void addPrevSubmit(StringBuilder sb,
                                 int row,
                                 int startIndex,
                                 int totalCount)
    前ページリンクを追加する.

    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の addPrevSubmit
    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addDirectSubmit

    protected void addDirectSubmit(StringBuilder sb,
                                   int row,
                                   int startIndex,
                                   int totalCount)
    ページ番号リンクを引数のStringBuilderに追加する.

    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の addDirectSubmit
    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addNextSubmit

    protected void addNextSubmit(StringBuilder sb,
                                 int row,
                                 int startIndex,
                                 int totalCount)
    次ページリンクを追加する.

    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の addNextSubmit
    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addLastSubmit

    protected void addLastSubmit(StringBuilder sb,
                                 int row,
                                 int startIndex,
                                 int totalCount)
    最終のページリンクを追加する.

    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addFirstLink

    protected void addFirstLink(StringBuilder sb,
                                int row,
                                int startIndex,
                                int totalCount)
    最初ページリンクを追加する.

    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addPrevLink

    protected void addPrevLink(StringBuilder sb,
                               int row,
                               int startIndex,
                               int totalCount)
    前ページリンクを追加する.

    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の addPrevLink
    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addDirectLink

    protected void addDirectLink(StringBuilder sb,
                                 int row,
                                 int startIndex,
                                 int totalCount)
    ページ番号リンクを引数のStringBuilderに追加する.

    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の addDirectLink
    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addNextLink

    protected void addNextLink(StringBuilder sb,
                               int row,
                               int startIndex,
                               int totalCount)
    次ページリンクを追加する.

    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の addNextLink
    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addLastLink

    protected void addLastLink(StringBuilder sb,
                               int row,
                               int startIndex,
                               int totalCount)
    最終のページリンクを追加する.

    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    addJumpFormJS

    protected void addJumpFormJS(int row,
                                 int pageIndex,
                                 int pageCount)
                          throws javax.servlet.jsp.JspException
    ページジャンプフォームボタン押下時のJavaScriptを出力する.

    パラメータ:
    row - 表示行数
    pageIndex - 現在ページのインデックス
    pageCount - 総ページ数
    例外:
    javax.servlet.jsp.JspException - JSP例外

    addJumpForm

    protected void addJumpForm(StringBuilder sb,
                               int row,
                               int startIndex)
    ページジャンプ使用時のフォーム出力する.

    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    例外:
    javax.servlet.jsp.JspException - JSP例外

    appendLinkAnchor

    protected void appendLinkAnchor(StringBuilder sb,
                                    String rowProperty,
                                    int row,
                                    String indexProperty,
                                    int startIndex,
                                    String text)
    ページリンク用アンカーを作成する.

    パラメータ:
    sb - 追加対象のStringBuilder
    rowProperty - 表示行数のフィールド名
    row - 表示行数
    indexProperty - 表示開始インデックスのフィールド名
    startIndex - 表示開始インデックス
    text - リンク文字

    appendSubmitAnchor

    protected void appendSubmitAnchor(StringBuilder sb,
                                      String rowProperty,
                                      int row,
                                      String indexProperty,
                                      int startIndex,
                                      String text)
    ページリンク(サブミットを行う場合)用アンカーを作成する.

    パラメータ:
    sb - 追加対象のStringBuilder
    rowProperty - 表示行数のフィールド名
    row - 表示行数
    indexProperty - 表示開始インデックスのフィールド名
    startIndex - 表示開始インデックス
    text - リンク文字

    addDirectAnchor

    protected void addDirectAnchor(StringBuilder sb,
                                   int row,
                                   int startIndex,
                                   int totalCount)
    ページ番号リンクを引数のStringBuilderに追加する.

    パラメータ:
    sb - 追加対象のStringBuilder
    row - 表示行数
    startIndex - 表示開始インデックス
    totalCount - 一覧情報の全件数

    appendActiveTag

    protected void appendActiveTag(StringBuilder sb,
                                   int idx)
    現在ページにアクティブタグを追加する.

    パラメータ:
    sb - 追加対象のStringBuilder
    idx - ページ番号

    getEndPageStartIndex

    protected int getEndPageStartIndex(int row,
                                       int totalCount)
    最終ページの表示開始インデックスを計算して返却する.

    パラメータ:
    row - 表示行数
    totalCount - 一覧情報の全件数
    戻り値:
    算出したインデックス

    release

    public void release()
    すべてのアロケートされた資源を解放する.

    定義:
    インタフェース javax.servlet.jsp.tagext.Tag 内の release
    オーバーライド:
    クラス jp.terasoluna.fw.web.struts.taglib.PageLinksTag 内の release


    Copyright © 2012. All Rights Reserved.