@Target(value=TYPE) @Retention(value=RUNTIME) public static @interface BeanInfo.Category
@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().| Modifier and Type | Required Element and Description |
|---|---|
String |
name
The name of the category.
|
String[] |
properties
Array of property names that should be assigned to this category.
|
Copyright (C) 2004-2017 FormDev Software GmbH. All rights reserved.