nishtahir / gwt-pectin

Automatically exported from code.google.com/p/gwt-pectin
0 stars 0 forks source link

CSS support needs to be improved to allow more control over styles applied by the library. #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently both the validation & metadata plugin apply styles to widgets
that are defined in a public css file and automatically imported.

This needs to be improved so that users can at least specify what style
names are used.

Possible Options:
Let users specify global styles names for the plugin.  E.g.
ValidationPlugin.defaults().registerStyleName(Severity.ERROR,
"someArbitraryClassNameTheUserWants");
Let binders that apply style take a CssResource in thier constructor. 
ValidationBinder validationBinder = new ValidationBinder(ValidationCss css);

Other ideas welcome.

Original issue reported on code.google.com by andrew.pietsch on 5 May 2010 at 6:34