org.pdfsam.guiclient.business.listeners.mediators
Class UpdateCheckerMediator

java.lang.Object
  extended by org.pdfsam.guiclient.business.listeners.mediators.UpdateCheckerMediator
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class UpdateCheckerMediator
extends java.lang.Object
implements java.awt.event.ActionListener

Update checker mediator

Author:
Andrea Vacondio

Constructor Summary
UpdateCheckerMediator(JStatusPanel statusPanel)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void checkForUpdates()
          Run the runnable to check if an update is available
 void checkForUpdates(long delay, boolean forceRecheck)
          Run the runnable to check if an update is available after a delay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpdateCheckerMediator

public UpdateCheckerMediator(JStatusPanel statusPanel)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

checkForUpdates

public void checkForUpdates(long delay,
                            boolean forceRecheck)
Run the runnable to check if an update is available after a delay

Parameters:
delay -
forceRecheck - tells if a complete check have to be done.

checkForUpdates

public void checkForUpdates()
Run the runnable to check if an update is available