Hi
Bit noob GWT/Java question ... as in example I have 3 classes.
How I keep values updated in all SubClasses which uses this "values".
So basic idea is that I have GWT app which have a lot of Widget
classes which have own "life", but I need to share and update some
base data to all Widgets from "Main" class.
Or I'm trying to do this totally wrong way? :)
Br. Marko
--------------------------------------------
class Data {
public String name;
}
class Main {
Data values = new Data();
SubClass one = new SubClass(values);
SubClass two= new SubClass(values);
SubClass ... = new SubClass(values);
..
..
values.name="Updated!";
}
class SubClass extends Widget {
SubClass(Data values ) {
}
onClickHandler .... {
Window.alert(""+values.name);
}
}
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.