RotatedLabelCategoryProviderFactory class
In this class, the getCategoryProvider( ) method provides the category information for property editor pages such as Bookmark, Borders, Margin, Section, and Table of Contents for the rotated label report item. Listing 23‑7 shows the code for the getCategoryProvider( ) method, which specifies the category properties and associated classes.
Listing 23‑7 The getCategoryProvider( ) method
public ICategoryProvider getCategoryProvider( Object input )
{
CategoryProvider provider = new CategoryProvider(
new String[ ]{
CategoryProviderFactory.CATEGORY_KEY_GENERAL,
CategoryProviderFactory.CATEGORY_KEY_BORDERS,
CategoryProviderFactory.CATEGORY_KEY_MARGIN,
CategoryProviderFactory.CATEGORY_KEY_ALTTEXT,
CategoryProviderFactory.CATEGORY_KEY_SECTION,
CategoryProviderFactory.CATEGORY_KEY_VISIBILITY,
CategoryProviderFactory.CATEGORY_KEY_TOC,
CategoryProviderFactory.CATEGORY_KEY_BOOKMARK,
CategoryProviderFactory.CATEGORY_KEY_USERPROPERTIES,
CategoryProviderFactory.CATEGORY_KEY_NAMEDEXPRESSIONS,
CategoryProviderFactory.CATEGORY_KEY_ADVANCEPROPERTY,
}, new String[ ]{
"General",
"Borders",
"Margin",
"AltText",
"Section",
"Visibility",
"TOC",
"Bookmark",
"UserProperties",
"NamedExpressions",
"AdvancedProperty",
}, new Class[ ]{
RotatedLabelGeneralPage.class,
BordersPage.class,
ItemMarginPage.class,
AlterPage.class,
SectionPage.class,
VisibilityPage.class,
TOCExpressionPage.class,
BookMarkExpressionPage.class,
UserPropertiesPage.class,
NamedExpressionsPage.class,
AdvancePropertyPage.class,
}
);
return provider;
}