PropertyChangeListener
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
PropertyChangeListenerProxy |
A class which extends the EventListenerProxy
specifically for adding a PropertyChangeListener
with a "bound" property. |
|
A "PropertyChange" event gets fired whenever a bean changes a "bound"
property. You can register a PropertyChangeListener with a source
bean so as to be notified of any bound property updates.
Public Methods
public
abstract
void
propertyChange
(PropertyChangeEvent evt)
This method gets called when a bound property is changed.
Parameters
evt |
A PropertyChangeEvent object describing the event source
and the property that has changed.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003ePropertyChangeListener\u003c/code\u003e is an interface for receiving notifications when a bean's bound property changes.\u003c/p\u003e\n"],["\u003cp\u003eImplementing classes use the \u003ccode\u003epropertyChange()\u003c/code\u003e method to respond to property change events, receiving details through a \u003ccode\u003ePropertyChangeEvent\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePropertyChangeListenerProxy\u003c/code\u003e is a subclass for adding listeners with a specific bound property.\u003c/p\u003e\n"]]],[],null,["public interface **PropertyChangeListener** implements [EventListener](../../../reference/java/util/EventListener.html) \n\n|---|---|---|\n| Known Indirect Subclasses [PropertyChangeListenerProxy](../../../reference/java/beans/PropertyChangeListenerProxy.html) |-----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| | [PropertyChangeListenerProxy](../../../reference/java/beans/PropertyChangeListenerProxy.html) | A class which extends the `EventListenerProxy` specifically for adding a `PropertyChangeListener` with a \"bound\" property. | |||\n\nA \"PropertyChange\" event gets fired whenever a bean changes a \"bound\"\nproperty. You can register a PropertyChangeListener with a source\nbean so as to be notified of any bound property updates. \n\nPublic Method Summary\n\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [propertyChange](../../../reference/java/beans/PropertyChangeListener.html#propertyChange(java.beans.PropertyChangeEvent))([PropertyChangeEvent](../../../reference/java/beans/PropertyChangeEvent.html) evt) This method gets called when a bound property is changed. |\n\nPublic Methods \n\npublic abstract void\n**propertyChange**\n([PropertyChangeEvent](../../../reference/java/beans/PropertyChangeEvent.html) evt) \nThis method gets called when a bound property is changed. \n\nParameters\n\n| evt | A PropertyChangeEvent object describing the event source and the property that has changed. |\n|-----|---------------------------------------------------------------------------------------------|"]]