public TobagoComponentHandler(ComponentConfig componentConfig) {
super(componentConfig);
}
protected MetaRuleset createMetaRuleset(Class aClass) {
MetaRuleset metaRuleset = super.createMetaRuleset(aClass);
if (SortActionSource.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(SortActionSourceRule.INSTANCE);
}
if (DeprecatedDimension.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(DeprecatedDimensionRule.INSTANCE);
}
if (AbstractUIPopup.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(PositionRule.INSTANCE);
}
if (AbstractUIGridLayout.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(GridLayoutRule.INSTANCE);
}
if (AbstractUIFlowLayout.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(FlowLayoutRule.INSTANCE);
}
if (TabChangeSource.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(TabChangeSourceRule.INSTANCE);
}
if (SheetStateChangeSource.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(SheetStateChangeSourceRule.INSTANCE);
}
if (SupportsMarkup.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(SupportsMarkupRule.INSTANCE);
}
if (InputSuggest.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(SuggestMethodRule.INSTANCE);
}
if (SupportsRenderedPartially.class.isAssignableFrom(aClass)) {
metaRuleset.addRule(SupportsRenderedPartiallyRule.INSTANCE);
}
return metaRuleset;
}