org.gudy.azureus2.ui.swt.views
Class FilesView
java.lang.Object
org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab<DiskManagerFileInfo>
org.gudy.azureus2.ui.swt.views.FilesView
- All Implemented Interfaces:
- TableDataSourceChangedListener, TableLifeCycleListener, TableRefreshListener, TableSelectionListener, TableViewFilterCheck<DiskManagerFileInfo>, EventListener, org.eclipse.swt.events.KeyListener, org.eclipse.swt.internal.SWTEventListener, DownloadManagerStateAttributeListener, AEDiagnosticsEvidenceGenerator, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, UISWTViewEventListener, UISWTViewCoreEventListener, TableViewSWTMenuFillListener
public class FilesView
- extends TableViewTab<DiskManagerFileInfo>
- implements TableDataSourceChangedListener, TableSelectionListener, TableViewSWTMenuFillListener, TableRefreshListener, DownloadManagerStateAttributeListener, TableLifeCycleListener, TableViewFilterCheck<DiskManagerFileInfo>, org.eclipse.swt.events.KeyListener
- Author:
- Olivier, TuxPaper
2004/Apr/23: extends TableView instead of IAbstractView
Method Summary |
void |
addThisColumnSubMenu(String sColumnName,
org.eclipse.swt.widgets.Menu menuThisColumn)
Create a SubMenu for column specific tasks. |
void |
attributeEventOccurred(DownloadManager dm,
String attribute_name,
int event_type)
|
void |
defaultSelected(TableRowCore[] rows,
int stateMask)
|
void |
deselected(TableRowCore[] rows)
|
boolean |
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occurs |
void |
fillMenu(String sColumnName,
org.eclipse.swt.widgets.Menu menu)
|
boolean |
filterCheck(DiskManagerFileInfo ds,
String filter,
boolean regex)
|
void |
filterSet(String filter)
|
void |
focusChanged(TableRowCore focus)
|
TableViewSWT<DiskManagerFileInfo> |
initYourTableView()
|
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 |
refreshToolBarItems(Map<String,Long> list)
Fill in list with the toolbar ids and states you wish to set |
void |
selected(TableRowCore[] rows)
|
void |
tableDataSourceChanged(Object newDataSource)
|
void |
tableRefresh()
|
void |
tableViewDestroyed()
|
void |
tableViewInitialized()
|
void |
tableViewTabInitComplete()
|
boolean |
toolBarItemActivated(ToolBarItem item,
long activationType,
Object datasource)
|
void |
updateSelectedContent()
|
Methods inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab |
dataSourceChanged, generate, getComposite, getFullTitle, getPrivateMenu, getPropertiesPrefix, getSWTView, getTableView, initComposite, initialize, refresh, updateLanguage, viewActivated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MSGID_PREFIX
public static final String MSGID_PREFIX
- See Also:
- Constant Field Values
show_full_path
public static boolean show_full_path
FilesView
public FilesView()
- Initialize
FilesView
public FilesView(boolean allowTabViews)
initYourTableView
public TableViewSWT<DiskManagerFileInfo> initYourTableView()
- Specified by:
initYourTableView
in class TableViewTab<DiskManagerFileInfo>
tableDataSourceChanged
public void tableDataSourceChanged(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
filterCheck
public boolean filterCheck(DiskManagerFileInfo ds,
String filter,
boolean regex)
- Specified by:
filterCheck
in interface TableViewFilterCheck<DiskManagerFileInfo>
filterSet
public void filterSet(String filter)
- Specified by:
filterSet
in interface TableViewFilterCheck<DiskManagerFileInfo>
updateSelectedContent
public void updateSelectedContent()
defaultSelected
public void defaultSelected(TableRowCore[] rows,
int stateMask)
- Specified by:
defaultSelected
in interface TableSelectionListener
fillMenu
public void fillMenu(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(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 onmenuThisColumn
- the menu to fill with MenuItems
attributeEventOccurred
public void attributeEventOccurred(DownloadManager dm,
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
refreshToolBarItems
public void refreshToolBarItems(Map<String,Long> list)
- Description copied from interface:
UIPluginViewToolBarListener
- Fill in list with the toolbar ids and states you wish to set
- Specified by:
refreshToolBarItems
in interface UIPluginViewToolBarListener
- Overrides:
refreshToolBarItems
in class TableViewTab<DiskManagerFileInfo>
toolBarItemActivated
public boolean toolBarItemActivated(ToolBarItem item,
long activationType,
Object datasource)
- Specified by:
toolBarItemActivated
in interface UIToolBarActivationListener
- Overrides:
toolBarItemActivated
in class TableViewTab<DiskManagerFileInfo>
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