mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
Add system stylename for buttons panel #PL-5865
This commit is contained in:
parent
e90785c2bf
commit
f2616683ec
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user