| java.lang.Object java.beans.FeatureDescriptor com.sun.rave.designtime.CategoryDescriptor
CategoryDescriptor | public class CategoryDescriptor extends FeatureDescriptor (Code) | | A CategoryDescriptor describes a category for a property. A PropertyDescriptor may include a
CategoryDescriptor using the named attribute: Constants.PropertyDescriptor.CATEGORY, or literally
"category". Properties will be displayed on the property sheet grouped with their associated
category. Use java.beans.PropertyDescriptor.setValue(Constants.PropertyDescriptor.CATEGORY,
someCatDesc) to associate a category with a particular property.
You can also specify the desired display order of categories on the property sheet by
providing an array of CategoryDescriptors in the BeanDescriptor. Use
java.beans.BeanDescriptor.setValue(Constants.BeanDescriptor.PROPERTY_CATEGORIES,
new CategoryDescriptor[] { ... }); to specify the order.
author: Joe Nuxoll version: 1.0 See Also: java.beans.PropertyDescriptor See Also: java.beans.BeanDescriptor |
Field Summary | |
protected boolean | expandByDefault Storage field for the 'expandByDefault' property. |
Constructor Summary | |
public | CategoryDescriptor() Constructs a new CategoryDescriptor with no settings. | public | CategoryDescriptor(String name) Constructs a new CategoryDescriptor with the specified name. | public | CategoryDescriptor(String name, String description) Constructs a new CategoryDescriptor with the specified name and description. | public | CategoryDescriptor(String name, String description, boolean expandByDefault) Constructs a new CategoryDescriptor with the specified name, description and default expansion
state.
Parameters: name - The String name for the new CategoryDescriptor Parameters: description - The String description for the new CategoryDescriptor Parameters: expandByDefault - The initial state for the 'expandByDefault' property of the newCategoryDescriptor. |
expandByDefault | protected boolean expandByDefault(Code) | | Storage field for the 'expandByDefault' property.
|
CategoryDescriptor | public CategoryDescriptor()(Code) | | Constructs a new CategoryDescriptor with no settings.
|
CategoryDescriptor | public CategoryDescriptor(String name)(Code) | | Constructs a new CategoryDescriptor with the specified name.
Parameters: name - The String name for the new CategoryDescriptor |
CategoryDescriptor | public CategoryDescriptor(String name, String description)(Code) | | Constructs a new CategoryDescriptor with the specified name and description.
Parameters: name - The String name for the new CategoryDescriptor Parameters: description - The String description for the new CategoryDescriptor |
CategoryDescriptor | public CategoryDescriptor(String name, String description, boolean expandByDefault)(Code) | | Constructs a new CategoryDescriptor with the specified name, description and default expansion
state.
Parameters: name - The String name for the new CategoryDescriptor Parameters: description - The String description for the new CategoryDescriptor Parameters: expandByDefault - The initial state for the 'expandByDefault' property of the newCategoryDescriptor. If expandByDefault is true, the category will appear expandedin the property sheet, and collapsed if false. |
isExpandByDefault | public boolean isExpandByDefault()(Code) | | Returns the state of the expandByDefault property. If expandByDefault is true, this category
will appear expanded in the property sheet, or collapsed if false.
true if the category should be expanded, or false forcollapsed. |
setExpandByDefault | public void setExpandByDefault(boolean expandByDefault)(Code) | | Sets the expandByDefault property. If expandByDefault is true, this category will appear
expanded in the property sheet, or collapsed if false.
Parameters: expandByDefault - true to expand the category, false tocollapse it by default. |
|
|