Examples of MultifunctionalWindowListener


Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

    JFrame frame = new JFrame(title);
    frame.setSize(width, height);
    frame.getContentPane().setLayout(layout);

    if (disposeOnClosing) {
      MultifunctionalWindowListener windowListener = MultifunctionalWindowListener
          .createDisposeOnClosingListener();
      frame.addWindowListener(windowListener);
    }
    return frame;
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

  
  
   @Test
   public void logAllTest() throws Exception
   {
      MultifunctionalWindowListener listener = new MultifunctionalWindowListener();
      Assert.assertTrue(listener.isLogAll());
      listener.setLogAll(false);
      Assert.assertFalse(listener.isLogAll());
   }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

   }
  
   @Test
   public void disposeOnClosingTest() throws Exception
   {
      MultifunctionalWindowListener listener = MultifunctionalWindowListener.createDisposeOnClosingListener();
     
      Assert.assertTrue(listener.isDisposeOnClosing());
   }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

  
   @Test
   public void testOnClosing()
   {
      WindowEvent event = createWindowEvent(WindowEvent.WINDOW_CLOSING);
      MultifunctionalWindowListener listener = new MultifunctionalWindowListener();
      Assert.assertTrue(window.isDisplayable());
      listener.windowClosing(event);
      Assert.assertTrue(window.isDisplayable());
      listener = MultifunctionalWindowListener.createDisposeOnClosingListener();
      listener.windowClosing(event);
      Assert.assertFalse(window.isDisplayable());
     
   }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

    */
   @Test
   public void testWindowActivated()
   {
      WindowEvent event = createWindowEvent(WindowEvent.WINDOW_ACTIVATED);
      MultifunctionalWindowListener listener = new MultifunctionalWindowListener();
      listener.windowActivated(event);
     
   }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

    */
   @Test
   public void testWindowClosed()
   {
      WindowEvent event = createWindowEvent(WindowEvent.WINDOW_CLOSED );
      MultifunctionalWindowListener listener = new MultifunctionalWindowListener();
      listener.windowClosed(event);
   }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

    */
   @Test
   public void testWindowDeactivated()
   {
      WindowEvent event = createWindowEvent(WindowEvent.WINDOW_DEACTIVATED );
      MultifunctionalWindowListener listener = new MultifunctionalWindowListener();
      listener.windowDeactivated(event);
   }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

    */
   @Test
   public void testWindowDeiconified()
   {
      WindowEvent event = createWindowEvent(WindowEvent.WINDOW_DEICONIFIED);
      MultifunctionalWindowListener listener = new MultifunctionalWindowListener();
      listener.windowDeiconified(event);
   }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

    */
   @Test
   public void testWindowIconified()
   {
      WindowEvent event = createWindowEvent(WindowEvent.WINDOW_ICONIFIED);
      MultifunctionalWindowListener listener = new MultifunctionalWindowListener();
      listener.windowIconified(event);
   }
View Full Code Here

Examples of net.sf.gluebooster.java.booster.basic.events.MultifunctionalWindowListener

    */
   @Test
   public void testWindowOpened()
   {
      WindowEvent event = createWindowEvent(WindowEvent.WINDOW_OPENED);
      MultifunctionalWindowListener listener = new MultifunctionalWindowListener();
      listener.windowOpened(event);
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.