Sets the property value for a given property key. Also clears out the property values for any properties that depend on this property. @param key the propertyKey whose value is to be set or changed with the new value. @param value the new value for the property.
(T key, Object value)
| 53 | * @param value the new value for the property. |
| 54 | */ |
| 55 | public void put(T key, Object value) { |
| 56 | if (map.containsKey(key)) { |
| 57 | Object oldValue = map.get(key); |
| 58 | if (oldValue == value) { |
| 59 | return; |
| 60 | } |
| 61 | if (oldValue != null && oldValue.equals(value)) { |
| 62 | return; |
| 63 | } |
| 64 | } |
| 65 | map.put( key, value ); |
| 66 | clearDependents(key); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Removes the property key,value pair from this wizard state. |