The Source for Java Technology Collaboration

Home » java.net Forums » OpenJFX » OpenJFX General Discussion

Thread: Trigger in new javafx

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 3 - Last Post: Aug 22, 2008 1:54 AM by: while_na Threads: [ Previous | Next ]
while_na

Posts: 7
Trigger in new javafx
Posted: Aug 20, 2008 5:34 PM
  Click to reply to this thread Reply

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..

michael_heinrichs

Posts: 93
Re: Trigger in new javafx
Posted: Aug 21, 2008 12:30 AM   in response to: while_na
  Click to reply to this thread Reply

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

alexsch

Posts: 238
Re: Trigger in new javafx
Posted: Aug 21, 2008 3:24 AM   in response to: while_na
  Click to reply to this thread Reply

import java.lang.System;
 
class A{
    public attribute name: String on replace{
        System.out.println("Hello {name}!");  
    };
}
 
var a = A{ name: "John" }


while_na

Posts: 7
Re: Trigger in new javafx
Posted: Aug 22, 2008 1:54 AM   in response to: while_na
  Click to reply to this thread Reply

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




 XML java.net RSS