Package jcurses.event

Examples of jcurses.event.WindowEvent


    *
  */
 
  public boolean tryToClose() {
    if (_listenerManager.countListeners() > 0) {
      _listenerManager.handleEvent(new WindowEvent(this, WindowEvent.CLOSING));
      return isClosed();
    } else {
      close();
      return true;
    }
View Full Code Here


 
    /**
    *  The method is called, if the window gets focus.
    */
  protected void activate() {
    _listenerManager.handleEvent(new WindowEvent(this, WindowEvent.ACTIVATED));
  }
View Full Code Here

 
    /**
    *  The method is called, if the window loses focus.
    */
  protected void deactivate() {
    _listenerManager.handleEvent(new WindowEvent(this, WindowEvent.DEACTIVATED));
  }
View Full Code Here

  /**
    *  The method is called, if the window is closed.
    */
  protected void closed() {
    _closed = true;
    _listenerManager.handleEvent(new WindowEvent(this, WindowEvent.CLOSED));
  }
View Full Code Here

TOP

Related Classes of jcurses.event.WindowEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.