Add system stylename for buttons panel #PL-5865

This commit is contained in:
Gleb Gorelov 2015-08-28 09:12:58 +00:00
parent e90785c2bf
commit f2616683ec

View File

@ -12,10 +12,19 @@ import com.haulmont.cuba.gui.components.ButtonsPanel;
*/
public class WebButtonsPanel extends WebHBoxLayout implements ButtonsPanel {
public static final String BUTTONS_PANNEL_STYLENAME = "cuba-buttons-panel";
public WebButtonsPanel() {
setSpacing(true);
setMargin(false);
setStyleName("cuba-buttons-panel");
component.addStyleName(BUTTONS_PANNEL_STYLENAME);
}
@Override
public void setStyleName(String name) {
super.setStyleName(name);
component.addStyleName(BUTTONS_PANNEL_STYLENAME);
}
}