mirror of
https://gitee.com/jmix/cuba.git
synced 2024-11-30 18:27:56 +08:00
DesktopAbstractComponent getStyleName() always returns null #PL-6084
This commit is contained in:
parent
53bd47251a
commit
282710a74f
@ -57,6 +57,8 @@ public abstract class DesktopAbstractComponent<C extends JComponent>
|
||||
|
||||
protected String debugId;
|
||||
|
||||
protected String styleName;
|
||||
|
||||
protected C getImpl() {
|
||||
return impl;
|
||||
}
|
||||
@ -236,13 +238,14 @@ public abstract class DesktopAbstractComponent<C extends JComponent>
|
||||
|
||||
@Override
|
||||
public String getStyleName() {
|
||||
return null;
|
||||
return styleName;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setStyleName(String name) {
|
||||
DesktopTheme theme = App.getInstance().getTheme();
|
||||
if (theme != null) {
|
||||
this.styleName = name;
|
||||
theme.applyStyle(this, name);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user