Package org.gorpipe.querydialogs
Class BasicBean
java.lang.Object
org.gorpipe.querydialogs.BasicBean
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AbstractListBean
Bean that provides basic support for Java beans. Classes that want to provide bean support can either
extend this class or copy the relevant code.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a PropertyChangeListener to the listener list.voidaddPropertyChangeListener(String propertyName, PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list for a specific property.protected voidReports a bound property change.protected voidfirePropertyChange(String propertyName, boolean oldValue, boolean newValue) Support for reporting bound property changes for boolean properties.protected voidfirePropertyChange(String propertyName, byte oldValue, byte newValue) Reports a bound property change.protected voidfirePropertyChange(String propertyName, char oldValue, char newValue) Reports a bound property change.protected voidfirePropertyChange(String propertyName, double oldValue, double newValue) Reports a bound property change.protected voidfirePropertyChange(String propertyName, float oldValue, float newValue) Reports a bound property change.protected voidfirePropertyChange(String propertyName, int oldValue, int newValue) Support for reporting bound property changes for integer properties.protected voidfirePropertyChange(String propertyName, long oldValue, long newValue) Reports a bound property change.protected voidfirePropertyChange(String propertyName, short oldValue, short newValue) Reports a bound property change.protected voidfirePropertyChange(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes for Object properties.Returns an array of all the property change listeners registered on this component.getPropertyChangeListeners(String propertyName) Returns an array of all the listeners which have been associated with the named property.voidRemoves a PropertyChangeListener from the listener list.voidremovePropertyChangeListener(String propertyName, PropertyChangeListener listener) Removes aPropertyChangeListenerfrom the listener list for a specific property.
-
Constructor Details
-
BasicBean
public BasicBean()
-
-
Method Details
-
addPropertyChangeListener
Adds a PropertyChangeListener to the listener list. The listener is registered for all bound properties of this class.Note that if this
Componentis inheriting a bound property, then no event will be fired in response to a change in the inherited property.If
listenerisnull, no exception is thrown and no action is performed.- Parameters:
listener- the property change listener to be added- See Also:
-
removePropertyChangeListener
Removes a PropertyChangeListener from the listener list. This method should be used to remove PropertyChangeListeners that were registered for all bound properties of this class.If listener is null, no exception is thrown and no action is performed.
- Parameters:
listener- the PropertyChangeListener to be removed- See Also:
-
getPropertyChangeListeners
Returns an array of all the property change listeners registered on this component.- Returns:
- all of this component's
PropertyChangeListeners or an empty array if no property change listeners are currently registered - Since:
- 1.4
- See Also:
-
addPropertyChangeListener
Adds a PropertyChangeListener to the listener list for a specific property.Note that if this
Componentis inheriting a bound property, then no event will be fired in response to a change in the inherited property.If
propertyNameorlistenerisnull, no exception is thrown and no action is taken.- Parameters:
propertyName- one of the property names listed abovelistener- the property change listener to be added- See Also:
-
removePropertyChangeListener
Removes aPropertyChangeListenerfrom the listener list for a specific property. This method should be used to removePropertyChangeListeners that were registered for a specific bound property.If
propertyNameorlistenerisnull, no exception is thrown and no action is taken.- Parameters:
propertyName- a valid property namelistener- the PropertyChangeListener to be removed- See Also:
-
getPropertyChangeListeners
Returns an array of all the listeners which have been associated with the named property.- Parameters:
propertyName- a valid property name- Returns:
- all of the
PropertyChangeListeners associated with the named property; if no such listeners have been added or ifpropertyNameisnull, an empty array is returned - See Also:
-
firePropertyChange
Support for reporting bound property changes for Object properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.- Parameters:
propertyName- the property whose value has changedoldValue- the property's previous valuenewValue- the property's new value
-
firePropertyChange
Support for reporting bound property changes for boolean properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.- Parameters:
propertyName- the property whose value has changedoldValue- the property's previous valuenewValue- the property's new value
-
firePropertyChange
Support for reporting bound property changes for integer properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners.- Parameters:
propertyName- the property whose value has changedoldValue- the property's previous valuenewValue- the property's new value
-
firePropertyChange
Reports a bound property change.- Parameters:
propertyName- the programmatic name of the property that was changedoldValue- the old value of the property (as a byte)newValue- the new value of the property (as a byte)- See Also:
-
firePropertyChange
Reports a bound property change.- Parameters:
propertyName- the programmatic name of the property that was changedoldValue- the old value of the property (as a char)newValue- the new value of the property (as a char)- See Also:
-
firePropertyChange
Reports a bound property change.- Parameters:
propertyName- the programmatic name of the property that was changedoldValue- the old value of the property (as a short)newValue- the old value of the property (as a short)- See Also:
-
firePropertyChange
Reports a bound property change.- Parameters:
propertyName- the programmatic name of the property that was changedoldValue- the old value of the property (as a long)newValue- the new value of the property (as a long)- Since:
- 1.5
- See Also:
-
firePropertyChange
Reports a bound property change.- Parameters:
propertyName- the programmatic name of the property that was changedoldValue- the old value of the property (as a float)newValue- the new value of the property (as a float)- Since:
- 1.5
- See Also:
-
firePropertyChange
Reports a bound property change.- Parameters:
propertyName- the programmatic name of the property that was changedoldValue- the old value of the property (as a double)newValue- the new value of the property (as a double)- See Also:
-
firePropertyChange
Reports a bound property change.- Parameters:
event- the event reporting the property change.- See Also:
-