1.

What Is The Difference Between Primary Style And Secondary Styles Of A Gwt Widget?

Answer»

By default, the primary STYLE name of a WIDGET will be the default style name for its widget class. For example, gwt-Button for Button WIDGETS. When we add and remove style names using AddStyleName() method, those styles are CALLED secondary styles.
The final appearance of a widget is determined by the sum of all the secondary styles added to it, plus its primary style. You set the primary style of a widget with the setStylePrimaryName(String) method.

 

By default, the primary style name of a widget will be the default style name for its widget class. For example, gwt-Button for Button widgets. When we add and remove style names using AddStyleName() method, those styles are called secondary styles.
The final appearance of a widget is determined by the sum of all the secondary styles added to it, plus its primary style. You set the primary style of a widget with the setStylePrimaryName(String) method.

 



Discussion

No Comment Found