Reputation: 5316
in Objective C one can make use of key value observing to get notifications of changes to objects & then the program can act accordingly; is there something similar in java?
Upvotes: 3
Views: 2720
Reputation: 343
I know it's an old thread but you can check the following library
https://github.com/ahmed-basyouni/AndroidKVO
Upvotes: 0
Reputation: 1185
It is not possible in Java without implementing it yourself, so i wrote a little "library".
Upvotes: 2
Reputation: 308823
You can look into PropertyChangeListener, which has been part of Java since JDK 1.0:
http://download.oracle.com/javase/tutorial/uiswing/events/propertychangelistener.html
Upvotes: 4