Correct typo in WebButtonsPanel.java

This commit is contained in:
Andrey Ostanin 2018-05-14 15:06:54 +04:00 committed by Yuriy Artamonov
parent f06629d3a3
commit 2a82ebacf9

View File

@ -25,7 +25,7 @@ import java.util.LinkedList;
import java.util.List;
public class WebButtonsPanel extends WebHBoxLayout implements ButtonsPanel, VisibilityChangeNotifier {
public static final String BUTTONS_PANNEL_STYLENAME = "c-buttons-panel";
public static final String BUTTONS_PANEL_STYLENAME = "c-buttons-panel";
protected List<VisibilityChangeListener> visibilityChangeListeners;
@ -33,19 +33,19 @@ public class WebButtonsPanel extends WebHBoxLayout implements ButtonsPanel, Visi
setSpacing(true);
setMargin(false);
component.addStyleName(BUTTONS_PANNEL_STYLENAME);
component.addStyleName(BUTTONS_PANEL_STYLENAME);
}
@Override
public void setStyleName(String name) {
super.setStyleName(name);
component.addStyleName(BUTTONS_PANNEL_STYLENAME);
component.addStyleName(BUTTONS_PANEL_STYLENAME);
}
@Override
public String getStyleName() {
return StringUtils.normalizeSpace(super.getStyleName().replace(BUTTONS_PANNEL_STYLENAME, ""));
return StringUtils.normalizeSpace(super.getStyleName().replace(BUTTONS_PANEL_STYLENAME, ""));
}
@Override