Package com.im.commons.ui.beans
Class AbstractUIComponentBeanInfo
- java.lang.Object
-
- java.beans.SimpleBeanInfo
-
- com.im.commons.ui.beans.AbstractUIComponentBeanInfo
-
- All Implemented Interfaces:
java.beans.BeanInfo
public abstract class AbstractUIComponentBeanInfo extends java.beans.SimpleBeanInfo
Utility class forBeanInfo
for renderers, widgets or other UI components.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractUIComponentBeanInfo.StandardProps
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTRIBUTE_IS_COMMON_WIDGET_PROPERTY
Name of property attribute marking properties editable in customizer for multi-widget selection.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractUIComponentBeanInfo(java.lang.Class<?> beanClass, java.lang.String beanDisplayName)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
addPropertyDescriptors(java.util.List<java.beans.PropertyDescriptor> list)
static java.beans.PropertyDescriptor
createBooleanProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden)
static java.beans.PropertyDescriptor
createLocalizedProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden)
static java.beans.PropertyDescriptor
createLocalizedProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden, boolean noGetterPrefix)
static java.beans.PropertyDescriptor
createLocalizedProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden, boolean noGetterPrefix, boolean isBoolean)
static java.beans.PropertyDescriptor
createLocalizedReadOnlyProperty(java.lang.String propName, java.lang.Class<?> beanClass)
static java.beans.PropertyDescriptor
createProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden)
java.beans.PropertyDescriptor
createStandardProperty(AbstractUIComponentBeanInfo.StandardProps standardProps)
java.beans.BeanDescriptor
getBeanDescriptor()
java.beans.PropertyDescriptor[]
getPropertyDescriptors()
protected static java.beans.PropertyDescriptor
makeGroupEditable(java.beans.PropertyDescriptor pd)
protected static void
removePropertyDescriptors(java.util.List<java.beans.PropertyDescriptor> descriptors, java.lang.String... propertyNames)
Removes descriptors with given name(s) from the list of current descriptors.
-
-
-
Field Detail
-
ATTRIBUTE_IS_COMMON_WIDGET_PROPERTY
public static final java.lang.String ATTRIBUTE_IS_COMMON_WIDGET_PROPERTY
Name of property attribute marking properties editable in customizer for multi-widget selection. If the property value isBoolean.TRUE
it will be included in customization UI.- See Also:
- Constant Field Values
-
-
Method Detail
-
makeGroupEditable
protected static java.beans.PropertyDescriptor makeGroupEditable(java.beans.PropertyDescriptor pd)
-
createProperty
public static java.beans.PropertyDescriptor createProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
createBooleanProperty
public static java.beans.PropertyDescriptor createBooleanProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
createLocalizedProperty
public static java.beans.PropertyDescriptor createLocalizedProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden, boolean noGetterPrefix) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
createLocalizedProperty
public static java.beans.PropertyDescriptor createLocalizedProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden, boolean noGetterPrefix, boolean isBoolean) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
createLocalizedReadOnlyProperty
public static java.beans.PropertyDescriptor createLocalizedReadOnlyProperty(java.lang.String propName, java.lang.Class<?> beanClass) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
createLocalizedProperty
public static java.beans.PropertyDescriptor createLocalizedProperty(java.lang.String propName, java.lang.Class<?> beanClass, boolean hidden) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
createStandardProperty
public java.beans.PropertyDescriptor createStandardProperty(AbstractUIComponentBeanInfo.StandardProps standardProps) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
addPropertyDescriptors
protected abstract void addPropertyDescriptors(java.util.List<java.beans.PropertyDescriptor> list) throws java.beans.IntrospectionException
- Throws:
java.beans.IntrospectionException
-
getPropertyDescriptors
public java.beans.PropertyDescriptor[] getPropertyDescriptors()
- Specified by:
getPropertyDescriptors
in interfacejava.beans.BeanInfo
- Overrides:
getPropertyDescriptors
in classjava.beans.SimpleBeanInfo
-
getBeanDescriptor
public java.beans.BeanDescriptor getBeanDescriptor()
- Specified by:
getBeanDescriptor
in interfacejava.beans.BeanInfo
- Overrides:
getBeanDescriptor
in classjava.beans.SimpleBeanInfo
-
removePropertyDescriptors
protected static final void removePropertyDescriptors(java.util.List<java.beans.PropertyDescriptor> descriptors, java.lang.String... propertyNames)
Removes descriptors with given name(s) from the list of current descriptors.- Parameters:
descriptors
- list of current descriptorspropertyNames
- array of property names to remove- Since:
- 18.23.0
-
-