org.sourcejammer.client.gui.listener
Class PrimaryWindowFocusListener

java.lang.Object
  |
  +--java.awt.event.WindowAdapter
        |
        +--org.sourcejammer.client.gui.listener.PrimaryWindowFocusListener
All Implemented Interfaces:
java.util.EventListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.awt.event.WindowStateListener

public class PrimaryWindowFocusListener
extends java.awt.event.WindowAdapter

Title: $FileName: PrimaryWindowFocusListener.java$

Version:
$VerNum: 3$
Author:
$AuthorName: Rob MacGrogan$

$Description: Focus listener for main SJ window. Refreshes local/sync view on focus gained.$
$KeyWordsOff: $

Field Summary
private  long lostFocusTime
           
private static long MIN_OUT_OF_FOCUS_TIME
           
 
Constructor Summary
PrimaryWindowFocusListener()
           
 
Method Summary
 void windowGainedFocus(java.awt.event.WindowEvent ev)
           
 void windowLostFocus(java.awt.event.WindowEvent arg0)
           
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened, windowStateChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lostFocusTime

private long lostFocusTime

MIN_OUT_OF_FOCUS_TIME

private static final long MIN_OUT_OF_FOCUS_TIME
See Also:
Constant Field Values
Constructor Detail

PrimaryWindowFocusListener

public PrimaryWindowFocusListener()
Method Detail

windowGainedFocus

public void windowGainedFocus(java.awt.event.WindowEvent ev)
Specified by:
windowGainedFocus in interface java.awt.event.WindowFocusListener
Overrides:
windowGainedFocus in class java.awt.event.WindowAdapter

windowLostFocus

public void windowLostFocus(java.awt.event.WindowEvent arg0)
Specified by:
windowLostFocus in interface java.awt.event.WindowFocusListener
Overrides:
windowLostFocus in class java.awt.event.WindowAdapter
See Also:
WindowFocusListener.windowLostFocus(WindowEvent)


Copyright 2003 Soucejammer project.