| java.lang.Object org.wings.plaf.ResourceDefaults
ResourceDefaults | public class ResourceDefaults (Code) | | A Property table that stores default. This table overrides the
mappings of its parent table.
|
ResourceDefaults | public ResourceDefaults(ResourceDefaults parent, Properties properties)(Code) | | Parameters: parent - the parent defaults table that backs this defaults table |
addPropertyChangeListener | public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code) | | Add a PropertyChangeListener to the listener list.
The listener is registered for all properties.
A PropertyChangeEvent will get fired whenever a default
is changed.
Parameters: listener - The PropertyChangeListener to be added See Also: java.beans.PropertyChangeSupport |
firePropertyChange | protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code) | | Support for reporting bound property changes. If oldValue and
newValue are not equal and the PropertyChangeEvent listener list
isn't empty, then fire a PropertyChange event to each listener.
Parameters: propertyName - The programmatic name of the property that was changed. Parameters: oldValue - The old value of the property. Parameters: newValue - The new value of the property. See Also: java.beans.PropertyChangeSupport |
get | public Object get(Object key, Class type)(Code) | | Get a value from the defaults table.
If the key is not associated with a value,
the request is delegated to the parent defaults table
Parameters: key - the key Parameters: type - the class of the value in question the associated value or null |
put | public Object put(Object key, Object value)(Code) | | Set the value of key to value .
If key is a string and the new value isn't
equal to the old one, fire a PropertyChangeEvent. If value
is null, the key is removed from the table.
Parameters: key - the unique Object who's value will be used toretreive the data value associated with it Parameters: value - the new Object to store as data under that key the previous Object value, or null See Also: java.util.Map.put |
removePropertyChangeListener | public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code) | | Remove a PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
Parameters: listener - The PropertyChangeListener to be removed See Also: java.beans.PropertyChangeSupport |
|
|