|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.ui.main.table.FolderChangeMonitor
public class FolderChangeMonitor
This file monitors changes in the current folder of a FolderPanel, checking periodically if the current folder's date has changed. If a change has been detected, the FolderPanel will be asked to refresh its current folder.
If the MainFrame which contains the monitored FolderPanel becomes inactive (lies in the background), monitoring on will be not happen until the MainFrame becomes active again.
Implementation note: the monitoring is done in one single thread for all folders, each folder being monitored one after another. Current folder refreshes are performed in a separate thread.
| Constructor Summary | |
|---|---|
FolderChangeMonitor(FolderPanel folderPanel)
|
|
| Method Summary | |
|---|---|
void |
locationCancelled(LocationEvent locationEvent)
This method is invoked when the current folder has been cancelled by the user. |
void |
locationChanged(LocationEvent locationEvent)
This method is invoked when the current folder has changed. |
void |
locationChanging(LocationEvent locationEvent)
This method is invoked when the current folder is being changed. |
void |
locationFailed(LocationEvent locationEvent)
This method is invoked when the current folder could not be changed, as a result of the folder not existing or failing to list its contents. |
void |
run()
|
void |
setPaused(boolean paused)
Suspends or resumes this monitor. |
void |
stop()
Stops monitoring (stops monitoring thread). |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FolderChangeMonitor(FolderPanel folderPanel)
| Method Detail |
|---|
public void run()
run in interface java.lang.Runnablepublic void stop()
public void setPaused(boolean paused)
paused - true to supsend, false to resumepublic void locationChanging(LocationEvent locationEvent)
LocationListenerA call to either LocationListener.locationChanged(LocationEvent), LocationListener.locationCancelled(LocationEvent) or
LocationListener.locationFailed(LocationEvent) will always follow to indicate the outcome of the folder change.
locationChanging in interface LocationListenerlocationEvent - describes the location change eventpublic void locationChanged(LocationEvent locationEvent)
LocationListener
locationChanged in interface LocationListenerlocationEvent - describes the location change eventpublic void locationCancelled(LocationEvent locationEvent)
LocationListener
locationCancelled in interface LocationListenerlocationEvent - describes the location change eventpublic void locationFailed(LocationEvent locationEvent)
LocationListener
locationFailed in interface LocationListenerlocationEvent - describes the location change eventpublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard