java.lang.Object
jp.ecuacion.splib.web.util.SplibThymeleafOptionUtil
thymeleaf側から呼ばれる想定のクラス。 html componentsで使用されるoptionsを解析する。
optionsはcsv形式で、複数のoptional属性を受け入れる。'readonly,required'など。
また、値付きのパラメータも受け入れ可能とするため、a=bの形('readonly,a=b,required'など)の形も可とする。
readonlyなどのパラメータがないものはMapのkeyにのみ設定(valueはnull)とし、bのような値はvalueに入れることとする。
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDeleteConfirmMessage(String rootRecordName, String itemDisplayedOnDelete) 削除ボタン押下時のメッセージ文字列を生成。getLinkUrl(String options) booleankeyの存在チェック。booleanhasLinkUrl(String options) Deprecated.booleanhasThSortable(String options) Deprecated.booleanDeprecated.booleanisDisabled(String options) Deprecated.booleanisForSwitch(String options) Deprecated.booleanisReadOnly(String options) Deprecated.booleanisWidthFull(String options) booleanisWidthHalf(String options) booleanneedsEmptyOption(String options) Deprecated.booleanneedsOnclickJs(String options) Deprecated.
-
Constructor Details
-
SplibThymeleafOptionUtil
public SplibThymeleafOptionUtil(jakarta.servlet.http.HttpServletRequest request)
-
-
Method Details
-
getDeleteConfirmMessage
削除ボタン押下時のメッセージ文字列を生成。 itemDisplayedOnDeleteには、通常は一つのitemを指定するが、"itemA,itemB"のように複数の項目を指定することも可能。 (natural keyが複数の項目からなる場合に使用) その場合は、(itemA, itemB) : (1, 2) のように括弧で括った形で表現 -
hasKey
keyの存在チェック。keyがあれば処理するパターンのoptionはこれのみの使用で処理分岐可能。 -
isReadOnly
Deprecated. -
isDisabled
Deprecated. -
isDeleted
Deprecated. -
isForSwitch
Deprecated. -
needsEmptyOption
Deprecated. -
needsOnclickJs
Deprecated. -
hasLinkUrl
Deprecated. -
getLinkUrl
-
rows
-
cols
-
hasThSortable
Deprecated. -
isWidthFull
-
isWidthHalf
-