クラス EntityViewUtil
java.lang.Object
org.iplass.mtp.view.generic.EntityViewUtil
画面定義用ユーティリティクラス
-
コンストラクタの概要
コンストラクタ -
メソッドの概要
修飾子とタイプメソッド説明static ValidateError[]collectNestPropertyErrors(JoinPropertyEditor editor, String prefix, ValidateError[] errors) static List<EditorValue>createEditorValueList(SelectProperty sp, String lang) EditorValueのリストを生成します。static List<EditorValue>createEditorValueList(SelectValueDefinition svd, String lang) EditorValueのリストを生成します。static StringgetCustomStyle(String definitionName, String scriptKey, String editorScriptKey, Entity entity, Object propValue) Editorに定義されたカスタムスタイル(表示、入力)を取得static StringResourceファイルからデフォルト言語に対応した対象KEYの値を返します。static StringgetJspPath(PropertyEditor editor) プロパティエディタのJSPファイルパスを取得します。static StringgetJspPath(PropertyEditor editor, String key) プロパティエディタのJSPファイルパスを取得します。static StringgetJspPath(Element element) エレメントのJSPファイルパスを取得します。static StringgetJspPath(Element element, String key) エレメントのJSPファイルパスを取得します。static PropertyDefinitiongetPropertyDefinition(String propName, EntityDefinition entity) static PropertyDefinitiongetPropertyDefinition(VirtualPropertyItem property) 画面表示用に仮想プロパティ用のプロパティ定義を作成static List<ReferenceSection>getReferenceSectionList(List<ReferenceSection> sections, List<?> elem) static StringgetSelectPropertyLabel(List<LocalizedSelectValueDefinition> localizedList, String value, String defaultLabel) static StringgetSelectPropertyLabel(List<LocalizedSelectValueDefinition> localizedList, EditorValue editorValue, List<SelectValue> valueList) static StringgetStringPropertySelectTypeLabel(EditorValue editorValue) static booleanisDisplayElement(String definitionName, String elementRuntimeId, OutputType outputType, Entity entity) エレメントの表示可否を判定します。perse(JoinPropertyEditor editor) static longreferenceSectionCount(DetailFormView view, String propName) 指定のプロパティ名を持つ参照セクションの件数を取得します。sortByOrderProperty(List<Entity> entities, String propertyName) sortByOrderProperty(List<Entity> entities, String propertyName, boolean research)
-
コンストラクタの詳細
-
EntityViewUtil
public EntityViewUtil()
-
-
メソッドの詳細
-
isDisplayElement
public static boolean isDisplayElement(String definitionName, String elementRuntimeId, OutputType outputType, Entity entity) エレメントの表示可否を判定します。- パラメータ:
definitionName- Entity定義名elementRuntimeId- エレメントのランタイムIDoutputType- 表示タイプentity- 表示対象のエンティティ- 戻り値:
- 表示可否
-
getJspPath
エレメントのJSPファイルパスを取得します。- パラメータ:
element- エレメント- 戻り値:
- JSPファイルパス
-
getJspPath
エレメントのJSPファイルパスを取得します。- パラメータ:
element- エレメント- 戻り値:
- JSPファイルパス
-
getJspPath
プロパティエディタのJSPファイルパスを取得します。- パラメータ:
editor- プロパティエディタ- 戻り値:
- JSPファイルパス
-
getJspPath
プロパティエディタのJSPファイルパスを取得します。- パラメータ:
editor- プロパティエディタ- 戻り値:
- JSPファイルパス
-
perse
- 例外:
IOException
-
collectNestPropertyErrors
public static ValidateError[] collectNestPropertyErrors(JoinPropertyEditor editor, String prefix, ValidateError[] errors) -
getSelectPropertyLabel
public static String getSelectPropertyLabel(List<LocalizedSelectValueDefinition> localizedList, EditorValue editorValue, List<SelectValue> valueList) -
getSelectPropertyLabel
public static String getSelectPropertyLabel(List<LocalizedSelectValueDefinition> localizedList, String value, String defaultLabel) -
createEditorValueList
EditorValueのリストを生成します。- パラメータ:
sp- 対象SelectPropertylang- 言語(多言語利用時に利用されます。nullの場合は、利用可能言語すべてが取得されます)- 戻り値:
- EditorValueのリスト
-
createEditorValueList
EditorValueのリストを生成します。- パラメータ:
svd- 対象SelectValueDefinitionlang- 言語(多言語利用時に利用されます。nullの場合は、利用可能言語すべてが取得されます)- 戻り値:
- EditorValueのリスト
-
getStringPropertySelectTypeLabel
-
getDefautlResourceString
Resourceファイルからデフォルト言語に対応した対象KEYの値を返します。- パラメータ:
key- Resource Key- 戻り値:
- デフォルト言語に対応するリソース値
-
getPropertyDefinition
-
getPropertyDefinition
画面表示用に仮想プロパティ用のプロパティ定義を作成- パラメータ:
property-- 戻り値:
-
getCustomStyle
public static String getCustomStyle(String definitionName, String scriptKey, String editorScriptKey, Entity entity, Object propValue) Editorに定義されたカスタムスタイル(表示、入力)を取得- パラメータ:
definitionName- Entity定義名scriptKey- Form/Sectionに設定されたScriptKey(EntityViewにてこのKEYでTemplateをキャッシュ)editorScriptKey- Editorに設定されたScriptKey(Sectio単位のキャッシュにこのKEYでEditorのTemplateをキャッシュ)entity- 対象Entityデータ(検索条件、新規登録などの場合はnullあり)propValue- 対象Propertyデータ- 戻り値:
-
referenceSectionCount
指定のプロパティ名を持つ参照セクションの件数を取得します。- パラメータ:
view- 詳細画面定義propName- プロパティ名- 戻り値:
- 参照セクションの件数
-
getReferenceSectionList
public static List<ReferenceSection> getReferenceSectionList(List<ReferenceSection> sections, List<?> elem) -
sortByOrderProperty
-
sortByOrderProperty
-