JFormDesigner 5.0.4 Annotations

com.jformdesigner.annotations
Annotation Type BeanInfo.Category


@Target(value=TYPE)
@Retention(value=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().

Since:
5.0

Required Element Summary
 String name
          The name of the category.
 String[] properties
          Array of property names that should be assigned to this category.
 

Element Detail

name

public abstract String name
The name of the category. Used in the JFormDesigner Properties view.


properties

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


JFormDesigner 5.0.4 Annotations

Copyright (C) 2004-2012 FormDev Software GmbH. All rights reserved.