Style extends AbstractAttribute implements GlobalAttributable, StateChangeInformer<CssProperty> { public static void addSupportForNewCustomCssClass(final String cssName, final Class<?> cssClass) { if (cssName != null && cssClass != null) { CSSPROPERTY_CLASSES.put(cssName, cssClass); } } Style();  Style(final String styles);  Style(final Map<String, String> styles);  Style(final CssProperty... cssProperties);  Style(final boolean important, final CssProperty... cssProperties); static void addSupportForNewCustomCssClass(final String cssName,
            final Class<?> cssClass); static void removeSupportOfCssClass(final Class<?> cssClass); static void removeSupportOfCssClasses(final Class<?>... cssClasses); void addCssProperties(final String cssProperties); boolean addCssProperties(final Map<String, String> cssProperties); boolean addCssProperty(final String cssName, final String cssValue); void addCssProperties(final boolean important,
            final CssProperty... cssProperties); List<CssProperty> addCssProperties(
            final CssProperty... cssProperties); @Deprecated List<CssProperty> addCssProperties(
            final Collection<? extends CssProperty> cssProperties); CssProperty addCssProperty(final CssProperty cssProperty); boolean removeCssProperty(final String cssName); boolean removeCssProperty(final String cssName,
            final String cssValue); boolean removeCssProperty(final CssProperty cssProperty); List<Boolean> removeCssProperties(
            final CssProperty... cssProperties); void removeAllCssProperties(); boolean contains(final CssProperty cssProperty); @Deprecated List<Boolean> removeCssProperties(
            final Collection<CssProperty> cssProperties); boolean markAsImportant(final String styleName); boolean markAsUnimportant(final String styleName); boolean isImportant(final CssProperty cssProperty); boolean isImportant(final String styleName); CssProperty getCssProperty(final String cssName); Collection<CssProperty> getCssProperties(); int getCssPropertiesSize(); boolean isCssPropertiesEmpty(); @Override void stateChanged(final CssProperty stateChangedObject); static Map<String, Class<?>> getSupportedCsspropertyClasses(); @Override String getAttributeValue();  }
@Test public void testAddSupportForNewCustomCssClass() { Style style = new Style(); { boolean addedStyleCustomAlignSelf = style.addCssProperty(CustomCssNameConstants.CUSTOM_ALIGN_SELF, CustomAlignSelf.BASELINE.toString()); assertTrue(addedStyleCustomAlignSelf); CssProperty cssPropertyCustomAlignSelf = style.getCssProperty(CustomCssNameConstants.CUSTOM_ALIGN_SELF); assertNotNull(cssPropertyCustomAlignSelf); assertFalse(cssPropertyCustomAlignSelf instanceof CustomAlignSelf); Style.addSupportForNewCustomCssClass(CustomCssNameConstants.CUSTOM_ALIGN_SELF, CustomAlignSelf.class); cssPropertyCustomAlignSelf = style.getCssProperty(CustomCssNameConstants.CUSTOM_ALIGN_SELF); assertNotNull(cssPropertyCustomAlignSelf); assertTrue(cssPropertyCustomAlignSelf instanceof CustomAlignSelf); } System.out.println("testAddSupportForNewCustomCssClass succes"); }