Annotation Type BeanInfo.Category


  • @Target(TYPE)
    @Retention(RUNTIME)
    public static @interface BeanInfo.Category
    This annotation supports grouping of properties into categories, which are displayed in the JFormDesigner Properties view. For example:
     @BeanInfo(
         categories={
             @Category(name="Sizes", properties={"preferredSize", "minimumSize", "maximumSize"}),
             @Category(name="Colors", properties={"background", "foreground"}),
         }
     )
     public class MyButton extends JButton { ... }
     
    Its also possible to specify a category for a property with PropertyDesc.category().
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      String name
      The name of the category.
      String[] properties
      Array of property names that should be assigned to this category.
    • Element Detail

      • name

        String name
        The name of the category. Used in the JFormDesigner Properties view.
      • properties

        String[] properties
        Array of property names that should be assigned to this category.