Samantha Catania
Samantha Catania

Reputation: 5316

Key Value Observing in Java

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

Answers (3)

Ahmed Basyouny
Ahmed Basyouny

Reputation: 343

I know it's an old thread but you can check the following library

https://github.com/ahmed-basyouni/AndroidKVO

Upvotes: 0

Appyx
Appyx

Reputation: 1185

It is not possible in Java without implementing it yourself, so i wrote a little "library".

https://github.com/Appyx/JKVO

Upvotes: 2

duffymo
duffymo

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

Related Questions