Class PreferenceHierarchyElement<T>
- java.lang.Object
-
- org.uberfire.preferences.shared.bean.PreferenceHierarchyElement<T>
-
- Type Parameters:
T- Preference bean type.
@Portable public class PreferenceHierarchyElement<T> extends Object
Holds all preference information necessary to build a hierarchic interface for preferences.
-
-
Constructor Summary
Constructors Constructor Description PreferenceHierarchyElement()PreferenceHierarchyElement(String id, BasePreferencePortable<T> portablePreference, boolean shared, boolean root, String bundleKey)PreferenceHierarchyElement(String id, BasePreferencePortable<T> portablePreference, List<PreferenceHierarchyElement<?>> children, boolean shared, boolean root, String bundleKey, Map<String,String> bundleKeyByProperty, Map<String,String> helpBundleKeyByProperty, Map<String,PropertyFormOptions[]> formOptionsByProperty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyBundleKey(String propertyFieldName, String bundleKey)voidaddPropertyFormOptions(String propertyFieldName, PropertyFormOptions[] formOptions)voidaddPropertyHelpBundleKey(String propertyFieldName, String helpBundleKey)booleanequals(Object o)StringgetBundleKey()Map<String,String>getBundleKeyByProperty()List<PreferenceHierarchyElement<?>>getChildren()Map<String,PropertyFormOptions[]>getFormOptionsByProperty()Map<String,String>getHelpBundleKeyByProperty()StringgetId()BasePreferencePortable<T>getPortablePreference()booleanhasChildren()inthashCode()booleanisRoot()booleanisSelectable()booleanisShared()voidsetBundleKey(String bundleKey)voidsetChildren(List<PreferenceHierarchyElement<?>> children)voidsetId(String id)voidsetPortablePreference(BasePreferencePortable<T> portablePreference)voidsetRoot(boolean root)voidsetShared(boolean shared)
-
-
-
Constructor Detail
-
PreferenceHierarchyElement
public PreferenceHierarchyElement()
-
PreferenceHierarchyElement
public PreferenceHierarchyElement(String id, BasePreferencePortable<T> portablePreference, boolean shared, boolean root, String bundleKey)
-
PreferenceHierarchyElement
public PreferenceHierarchyElement(String id, BasePreferencePortable<T> portablePreference, List<PreferenceHierarchyElement<?>> children, boolean shared, boolean root, String bundleKey, Map<String,String> bundleKeyByProperty, Map<String,String> helpBundleKeyByProperty, Map<String,PropertyFormOptions[]> formOptionsByProperty)
-
-
Method Detail
-
isSelectable
public boolean isSelectable()
-
hasChildren
public boolean hasChildren()
-
getId
public String getId()
-
setId
public void setId(String id)
-
getPortablePreference
public BasePreferencePortable<T> getPortablePreference()
-
setPortablePreference
public void setPortablePreference(BasePreferencePortable<T> portablePreference)
-
getChildren
public List<PreferenceHierarchyElement<?>> getChildren()
-
setChildren
public void setChildren(List<PreferenceHierarchyElement<?>> children)
-
isShared
public boolean isShared()
-
setShared
public void setShared(boolean shared)
-
isRoot
public boolean isRoot()
-
setRoot
public void setRoot(boolean root)
-
getBundleKey
public String getBundleKey()
-
setBundleKey
public void setBundleKey(String bundleKey)
-
addPropertyHelpBundleKey
public void addPropertyHelpBundleKey(String propertyFieldName, String helpBundleKey)
-
addPropertyFormOptions
public void addPropertyFormOptions(String propertyFieldName, PropertyFormOptions[] formOptions)
-
getFormOptionsByProperty
public Map<String,PropertyFormOptions[]> getFormOptionsByProperty()
-
-