My class State
public class State {
public static int PROGRAM_STOPPED = 0000;
public static int PROGRAM_STARTED = 9999;
public static int NOTHINGFILE_LOADED = 0;
.............
}
Best regards,
Eugenio
http://examples.roughian.com
--------------------------------------------
Best regards,
Eugenio
On 14 Nov, 12:55, "Ian Bambury" <ianbamb...@gmail.com> wrote:
> There's an explanation of how to create a custom listener here -http://www.examples.roughian.com/v1/#MiniProject_Listener
>
> Ian
>
> On 14/11/2007, eugenio.ricce...@gmail.com <eugenio.ricce...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > Hi all,
> > using the MVC pattern for the client side faced me the problem that I
> > could not find an event system in GWT.
> > I have a class "State" that it represents the states of my program.
> > Two classes(LoadConfiguration and Simulation) modified their interface
> > following the change of the class State.
> > So I decided to implement the observer pattern, Observable is State
> > and Observer is LoadConfiguration and Simulation.
> > How do I use the events and the listeners with gwt?
> > Do you have any idea?
>
> > My class State
> > public class State {
>
> > public static int PROGRAM_STOPPED = 0000;
> > public static int PROGRAM_STARTED = 9999;
> > public static int NOTHINGFILE_LOADED = 0;
> > .............
> > }
>
> > Best regards,
> > Eugenio
>
> --
>
> Ian
> --------------------------------------------http://examples.roughian.com
> --------------------------------------------- Nascondi testo tra virgolette -
>
> - Mostra testo tra virgolette -
regards,
Peter
On Nov 14, 6:34 pm, "eugenio.ricce...@gmail.com"