Interface RefreshListener


public interface RefreshListener
Interface RefreshListener is a utility class used by clients to keep varying views of objects refreshed (in sync). Class which implement the RefreshListener interface and register as a listener via the RefreshService will be notified when RefreshEvents occur.
    public class MyDisplay extends Frame implements RefreshListener {
       ...
       public void refreshObject( RefreshEvent evt ) {
          int action = evt.getAction();
          switch (action) {

             case RefreshEvent.CREATE:
                handleCreateEvent( evt );
                break;

             case RefreshEvent.UPDATE:
                handleUpdateEvent( evt );
                break;

             case RefreshEvent.DELETE:
                handleDeleteEvent( evt );
                break;

             default:
          }
       }
       ...
    }// End of 'MyDisplay'
  
See Also: