cz.vity.freerapid.gui.managers
Class FileHistoryManager

java.lang.Object
  extended by org.jdesktop.application.AbstractBean
      extended by cz.vity.freerapid.gui.managers.FileHistoryManager
All Implemented Interfaces:
EventListener, org.jdesktop.application.Application.ExitListener

public class FileHistoryManager
extends org.jdesktop.application.AbstractBean
implements org.jdesktop.application.Application.ExitListener

Author:
Vity

Constructor Summary
FileHistoryManager(ManagerDirector director, org.jdesktop.application.ApplicationContext context)
           
 
Method Summary
 void addHistoryItem(DownloadFile file, File savedAs)
           
 boolean canExit(EventObject event)
           
 void clearHistory()
           
 int getDataChanged()
           
 com.jgoodies.binding.list.ArrayListModel<FileHistoryItem> getItems()
           
 List<FileHistoryItem> getSelectionToList(int[] selectedRows)
           
 void removeItem(FileHistoryItem item)
           
 void removeItemByIndex(int index)
           
 void removeSelected(int[] indexes)
           
 void willExit(EventObject event)
           
 
Methods inherited from class org.jdesktop.application.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileHistoryManager

public FileHistoryManager(ManagerDirector director,
                          org.jdesktop.application.ApplicationContext context)
Method Detail

canExit

public boolean canExit(EventObject event)
Specified by:
canExit in interface org.jdesktop.application.Application.ExitListener

willExit

public void willExit(EventObject event)
Specified by:
willExit in interface org.jdesktop.application.Application.ExitListener

getItems

public com.jgoodies.binding.list.ArrayListModel<FileHistoryItem> getItems()

addHistoryItem

public void addHistoryItem(DownloadFile file,
                           File savedAs)

clearHistory

public void clearHistory()

removeItem

public void removeItem(FileHistoryItem item)

removeItemByIndex

public void removeItemByIndex(int index)

getSelectionToList

public List<FileHistoryItem> getSelectionToList(int[] selectedRows)

removeSelected

public void removeSelected(int[] indexes)

getDataChanged

public int getDataChanged()