handles dynamic setPrimaryStyle better #9724
* Default constructor
*/
public VHorizontalLayout() {
+ super(false);
setStyleName(CLASSNAME);
+ }
+
+ @Override
+ public void setStyleName(String style) {
+ super.setStyleName(style);
addStyleName(StyleConstants.UI_LAYOUT);
addStyleName("v-horizontal");
}
private LayoutManager layoutManager;
+ public VOrderedLayout(boolean vertical) {
+ this.vertical = vertical;
+ }
+
/**
* Add or move a slot to another index
*
* Default constructor
*/
public VVerticalLayout() {
+ super(true);
setStyleName(CLASSNAME);
}