コード例 #1
0
 /**
  * Set the <I>wait flag</I> to the specified value. (When the <I>wait flag</I> is enabled, the
  * user is informed that the application is busy, typically by displaying a <B><TT>Please wait . .
  * .</TT></B> message at the bottom of the <CODE>Display</CODE>.) DisplayEvent.WAIT_ON and
  * DisplayEvent.WAIT_OFF events are fired based on value of b.
  *
  * @param b Boolean value to which <I>wait flag</I> is set.
  */
 public void setWaitFlag(boolean b) {
   waitFlag = b;
   try {
     DisplayEvent e =
         new DisplayEvent(display, (b == true) ? DisplayEvent.WAIT_ON : DisplayEvent.WAIT_OFF);
     display.notifyListeners(e);
   } catch (VisADException e) {
   } catch (RemoteException e) {
   }
 }