Class AbstractUIComponentBeanInfo

  • All Implemented Interfaces:
    java.beans.BeanInfo

    public abstract class AbstractUIComponentBeanInfo
    extends java.beans.SimpleBeanInfo
    Utility class for BeanInfo for renderers, widgets or other UI components.
    • 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.
      • Fields inherited from interface java.beans.BeanInfo

        ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32
    • 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.
      • Methods inherited from class java.beans.SimpleBeanInfo

        getAdditionalBeanInfo, getDefaultEventIndex, getDefaultPropertyIndex, getEventSetDescriptors, getIcon, getMethodDescriptors, loadImage
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 is Boolean.TRUE it will be included in customization UI.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractUIComponentBeanInfo

        protected AbstractUIComponentBeanInfo​(java.lang.Class<?> beanClass,
                                              java.lang.String beanDisplayName)
    • 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 interface java.beans.BeanInfo
        Overrides:
        getPropertyDescriptors in class java.beans.SimpleBeanInfo
      • getBeanDescriptor

        public java.beans.BeanDescriptor getBeanDescriptor()
        Specified by:
        getBeanDescriptor in interface java.beans.BeanInfo
        Overrides:
        getBeanDescriptor in class java.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 descriptors
        propertyNames - array of property names to remove
        Since:
        18.23.0