0 Replies Latest reply on Jun 20, 2010 4:41 AM by 843807

    Property Change support

      hi there,

      I need my java bean to run a certain piece of code once a bound property changes. Like an internal method or something. I am not clear on how to do this with property change support.
      class Person {
          private String name;
          public String getName() {
              return name;
          public void setName(String name) {
            // code for setName
       // so whenever setName is invoked and the property's value changes and if it meets some value conditions i would like it to
      // run the internal method for class Person.. e.g if (name = "BOO") { scarymethod();}
      public void scarymethod(void){
      //some code.
      please see the comments above to show what i am trying to do .. thanks!!