|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Add a new home property to a change listener » » » » Post: Add a new home property to a change listener |
Print at Dec 19, 2025, 6:46:13 PM |
| Posted by enkonyito at Jun 7, 2017, 4:15:35 AM |
|
Add a new home property to a change listener The setProperty method allow to set a new property associated with a home. But can this property be taken into account by the addPropertyChangeListener method without returning an IllegalArgumentException if you use valueOf (String name)? With this code: this.home.addPropertyChangeListener(Home.Property.valueOf(ENHANCED_EXTERNAL_BRIGHTNESS),I have this error: Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: No enum constant com.eteks.sweethome3d.model.Home.Property.enhancedExternalBrightness---------------------------------------- EnkoNyito |
|
|
Current timezone is GMT Dec 19, 2025, 6:46:13 PM |