From 282710a74fb381099f568380a0d54ea93ad9920a Mon Sep 17 00:00:00 2001 From: Gleb Gorelov Date: Thu, 1 Oct 2015 13:22:49 +0000 Subject: [PATCH] DesktopAbstractComponent getStyleName() always returns null #PL-6084 --- .../desktop/gui/components/DesktopAbstractComponent.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopAbstractComponent.java b/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopAbstractComponent.java index 7168037fa9..a05557de58 100644 --- a/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopAbstractComponent.java +++ b/modules/desktop/src/com/haulmont/cuba/desktop/gui/components/DesktopAbstractComponent.java @@ -57,6 +57,8 @@ public abstract class DesktopAbstractComponent protected String debugId; + protected String styleName; + protected C getImpl() { return impl; } @@ -236,13 +238,14 @@ public abstract class DesktopAbstractComponent @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); } }