Browse Source

Fixed a bug when setting the style of the object before adding it

svn changeset:377/svn branch:toolkit
tags/6.7.0.beta1
Joonas Lehtinen 17 years ago
parent
commit
fe5b627b76
1 changed files with 9 additions and 0 deletions
  1. 9
    0
      src/com/itmill/toolkit/demo/features/PropertyPanel.java

+ 9
- 0
src/com/itmill/toolkit/demo/features/PropertyPanel.java View File

@@ -234,12 +234,21 @@ public class PropertyPanel
"Sample System Error" });

// Style
String currentStyle = ((Component)objectToConfigure).getStyle();
if (currentStyle == null)
set
.replaceWithSelect(
"style",
new Object[] { null },
new Object[] { "Default" })
.setNewItemsAllowed(true);
else
set
.replaceWithSelect(
"style",
new Object[] { null, currentStyle },
new Object[] { "Default", currentStyle })
.setNewItemsAllowed(true);

// Set up descriptions
set.getField("caption").setDescription(

Loading…
Cancel
Save