\r
$("#tabs").as(Widgets).tabPanel();\r
\r
- // IDE suggestions are not available with this syntax. \r
+ // IDE suggestions are not available with this syntax. -> I agree\r
// Also it implies that the css method in GQuery needs more overloads\r
- $("#aaa").css(CSS.POSITION, Position.ABSOLUTE);\r
- $("#aaa").css(CSS.TOP, Length.cm(15));\r
- $("#aaa").css(CSS.BACKGROUND, RGBColor.RED, ImageValue.url(""), BackgroundRepeat.NO_REPEAT, BackgroundAttachment.FIXED, BackgroundPosition.CENTER);\r
+ // $("#aaa").css(CSS.POSITION, Position.ABSOLUTE);\r
+ // $("#aaa").css(CSS.TOP, Length.cm(15));\r
+ // $("#aaa").css(CSS.BACKGROUND, RGBColor.RED, ImageValue.url(""), BackgroundRepeat.NO_REPEAT, BackgroundAttachment.FIXED, BackgroundPosition.CENTER);\r
\r
- // With this syntax IDE gives more help\r
- // We could overload the with method in each CssProperty without adding more methods to GQuery\r
- $("#aaa").css(CSS.TOP.with(Length.cm(15)));\r
- $("#aaa").css(CSS.BACKGROUND.with(RGBColor.SILVER, ImageValue.url(""), BackgroundRepeat.NO_REPEAT, BackgroundAttachment.FIXED, BackgroundPosition.CENTER)); \r
+ $("#aaa").setCss(CSS.TOP.with(Length.cm(15)));\r
+ $("#aaa").setCss(CSS.BACKGROUND.with(RGBColor.SILVER, ImageValue.url(""), BackgroundRepeat.NO_REPEAT, BackgroundAttachment.FIXED, BackgroundPosition.CENTER)); \r
+ $("#aaa").setCss(CSS.BACKGROUND_ATTACHMENT.with(BackgroundAttachment.FIXED));\r
}\r
\r
private ButtonOptions createButtonOptions(){\r