|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gudy.azureus2.ui.swt.views.table.impl.TableViewTab<DownloadManager>
org.gudy.azureus2.ui.swt.views.MyTorrentsView
public class MyTorrentsView
Displays a list of torrents in a table view.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.aelitis.azureus.core.tag.TagTypeListener |
|---|
TagTypeListener.TagEvent |
| Nested classes/interfaces inherited from interface com.aelitis.azureus.ui.common.table.TableViewFilterCheck |
|---|
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE> |
| Field Summary | |
|---|---|
protected org.eclipse.swt.widgets.Composite |
cCategoriesAndTags
|
static boolean |
eta_absolute
|
protected boolean |
isEmptyListOnNullDS
|
protected boolean |
neverShowCatOrTagButtons
|
static Set<String> |
preferred_tracker_names
|
static boolean |
progress_eta_absolute
|
protected org.eclipse.swt.widgets.Text |
txtFilter
|
protected boolean |
viewActive
|
| Fields inherited from interface com.aelitis.azureus.ui.common.table.TableLifeCycleListener |
|---|
EVENT_DESTROYED, EVENT_INITIALIZED |
| Fields inherited from interface org.gudy.azureus2.plugins.ui.toolbar.UIToolBarActivationListener |
|---|
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK |
| Constructor Summary | |
|---|---|
MyTorrentsView(AzureusCore _azureus_core,
String tableID,
boolean isSeedingView,
TableColumnCore[] basicItems,
org.eclipse.swt.widgets.Text txtFilter,
org.eclipse.swt.widgets.Composite cCatsAndTags,
boolean supportsTabs)
Initialize |
|
MyTorrentsView(boolean supportsTabs)
|
|
MyTorrentsView(String propertiesPrefix,
boolean supportsTabs)
|
|
| Method Summary | |
|---|---|
void |
addThisColumnSubMenu(String sColumnName,
org.eclipse.swt.widgets.Menu menuThisColumn)
Create a SubMenu for column specific tasks. |
void |
completionChanged(DownloadManager manager,
boolean bCompleted)
Notification that the completion state has changed. |
protected TableViewSWT<DownloadManager> |
createTableView(Class<?> forDataSourceType,
String tableID,
TableColumnCore[] basicItems)
|
org.eclipse.swt.widgets.Composite |
createTableViewPanel(org.eclipse.swt.widgets.Composite composite)
|
void |
defaultSelected(TableRowCore[] rows,
int keyMask)
|
void |
deselected(TableRowCore[] rows)
|
void |
destroyed()
|
void |
destroyInitiated()
|
void |
downloadComplete(DownloadManager manager)
Notification that we were downloading and the download has completed |
void |
downloadManagerAdded(DownloadManager dm)
|
void |
downloadManagerRemoved(DownloadManager dm)
|
boolean |
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occurs |
void |
filePriorityChanged(DownloadManager download,
DiskManagerFileInfo file)
|
void |
fillMenu(String sColumnName,
org.eclipse.swt.widgets.Menu menu)
|
boolean |
filterCheck(DownloadManager dm,
String sLastSearch,
boolean bRegexSearch)
|
void |
filterSet(String filter)
|
void |
focusChanged(TableRowCore focus)
|
protected Tag[] |
getCurrentTags()
|
protected Class<?> |
getForDataSourceType()
|
protected int |
getRowDefaultHeight()
Returns the default row height for the table Subclasses my override to return a different height if needed; a height of -1 means use default |
DownloadManager[] |
getSelectedDownloads()
|
void |
init(AzureusCore _azureus_core,
String tableID,
Class<?> forDataSourceType,
TableColumnCore[] basicItems)
|
TableViewSWT<DownloadManager> |
initYourTableView()
|
boolean |
isCurrentTagsAny()
|
boolean |
isInCurrentTag(DownloadManager manager)
|
boolean |
isOurDownloadManager(DownloadManager dm)
|
boolean |
isTableFocus()
|
void |
keyPressed(org.eclipse.swt.events.KeyEvent e)
|
void |
keyReleased(org.eclipse.swt.events.KeyEvent e)
|
void |
mouseEnter(TableRowCore row)
|
void |
mouseExit(TableRowCore row)
|
org.eclipse.swt.graphics.Image |
obfusticatedImage(org.eclipse.swt.graphics.Image image)
|
void |
overrideDefaultSelected(TableSelectionListener defaultSelectedListener)
|
void |
parameterChanged(String parameterName)
Called, when a parameter has changed. |
void |
positionChanged(DownloadManager download,
int oldPosition,
int newPosition)
|
void |
refreshToolBarItems(Map<String,Long> list)
Fill in list with the toolbar ids and states you wish to set |
static void |
registerPluginViews(UISWTInstance pluginUI)
|
void |
rowAdded(TableRowCore row)
|
void |
rowCollapsed(TableRowCore row)
|
void |
rowExpanded(TableRowCore row)
|
void |
rowRefresh(TableRow row)
|
void |
rowRemoved(TableRowCore row)
|
void |
seedingStatusChanged(boolean seeding_only_mode,
boolean b)
Notification of global seeding status changes. |
void |
selected(TableRowCore[] rows)
|
protected void |
setCurrentTags(Tag[] tags)
|
void |
setCurrentTagsAny(boolean currentTagsAny)
|
void |
setRebuildListOnFocusGain(boolean rebuildListOnFocusGain)
|
protected boolean |
showMyOwnMenu(org.eclipse.swt.events.MenuEvent e)
|
void |
stateChanged(DownloadManager manager,
int state)
|
void |
tableRefresh()
|
void |
tableViewDestroyed()
|
void |
tableViewInitialized()
|
void |
tableViewTabInitComplete()
|
void |
tagAdded(Tag tag)
|
void |
tagChanged(Tag tag)
|
void |
tagEventOccurred(TagTypeListener.TagEvent event)
|
void |
taggableAdded(Tag tag,
Taggable tagged)
|
void |
taggableRemoved(Tag tag,
Taggable tagged)
|
void |
taggableSync(Tag tag)
|
void |
tagRemoved(Tag tag)
|
void |
tagTypeChanged(TagType tag_type)
General change not specific to one tag |
boolean |
toolBarItemActivated(ToolBarItem item,
long activationType,
Object datasource)
XXX Should have been UIToolBarItem |
void |
updateLanguage()
|
void |
updateSelectedContent()
|
void |
updateSelectedContent(boolean force)
|
void |
viewChanged(TableView<DownloadManager> view)
|
| Methods inherited from class org.gudy.azureus2.ui.swt.views.table.impl.TableViewTab |
|---|
dataSourceChanged, delete, enableFilterCheck, generate, getComposite, getFullTitle, getPrivateMenu, getPropertiesPrefix, getSWTView, getTableView, initComposite, initialize, refresh, viewActivated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static volatile Set<String> preferred_tracker_names
public static volatile boolean eta_absolute
public static volatile boolean progress_eta_absolute
protected org.eclipse.swt.widgets.Composite cCategoriesAndTags
protected org.eclipse.swt.widgets.Text txtFilter
protected boolean viewActive
protected boolean neverShowCatOrTagButtons
protected boolean isEmptyListOnNullDS
| Constructor Detail |
|---|
public MyTorrentsView(boolean supportsTabs)
public MyTorrentsView(String propertiesPrefix,
boolean supportsTabs)
public MyTorrentsView(AzureusCore _azureus_core,
String tableID,
boolean isSeedingView,
TableColumnCore[] basicItems,
org.eclipse.swt.widgets.Text txtFilter,
org.eclipse.swt.widgets.Composite cCatsAndTags,
boolean supportsTabs)
_azureus_core - isSeedingView - basicItems - cCats - | Method Detail |
|---|
public TableViewSWT<DownloadManager> initYourTableView()
initYourTableView in class TableViewTab<DownloadManager>public void tableViewTabInitComplete()
tableViewTabInitComplete in class TableViewTab<DownloadManager>protected boolean showMyOwnMenu(org.eclipse.swt.events.MenuEvent e)
public void init(AzureusCore _azureus_core,
String tableID,
Class<?> forDataSourceType,
TableColumnCore[] basicItems)
public void tableViewInitialized()
tableViewInitialized in interface TableLifeCycleListenerpublic void tableViewDestroyed()
tableViewDestroyed in interface TableLifeCycleListenerpublic org.eclipse.swt.widgets.Composite createTableViewPanel(org.eclipse.swt.widgets.Composite composite)
createTableViewPanel in interface TableViewSWTPanelCreatorpublic boolean isOurDownloadManager(DownloadManager dm)
public boolean filterCheck(DownloadManager dm,
String sLastSearch,
boolean bRegexSearch)
filterCheck in interface TableViewFilterCheck<DownloadManager>public void filterSet(String filter)
filterSet in interface TableViewFilterCheck<DownloadManager>public void viewChanged(TableView<DownloadManager> view)
viewChanged in interface TableViewFilterCheck.TableViewFilterCheckEx<DownloadManager>public void selected(TableRowCore[] rows)
selected in interface TableSelectionListenerpublic void deselected(TableRowCore[] rows)
deselected in interface TableSelectionListenerpublic void focusChanged(TableRowCore focus)
focusChanged in interface TableSelectionListenerpublic void mouseEnter(TableRowCore row)
mouseEnter in interface TableSelectionListenerpublic void mouseExit(TableRowCore row)
mouseExit in interface TableSelectionListenerpublic void updateSelectedContent()
public void updateSelectedContent(boolean force)
public DownloadManager[] getSelectedDownloads()
public void defaultSelected(TableRowCore[] rows,
int keyMask)
defaultSelected in interface TableSelectionListenerpublic void overrideDefaultSelected(TableSelectionListener defaultSelectedListener)
public void addThisColumnSubMenu(String sColumnName,
org.eclipse.swt.widgets.Menu menuThisColumn)
TableViewSWTMenuFillListener
addThisColumnSubMenu in interface TableViewSWTMenuFillListenersColumnName - The name of the column the user clicked onmenuThisColumn - the menu to fill with MenuItems
public void fillMenu(String sColumnName,
org.eclipse.swt.widgets.Menu menu)
fillMenu in interface TableViewSWTMenuFillListenerpublic void tableRefresh()
tableRefresh in interface TableRefreshListenerpublic void keyPressed(org.eclipse.swt.events.KeyEvent e)
keyPressed in interface org.eclipse.swt.events.KeyListenerpublic void keyReleased(org.eclipse.swt.events.KeyEvent e)
keyReleased in interface org.eclipse.swt.events.KeyListenerpublic void parameterChanged(String parameterName)
ParameterListener
parameterChanged in interface ParameterListenerparameterName - the name of the parameter that has changedParameterListener.parameterChanged(java.lang.String)public void refreshToolBarItems(Map<String,Long> list)
UIPluginViewToolBarListener
refreshToolBarItems in interface UIPluginViewToolBarListener
public boolean toolBarItemActivated(ToolBarItem item,
long activationType,
Object datasource)
UIToolBarActivationListener
toolBarItemActivated in interface UIToolBarActivationListener
public void stateChanged(DownloadManager manager,
int state)
stateChanged in interface DownloadManagerListener
public void positionChanged(DownloadManager download,
int oldPosition,
int newPosition)
positionChanged in interface DownloadManagerListener
public void filePriorityChanged(DownloadManager download,
DiskManagerFileInfo file)
filePriorityChanged in interface DownloadManagerListener
public void completionChanged(DownloadManager manager,
boolean bCompleted)
DownloadManagerListener
completionChanged in interface DownloadManagerListenerpublic void downloadComplete(DownloadManager manager)
DownloadManagerListener
downloadComplete in interface DownloadManagerListenerpublic void tagEventOccurred(TagTypeListener.TagEvent event)
tagEventOccurred in interface TagTypeListenerpublic void tagTypeChanged(TagType tag_type)
TagTypeListener
tagTypeChanged in interface TagTypeListenerpublic void tagAdded(Tag tag)
public void tagChanged(Tag tag)
public void tagRemoved(Tag tag)
protected Tag[] getCurrentTags()
protected void setCurrentTags(Tag[] tags)
public boolean isInCurrentTag(DownloadManager manager)
public void taggableAdded(Tag tag,
Taggable tagged)
taggableAdded in interface TagListenerpublic void taggableSync(Tag tag)
taggableSync in interface TagListener
public void taggableRemoved(Tag tag,
Taggable tagged)
taggableRemoved in interface TagListenerpublic void downloadManagerAdded(DownloadManager dm)
downloadManagerAdded in interface GlobalManagerListenerpublic void downloadManagerRemoved(DownloadManager dm)
downloadManagerRemoved in interface GlobalManagerListenerpublic void destroyInitiated()
destroyInitiated in interface GlobalManagerListenerpublic void destroyed()
destroyed in interface GlobalManagerListener
public void seedingStatusChanged(boolean seeding_only_mode,
boolean b)
GlobalManagerListener
seedingStatusChanged in interface GlobalManagerListenerseeding_only_mode - true if only seeding torrents (no downloads), false otherwiseb - - as above but true if queued seedspublic void updateLanguage()
updateLanguage in class TableViewTab<DownloadManager>public boolean isTableFocus()
public org.eclipse.swt.graphics.Image obfusticatedImage(org.eclipse.swt.graphics.Image image)
obfusticatedImage in interface ObfusticateImageobfusticatedImage in class TableViewTab<DownloadManager>
protected TableViewSWT<DownloadManager> createTableView(Class<?> forDataSourceType,
String tableID,
TableColumnCore[] basicItems)
public static void registerPluginViews(UISWTInstance pluginUI)
protected int getRowDefaultHeight()
public void rowRefresh(TableRow row)
rowRefresh in interface TableRowRefreshListenerpublic boolean eventOccurred(UISWTViewEvent event)
UISWTViewEventListener
eventOccurred in interface UISWTViewEventListenereventOccurred in class TableViewTab<DownloadManager>event - event that occurred
public void setRebuildListOnFocusGain(boolean rebuildListOnFocusGain)
public void rowAdded(TableRowCore row)
rowAdded in interface TableCountChangeListenerpublic void rowRemoved(TableRowCore row)
rowRemoved in interface TableCountChangeListenerpublic void rowExpanded(TableRowCore row)
rowExpanded in interface TableExpansionChangeListenerpublic void rowCollapsed(TableRowCore row)
rowCollapsed in interface TableExpansionChangeListenerprotected Class<?> getForDataSourceType()
public boolean isCurrentTagsAny()
public void setCurrentTagsAny(boolean currentTagsAny)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||