org.gudy.azureus2.ui.swt.views
Class FilesView

java.lang.Object
  extended by org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab<DiskManagerFileInfo>
      extended by org.gudy.azureus2.ui.swt.views.FilesView
All Implemented Interfaces:
TableDataSourceChangedListener, TableLifeCycleListener, TableRefreshListener, TableSelectionListener, TableViewFilterCheck<DiskManagerFileInfo>, TableViewFilterCheck.TableViewFilterCheckEx<DiskManagerFileInfo>, java.util.EventListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener, ParameterListener, DownloadManagerListener, DownloadManagerStateAttributeListener, AEDiagnosticsEvidenceGenerator, ObfusticateImage, UISWTViewEventListener, UISWTViewCoreEventListener, UISWTViewCoreEventListenerEx, TableViewSWTMenuFillListener

public class FilesView
extends TableViewTab<DiskManagerFileInfo>
implements TableDataSourceChangedListener, TableSelectionListener, TableViewSWTMenuFillListener, TableRefreshListener, DownloadManagerStateAttributeListener, DownloadManagerListener, TableLifeCycleListener, TableViewFilterCheck.TableViewFilterCheckEx<DiskManagerFileInfo>, org.eclipse.swt.events.KeyListener, ParameterListener, UISWTViewCoreEventListenerEx

Author:
Olivier, TuxPaper 2004/Apr/23: extends TableView instead of IAbstractView

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.aelitis.azureus.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
 
Field Summary
 boolean hide_dnd_files
           
static java.lang.String MSGID_PREFIX
           
static boolean show_full_path
           
 
Fields inherited from interface org.gudy.azureus2.core3.download.DownloadManagerStateAttributeListener
WILL_BE_READ, WRITTEN
 
Fields inherited from interface com.aelitis.azureus.ui.common.table.TableLifeCycleListener
EVENT_DESTROYED, EVENT_INITIALIZED
 
Constructor Summary
FilesView()
          Initialize
FilesView(boolean allowTabViews)
           
 
Method Summary
 void addThisColumnSubMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn)
          Create a SubMenu for column specific tasks.
 void attributeEventOccurred(DownloadManager dm, java.lang.String attribute_name, int event_type)
           
 void completionChanged(DownloadManager manager, boolean bCompleted)
          Notification that the completion state has changed.
 void defaultSelected(TableRowCore[] rows, int stateMask)
           
 void deselected(TableRowCore[] rows)
           
 void downloadComplete(DownloadManager manager)
          Notification that we were downloading and the download has completed
 boolean eventOccurred(UISWTViewEvent event)
          Triggers when an even listed in UISWTViewEvent occurs
 void filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
           
 void fillMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menu)
           
 boolean filterCheck(DiskManagerFileInfo ds, java.lang.String filter, boolean regex)
           
 void filterSet(java.lang.String filter)
           
 void focusChanged(TableRowCore focus)
           
 UISWTViewCoreEventListener getClone()
           
 org.eclipse.swt.widgets.Composite initComposite(org.eclipse.swt.widgets.Composite composite)
           
 TableViewSWT<DiskManagerFileInfo> initYourTableView()
           
 boolean isCloneable()
           
 void keyPressed(org.eclipse.swt.events.KeyEvent e)
           
 void keyReleased(org.eclipse.swt.events.KeyEvent e)
           
 void mouseEnter(TableRowCore row)
           
 void mouseExit(TableRowCore row)
           
 void parameterChanged(java.lang.String parameterName)
          Called, when a parameter has changed.
 void positionChanged(DownloadManager download, int oldPosition, int newPosition)
           
 void selected(TableRowCore[] rows)
           
 void setDisableWhenEmpty(boolean b)
           
 void stateChanged(DownloadManager manager, int state)
           
 void tableDataSourceChanged(java.lang.Object newDataSource)
           
 void tableRefresh()
           
 void tableViewDestroyed()
           
 void tableViewInitialized()
           
 void tableViewTabInitComplete()
           
 void updateSelectedContent()
           
 void viewChanged(TableView<DiskManagerFileInfo> view)
           
 
Methods inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab
dataSourceChanged, delete, enableFilterCheck, generate, getComposite, getFullTitle, getPrivateMenu, getPropertiesPrefix, getSWTView, getTableView, initialize, obfusticatedImage, refresh, updateLanguage, viewActivated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSGID_PREFIX

public static final java.lang.String MSGID_PREFIX
See Also:
Constant Field Values

show_full_path

public static boolean show_full_path

hide_dnd_files

public boolean hide_dnd_files
Constructor Detail

FilesView

public FilesView()
Initialize


FilesView

public FilesView(boolean allowTabViews)
Method Detail

isCloneable

public boolean isCloneable()
Specified by:
isCloneable in interface UISWTViewCoreEventListenerEx

getClone

public UISWTViewCoreEventListener getClone()
Specified by:
getClone in interface UISWTViewCoreEventListenerEx

initYourTableView

public TableViewSWT<DiskManagerFileInfo> initYourTableView()
Specified by:
initYourTableView in class TableViewTab<DiskManagerFileInfo>

initComposite

public org.eclipse.swt.widgets.Composite initComposite(org.eclipse.swt.widgets.Composite composite)
Overrides:
initComposite in class TableViewTab<DiskManagerFileInfo>

tableDataSourceChanged

public void tableDataSourceChanged(java.lang.Object newDataSource)
Specified by:
tableDataSourceChanged in interface TableDataSourceChangedListener

deselected

public void deselected(TableRowCore[] rows)
Specified by:
deselected in interface TableSelectionListener

focusChanged

public void focusChanged(TableRowCore focus)
Specified by:
focusChanged in interface TableSelectionListener

selected

public void selected(TableRowCore[] rows)
Specified by:
selected in interface TableSelectionListener

stateChanged

public void stateChanged(DownloadManager manager,
                         int state)
Specified by:
stateChanged in interface DownloadManagerListener

downloadComplete

public void downloadComplete(DownloadManager manager)
Description copied from interface: DownloadManagerListener
Notification that we were downloading and the download has completed

Specified by:
downloadComplete in interface DownloadManagerListener

completionChanged

public void completionChanged(DownloadManager manager,
                              boolean bCompleted)
Description copied from interface: DownloadManagerListener
Notification that the completion state has changed. Tells you when we switched from Completed to Incompleted (or visa versa) Does not get called when diskManager goes into CHECKING, but does when it goes out of CHECKING, to avoid torrents jumping momentarily from Completed to Incompleted to Completed again.

Specified by:
completionChanged in interface DownloadManagerListener

positionChanged

public void positionChanged(DownloadManager download,
                            int oldPosition,
                            int newPosition)
Specified by:
positionChanged in interface DownloadManagerListener

filePriorityChanged

public void filePriorityChanged(DownloadManager download,
                                DiskManagerFileInfo file)
Specified by:
filePriorityChanged in interface DownloadManagerListener

filterCheck

public boolean filterCheck(DiskManagerFileInfo ds,
                           java.lang.String filter,
                           boolean regex)
Specified by:
filterCheck in interface TableViewFilterCheck<DiskManagerFileInfo>

filterSet

public void filterSet(java.lang.String filter)
Specified by:
filterSet in interface TableViewFilterCheck<DiskManagerFileInfo>

viewChanged

public void viewChanged(TableView<DiskManagerFileInfo> view)
Specified by:
viewChanged in interface TableViewFilterCheck.TableViewFilterCheckEx<DiskManagerFileInfo>

updateSelectedContent

public void updateSelectedContent()

defaultSelected

public void defaultSelected(TableRowCore[] rows,
                            int stateMask)
Specified by:
defaultSelected in interface TableSelectionListener

fillMenu

public void fillMenu(java.lang.String sColumnName,
                     org.eclipse.swt.widgets.Menu menu)
Specified by:
fillMenu in interface TableViewSWTMenuFillListener

tableRefresh

public void tableRefresh()
Specified by:
tableRefresh in interface TableRefreshListener

addThisColumnSubMenu

public void addThisColumnSubMenu(java.lang.String sColumnName,
                                 org.eclipse.swt.widgets.Menu menuThisColumn)
Description copied from interface: TableViewSWTMenuFillListener
Create a SubMenu for column specific tasks. Everytime the user opens the context menu, the "This Column" submenu is cleared, and this function is called to refill it.

Specified by:
addThisColumnSubMenu in interface TableViewSWTMenuFillListener
Parameters:
sColumnName - The name of the column the user clicked on
menuThisColumn - the menu to fill with MenuItems

attributeEventOccurred

public void attributeEventOccurred(DownloadManager dm,
                                   java.lang.String attribute_name,
                                   int event_type)
Specified by:
attributeEventOccurred in interface DownloadManagerStateAttributeListener

tableViewInitialized

public void tableViewInitialized()
Specified by:
tableViewInitialized in interface TableLifeCycleListener

tableViewTabInitComplete

public void tableViewTabInitComplete()
Overrides:
tableViewTabInitComplete in class TableViewTab<DiskManagerFileInfo>

tableViewDestroyed

public void tableViewDestroyed()
Specified by:
tableViewDestroyed in interface TableLifeCycleListener

mouseEnter

public void mouseEnter(TableRowCore row)
Specified by:
mouseEnter in interface TableSelectionListener

mouseExit

public void mouseExit(TableRowCore row)
Specified by:
mouseExit in interface TableSelectionListener

eventOccurred

public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface: UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs

Specified by:
eventOccurred in interface UISWTViewEventListener
Overrides:
eventOccurred in class TableViewTab<DiskManagerFileInfo>
Parameters:
event - event that occurred
Returns:
meaning dependent upon event type

keyPressed

public void keyPressed(org.eclipse.swt.events.KeyEvent e)
Specified by:
keyPressed in interface org.eclipse.swt.events.KeyListener

keyReleased

public void keyReleased(org.eclipse.swt.events.KeyEvent e)
Specified by:
keyReleased in interface org.eclipse.swt.events.KeyListener

parameterChanged

public void parameterChanged(java.lang.String parameterName)
Description copied from interface: ParameterListener
Called, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.

Specified by:
parameterChanged in interface ParameterListener
Parameters:
parameterName - the name of the parameter that has changed

setDisableWhenEmpty

public void setDisableWhenEmpty(boolean b)