|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.beans.BeanChangeSupport
org.progeeks.util.beans.PropertyHolder
public class PropertyHolder
Object that holds and provides access to a set of properties the can be set or retrieved based on name.
Constructor Summary | |
---|---|
PropertyHolder()
Creates a new property container that can track various properties by name and report events when they change. |
|
PropertyHolder(BeanChangeSupport delegate)
Creates a new property container that can track various properties by name and report events when they change to both its own listeners and to the specified delegate object. |
Method Summary | |
---|---|
boolean |
getBooleanProperty(java.lang.String property,
boolean defaultValue)
Retrieves the boolean-typed property value for the specified property name. |
double |
getDoubleProperty(java.lang.String property,
double defaultValue)
Retrieves the double-typed property value for the specified property name. |
float |
getFloatProperty(java.lang.String property,
float defaultValue)
Retrieves the float-typed property value for the specified property name. |
int |
getIntProperty(java.lang.String property,
int defaultValue)
Retrieves the int-typed property value for the specified property name. |
long |
getLongProperty(java.lang.String property,
long defaultValue)
Retrieves the long-typed property value for the specified property name. |
java.lang.Object |
getObjectProperty(java.lang.String property)
Retrieves the object-typed property value for the specified property name. |
java.lang.Object |
getObjectProperty(java.lang.String property,
java.lang.Object defaultValue)
Retrieves the object-typed property value for the specified property name. |
java.lang.String |
getStringProperty(java.lang.String property,
java.lang.String defaultValue)
Retrieves the string-typed property value for the specified property name. |
boolean |
setBooleanProperty(java.lang.String property,
boolean b)
Sets the specified property to the specified value firing a change notification as appropriate. |
boolean |
setDoubleProperty(java.lang.String property,
double d)
Sets the specified property to the specified value firing a change notification as appropriate. |
boolean |
setFloatProperty(java.lang.String property,
float d)
Sets the specified property to the specified value firing a change notification as appropriate. |
boolean |
setIntProperty(java.lang.String property,
int i)
Sets the specified property to the specified value firing a change notification as appropriate. |
boolean |
setLongProperty(java.lang.String property,
long l)
Sets the specified property to the specified value firing a change notification as appropriate. |
boolean |
setObjectProperty(java.lang.String property,
java.lang.Object obj)
Sets the specified property to the specified value firing a change notification as appropriate. |
boolean |
setStringProperty(java.lang.String property,
java.lang.String value)
Sets the specified property to the specified value firing a change notification as appropriate. |
Methods inherited from class org.progeeks.util.beans.BeanChangeSupport |
---|
addPropertyChangeListener, addPropertyChangeListener, clearAllListeners, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, hasListeners, hasListeners, removePropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyHolder()
public PropertyHolder(BeanChangeSupport delegate)
Method Detail |
---|
public boolean setObjectProperty(java.lang.String property, java.lang.Object obj)
public java.lang.Object getObjectProperty(java.lang.String property)
public java.lang.Object getObjectProperty(java.lang.String property, java.lang.Object defaultValue)
public boolean setStringProperty(java.lang.String property, java.lang.String value)
public java.lang.String getStringProperty(java.lang.String property, java.lang.String defaultValue)
public boolean setIntProperty(java.lang.String property, int i)
public int getIntProperty(java.lang.String property, int defaultValue)
public boolean setLongProperty(java.lang.String property, long l)
public long getLongProperty(java.lang.String property, long defaultValue)
public boolean setDoubleProperty(java.lang.String property, double d)
public double getDoubleProperty(java.lang.String property, double defaultValue)
public boolean setFloatProperty(java.lang.String property, float d)
public float getFloatProperty(java.lang.String property, float defaultValue)
public boolean setBooleanProperty(java.lang.String property, boolean b)
public boolean getBooleanProperty(java.lang.String property, boolean defaultValue)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |