|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.util.Set<java.lang.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,
java.lang.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(java.lang.String propertiesPrefix,
boolean supportsTabs)
|
Method Summary | |
---|---|
void |
addThisColumnSubMenu(java.lang.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(java.lang.Class<?> forDataSourceType,
java.lang.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(java.lang.String sColumnName,
org.eclipse.swt.widgets.Menu menu)
|
boolean |
filterCheck(DownloadManager dm,
java.lang.String sLastSearch,
boolean bRegexSearch)
|
void |
filterSet(java.lang.String filter)
|
void |
focusChanged(TableRowCore focus)
|
Tag[] |
getCurrentTags()
|
protected java.lang.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,
java.lang.String tableID,
java.lang.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(java.lang.String parameterName)
Called, when a parameter has changed. |
void |
positionChanged(DownloadManager download,
int oldPosition,
int newPosition)
|
void |
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.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,
java.lang.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 java.util.Set<java.lang.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(java.lang.String propertiesPrefix, boolean supportsTabs)
public MyTorrentsView(AzureusCore _azureus_core, java.lang.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, java.lang.String tableID, java.lang.Class<?> forDataSourceType, TableColumnCore[] basicItems)
public void tableViewInitialized()
tableViewInitialized
in interface TableLifeCycleListener
public void tableViewDestroyed()
tableViewDestroyed
in interface TableLifeCycleListener
public org.eclipse.swt.widgets.Composite createTableViewPanel(org.eclipse.swt.widgets.Composite composite)
createTableViewPanel
in interface TableViewSWTPanelCreator
public boolean isOurDownloadManager(DownloadManager dm)
public boolean filterCheck(DownloadManager dm, java.lang.String sLastSearch, boolean bRegexSearch)
filterCheck
in interface TableViewFilterCheck<DownloadManager>
public void filterSet(java.lang.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 TableSelectionListener
public void deselected(TableRowCore[] rows)
deselected
in interface TableSelectionListener
public void focusChanged(TableRowCore focus)
focusChanged
in interface TableSelectionListener
public void mouseEnter(TableRowCore row)
mouseEnter
in interface TableSelectionListener
public void mouseExit(TableRowCore row)
mouseExit
in interface TableSelectionListener
public void updateSelectedContent()
public void updateSelectedContent(boolean force)
public DownloadManager[] getSelectedDownloads()
public void defaultSelected(TableRowCore[] rows, int keyMask)
defaultSelected
in interface TableSelectionListener
public void overrideDefaultSelected(TableSelectionListener defaultSelectedListener)
public void addThisColumnSubMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn)
TableViewSWTMenuFillListener
addThisColumnSubMenu
in interface TableViewSWTMenuFillListener
sColumnName
- The name of the column the user clicked onmenuThisColumn
- the menu to fill with MenuItemspublic void fillMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menu)
fillMenu
in interface TableViewSWTMenuFillListener
public void tableRefresh()
tableRefresh
in interface TableRefreshListener
public void keyPressed(org.eclipse.swt.events.KeyEvent e)
keyPressed
in interface org.eclipse.swt.events.KeyListener
public void keyReleased(org.eclipse.swt.events.KeyEvent e)
keyReleased
in interface org.eclipse.swt.events.KeyListener
public void parameterChanged(java.lang.String parameterName)
ParameterListener
parameterChanged
in interface ParameterListener
parameterName
- the name of the parameter that has changedParameterListener.parameterChanged(java.lang.String)
public void refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
UIPluginViewToolBarListener
refreshToolBarItems
in interface UIPluginViewToolBarListener
public boolean toolBarItemActivated(ToolBarItem item, long activationType, java.lang.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 DownloadManagerListener
public void downloadComplete(DownloadManager manager)
DownloadManagerListener
downloadComplete
in interface DownloadManagerListener
public void tagEventOccurred(TagTypeListener.TagEvent event)
tagEventOccurred
in interface TagTypeListener
public void tagTypeChanged(TagType tag_type)
TagTypeListener
tagTypeChanged
in interface TagTypeListener
public void tagAdded(Tag tag)
public void tagChanged(Tag tag)
public void tagRemoved(Tag tag)
public Tag[] getCurrentTags()
protected void setCurrentTags(Tag[] tags)
public boolean isInCurrentTag(DownloadManager manager)
public void taggableAdded(Tag tag, Taggable tagged)
taggableAdded
in interface TagListener
public void taggableSync(Tag tag)
taggableSync
in interface TagListener
public void taggableRemoved(Tag tag, Taggable tagged)
taggableRemoved
in interface TagListener
public void downloadManagerAdded(DownloadManager dm)
downloadManagerAdded
in interface GlobalManagerListener
public void downloadManagerRemoved(DownloadManager dm)
downloadManagerRemoved
in interface GlobalManagerListener
public void destroyInitiated()
destroyInitiated
in interface GlobalManagerListener
public void destroyed()
destroyed
in interface GlobalManagerListener
public void seedingStatusChanged(boolean seeding_only_mode, boolean b)
GlobalManagerListener
seedingStatusChanged
in interface GlobalManagerListener
seeding_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 ObfusticateImage
obfusticatedImage
in class TableViewTab<DownloadManager>
protected TableViewSWT<DownloadManager> createTableView(java.lang.Class<?> forDataSourceType, java.lang.String tableID, TableColumnCore[] basicItems)
public static void registerPluginViews(UISWTInstance pluginUI)
protected int getRowDefaultHeight()
public void rowRefresh(TableRow row)
rowRefresh
in interface TableRowRefreshListener
public boolean eventOccurred(UISWTViewEvent event)
UISWTViewEventListener
eventOccurred
in interface UISWTViewEventListener
eventOccurred
in class TableViewTab<DownloadManager>
event
- event that occurred
public void setRebuildListOnFocusGain(boolean rebuildListOnFocusGain)
public void rowAdded(TableRowCore row)
rowAdded
in interface TableCountChangeListener
public void rowRemoved(TableRowCore row)
rowRemoved
in interface TableCountChangeListener
public void rowExpanded(TableRowCore row)
rowExpanded
in interface TableExpansionChangeListener
public void rowCollapsed(TableRowCore row)
rowCollapsed
in interface TableExpansionChangeListener
protected java.lang.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 |