Skip to main content

Trigger in new javafx

3 replies [Last post]
while_na
Offline
Joined: 2008-07-30
Points: 0

Hello everybody.. :)
is anyone know how to catch the event when our attribute is changed?
i ask here: http://blogs.sun.com/vaibhav/entry/insertion_trigger_in_javafx
and he said that we need not to code it explicitly..
but how we can catch the events? somebody know?

Regards..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
while_na
Offline
Joined: 2008-07-30
Points: 0

Wow, thanks for your reply guys.. :)
it works now... :)
regards...

alexsch
Offline
Joined: 2007-07-12
Points: 0

[code]
import java.lang.System;

class A{
public attribute name: String on replace{
System.out.println("Hello {name}!");
};
}

var a = A{ name: "John" }
[/code]

michael_heinrichs
Offline
Joined: 2007-11-15
Points: 0

You can use an "on replace"-trigger for catching the change of an attribute.