Package com.biglybt.ui.swt.views
Class MyTorrentsView
- java.lang.Object
-
- com.biglybt.ui.swt.views.table.impl.TableViewTab<DownloadManager>
-
- com.biglybt.ui.swt.views.MyTorrentsView
-
- All Implemented Interfaces:
ParameterListener
,DownloadManagerListener
,GlobalManagerListener
,TagListener
,TagTypeListener
,AEDiagnosticsEvidenceGenerator
,TorrentUtils.PotentialTorrentDeletionListener
,TableRowRefreshListener
,UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,TableCountChangeListener
,TableExpansionChangeListener
,TableLifeCycleListener
,TableRefreshListener
,TableSelectionListener
,TableViewCreator
,TableViewFilterCheck<DownloadManager>
,TableViewFilterCheck.TableViewFilterCheckEx<DownloadManager>
,ObfuscateImage
,UISWTViewEventListener
,UISWTViewCoreEventListener
,TableViewSWTMenuFillListener
,TableViewSWTPanelCreator
,java.util.EventListener
,org.eclipse.swt.events.KeyListener
,org.eclipse.swt.internal.SWTEventListener
- Direct Known Subclasses:
MyTorrentsSubView
,MyTorrentsView_Big
,MyTorrentsView_Small
public class MyTorrentsView extends TableViewTab<DownloadManager> implements GlobalManagerListener, ParameterListener, DownloadManagerListener, TagTypeListener, TagListener, org.eclipse.swt.events.KeyListener, TableLifeCycleListener, TableViewSWTPanelCreator, TableSelectionListener, TableViewSWTMenuFillListener, TableRefreshListener, TableViewFilterCheck.TableViewFilterCheckEx<DownloadManager>, TableRowRefreshListener, TableCountChangeListener, TableExpansionChangeListener, UIPluginViewToolBarListener, TorrentUtils.PotentialTorrentDeletionListener
Displays a list of torrents in a table view.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
MyTorrentsView.Divider
-
Nested classes/interfaces inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
-
Nested classes/interfaces inherited from interface com.biglybt.core.tag.TagTypeListener
TagTypeListener.TagEvent
-
-
Field Summary
Fields Modifier and Type Field Description private Tag[]
_currentTags
private java.util.List<Tag>
allTags
private boolean
bDNDalwaysIncomplete
private TagCanvas.TagButtonTrigger
buttonListener
protected org.eclipse.swt.widgets.Composite
cCategoriesAndTags
private Core
core
private org.eclipse.swt.widgets.Composite
cTablePanel
private org.eclipse.swt.widgets.Composite
cTableParentPanel
private boolean
currentTagsAny
private java.lang.Object
currentTagsLock
private TableSelectionListener
defaultSelectedListener
private static AsyncDispatcher
dispatcher
private int
dmCountLast
private java.util.concurrent.atomic.AtomicInteger
dmCountMutations
private int[]
dmCounts
private long
drag_drop_location_start
private TableRowCore[]
drag_drop_rows
protected BubbleTextBox
filterBox
private org.eclipse.swt.graphics.Font
fontButton
private java.lang.Class<?>
forDataSourceType
private GlobalManager
globalManager
private GlobalManagerEventListener
gm_event_listener
private java.util.Set<Tag>
hiddenTags
private boolean
isCompletedOnly
protected boolean
isEmptyListOnNullDS
private TagConstraint
lastSearchConstraint
private java.lang.String
lastSearchConstraintString
(package private) java.util.Set<TableRowCore>
listRowsToRefresh
private static LogIDs
LOGID
protected boolean
neverShowCatButtons
protected boolean
neverShowTagButtons
private org.eclipse.swt.widgets.Menu
oldMenu
private java.util.Set<Tag>
pending_tag_changes
private boolean
rebuildListOnFocusGain
private FrequencyLimitedDispatcher
refresh_limiter
private java.util.Map<java.lang.String,java.lang.String>
removed_while_selected
private java.lang.Runnable
rowRemovedRunnable
private boolean
showCatButtons
private boolean
showTagButtons
private boolean
supportsTabs
private org.eclipse.swt.widgets.Menu
tableHeaderMenu
private static TagManager
tagManager
private TableViewSWT<DownloadManager>
tv
private TimerEventPeriodic
txtFilterUpdateEvent
protected boolean
viewActive
private ViewUtils.ViewTitleExtraInfo
vtxi
-
Fields inherited from interface com.biglybt.ui.common.table.TableLifeCycleListener
EVENT_TABLELIFECYCLE_DESTROYED, EVENT_TABLELIFECYCLE_INITIALIZED, EVENT_TABLELIFECYCLE_SHUTDOWN
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description MyTorrentsView(boolean supportsTabs)
MyTorrentsView(Core core, java.lang.String tableID, boolean isSeedingView, TableColumnCore[] basicItems, BubbleTextBox filterBox, org.eclipse.swt.widgets.Composite cCatsAndTags, boolean supportsTabs)
InitializeMyTorrentsView(java.lang.String propertiesPrefix, boolean supportsTabs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addThisColumnSubMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn)
Create a SubMenu for column specific tasks.private void
buildCatAndTag(java.util.List<Tag> tags)
private void
buildHeaderArea()
void
collapseAll()
private void
columnInvalidateAfterMove()
void
completionChanged(DownloadManager manager, boolean bCompleted)
Notification that the completion state has changed.private void
createDragDrop()
protected TableViewSWT<DownloadManager>
createTableView(java.lang.Class<?> forDataSourceType, java.lang.String tableID, TableColumnCore[] basicItems)
Creates and return anTableViewSWT
Subclasses my override to return a different TableViewSWT if neededorg.eclipse.swt.widgets.Composite
createTableViewPanel(org.eclipse.swt.widgets.Composite composite)
private void
createTabs()
void
defaultSelected(TableRowCore[] rows, int keyMask, int origin)
void
deselected(TableRowCore[] rows)
void
destroyed()
void
destroyInitiated()
private void
destroyTabs()
void
downloadComplete(DownloadManager manager)
Notification that we were downloading and the download has completedvoid
downloadManagerAdded(DownloadManager dm)
void
downloadManagerRemoved(DownloadManager dm)
boolean
eventOccurred(UISWTViewEvent event)
Triggers when an even listed in UISWTViewEvent occursvoid
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)
private MdiEntrySWT
getActiveView()
Tag[]
getCurrentTags()
protected java.lang.Class<?>
getForDataSourceType()
private org.eclipse.swt.widgets.Menu
getHeaderMenu()
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 defaultprivate long
getRowLocation(TableRowCore row)
DownloadManager[]
getSelectedDownloads()
TableViewSWT<DownloadManager>
init(Core _core, java.lang.String tableID, java.lang.Class<?> forDataSourceType, TableColumnCore[] basicItems)
TableViewSWT<DownloadManager>
initYourTableView()
private boolean
isCurrent(Tag tag)
boolean
isCurrentTagsAny()
boolean
isInCurrentTag(DownloadManager manager)
private boolean
isInCurrentTags(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)
private void
moveRowsTo(TableRowCore[] rows, int iNewPos)
private void
moveSelectedTorrents(int by)
private void
moveSelectedTorrentsDown()
private void
moveSelectedTorrentsEnd()
private void
moveSelectedTorrentsTop()
private void
moveSelectedTorrentsTopOrEnd(boolean moveToTop)
private void
moveSelectedTorrentsUp()
org.eclipse.swt.graphics.Image
obfuscatedImage(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
potentialDeletionChanged(DownloadManager[] old_dms, DownloadManager[] new_dms)
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setprivate void
refreshTorrentMenu()
static void
registerPluginViews()
private java.lang.Object[]
removeFromArray(java.lang.Object[] array, java.lang.Object o)
private void
removeTagFromCurrent(Tag tag)
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)
void
selectionChanged(TableRowCore[] selected_rows, TableRowCore[] deselected_rows)
Use this instead of selected/deselected if it makes more senseprivate void
setCurrentTagGroup(TagGroup tg)
protected void
setCurrentTags(Tag... tags)
void
setCurrentTagsAny(boolean currentTagsAny)
void
setRebuildListOnFocusGain(boolean rebuildListOnFocusGain)
protected boolean
showMyOwnMenu(org.eclipse.swt.events.MenuEvent e, boolean isMouseEvent)
private void
showSelectedDetails()
void
stateChanged(DownloadManager manager, int state)
private void
swt_createTabs()
private void
swt_viewChanged(TableView<DownloadManager> view)
void
tableLifeCycleEventOccurred(TableView tv, int eventType, java.util.Map<java.lang.String,java.lang.Object> data)
void
tableRefresh()
protected void
tableViewDestroyed()
protected 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 tagboolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItemvoid
updateLanguage()
void
updateSelectedContent()
void
updateSelectedContent(boolean force)
private void
updateSelectedContentRateLimited()
void
viewChanged(TableView<DownloadManager> view)
-
Methods inherited from class com.biglybt.ui.swt.views.table.impl.TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, generate, getComposite, getFullTitle, getPropertiesPrefix, getSWTView, getTableView, initComposite, initialize, parentDataSourceChanged, refresh, viewActivated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.download.DownloadManagerListener
fileLocationChanged
-
Methods inherited from interface com.biglybt.core.global.GlobalManagerListener
destroyInitiated
-
Methods inherited from interface com.biglybt.ui.common.table.TableSelectionListener
defaultSelected
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
-
-
-
-
Field Detail
-
LOGID
private static final LogIDs LOGID
-
dispatcher
private static final AsyncDispatcher dispatcher
-
tagManager
private static final TagManager tagManager
-
core
private Core core
-
globalManager
private GlobalManager globalManager
-
gm_event_listener
private GlobalManagerEventListener gm_event_listener
-
supportsTabs
private boolean supportsTabs
-
cTablePanel
private org.eclipse.swt.widgets.Composite cTablePanel
-
fontButton
private org.eclipse.swt.graphics.Font fontButton
-
cCategoriesAndTags
protected org.eclipse.swt.widgets.Composite cCategoriesAndTags
-
filterBox
protected BubbleTextBox filterBox
-
tableHeaderMenu
private org.eclipse.swt.widgets.Menu tableHeaderMenu
-
txtFilterUpdateEvent
private TimerEventPeriodic txtFilterUpdateEvent
-
lastSearchConstraintString
private java.lang.String lastSearchConstraintString
-
lastSearchConstraint
private TagConstraint lastSearchConstraint
-
currentTagsLock
private java.lang.Object currentTagsLock
-
_currentTags
private Tag[] _currentTags
-
allTags
private java.util.List<Tag> allTags
-
hiddenTags
private java.util.Set<Tag> hiddenTags
-
drag_drop_location_start
private long drag_drop_location_start
-
drag_drop_rows
private TableRowCore[] drag_drop_rows
-
bDNDalwaysIncomplete
private boolean bDNDalwaysIncomplete
-
tv
private TableViewSWT<DownloadManager> tv
-
cTableParentPanel
private org.eclipse.swt.widgets.Composite cTableParentPanel
-
viewActive
protected boolean viewActive
-
defaultSelectedListener
private TableSelectionListener defaultSelectedListener
-
vtxi
private ViewUtils.ViewTitleExtraInfo vtxi
-
neverShowTagButtons
protected boolean neverShowTagButtons
-
neverShowCatButtons
protected boolean neverShowCatButtons
-
showCatButtons
private boolean showCatButtons
-
showTagButtons
private boolean showTagButtons
-
rebuildListOnFocusGain
private boolean rebuildListOnFocusGain
-
oldMenu
private org.eclipse.swt.widgets.Menu oldMenu
-
isCompletedOnly
private boolean isCompletedOnly
-
forDataSourceType
private java.lang.Class<?> forDataSourceType
-
buttonListener
private TagCanvas.TagButtonTrigger buttonListener
-
isEmptyListOnNullDS
protected boolean isEmptyListOnNullDS
-
removed_while_selected
private final java.util.Map<java.lang.String,java.lang.String> removed_while_selected
-
rowRemovedRunnable
private java.lang.Runnable rowRemovedRunnable
-
dmCounts
private volatile int[] dmCounts
-
dmCountMutations
private java.util.concurrent.atomic.AtomicInteger dmCountMutations
-
dmCountLast
private volatile int dmCountLast
-
listRowsToRefresh
final java.util.Set<TableRowCore> listRowsToRefresh
-
refresh_limiter
private FrequencyLimitedDispatcher refresh_limiter
-
pending_tag_changes
private java.util.Set<Tag> pending_tag_changes
-
currentTagsAny
private boolean currentTagsAny
-
-
Constructor Detail
-
MyTorrentsView
public MyTorrentsView(boolean supportsTabs)
-
MyTorrentsView
public MyTorrentsView(java.lang.String propertiesPrefix, boolean supportsTabs)
-
MyTorrentsView
public MyTorrentsView(Core core, java.lang.String tableID, boolean isSeedingView, TableColumnCore[] basicItems, BubbleTextBox filterBox, org.eclipse.swt.widgets.Composite cCatsAndTags, boolean supportsTabs)
Initialize- Parameters:
core
-isSeedingView
-basicItems
-
-
-
Method Detail
-
initYourTableView
public TableViewSWT<DownloadManager> initYourTableView()
- Specified by:
initYourTableView
in classTableViewTab<DownloadManager>
-
tableViewTabInitComplete
public void tableViewTabInitComplete()
- Overrides:
tableViewTabInitComplete
in classTableViewTab<DownloadManager>
-
showMyOwnMenu
protected boolean showMyOwnMenu(org.eclipse.swt.events.MenuEvent e, boolean isMouseEvent)
-
init
public TableViewSWT<DownloadManager> init(Core _core, java.lang.String tableID, java.lang.Class<?> forDataSourceType, TableColumnCore[] basicItems)
-
tableLifeCycleEventOccurred
public void tableLifeCycleEventOccurred(TableView tv, int eventType, java.util.Map<java.lang.String,java.lang.Object> data)
- Specified by:
tableLifeCycleEventOccurred
in interfaceTableLifeCycleListener
-
tableViewInitialized
protected void tableViewInitialized()
-
getHeaderMenu
private org.eclipse.swt.widgets.Menu getHeaderMenu()
-
tableViewDestroyed
protected void tableViewDestroyed()
-
createTableViewPanel
public org.eclipse.swt.widgets.Composite createTableViewPanel(org.eclipse.swt.widgets.Composite composite)
- Specified by:
createTableViewPanel
in interfaceTableViewSWTPanelCreator
-
createTabs
private void createTabs()
-
destroyTabs
private void destroyTabs()
-
swt_createTabs
private void swt_createTabs()
-
buildHeaderArea
private void buildHeaderArea()
-
buildCatAndTag
private void buildCatAndTag(java.util.List<Tag> tags)
- Since:
- 3.1.1.1
-
isOurDownloadManager
public boolean isOurDownloadManager(DownloadManager dm)
-
filterCheck
public boolean filterCheck(DownloadManager dm, java.lang.String sLastSearch, boolean bRegexSearch)
- Specified by:
filterCheck
in interfaceTableViewFilterCheck<DownloadManager>
-
filterSet
public void filterSet(java.lang.String filter)
- Specified by:
filterSet
in interfaceTableViewFilterCheck<DownloadManager>
-
viewChanged
public void viewChanged(TableView<DownloadManager> view)
- Specified by:
viewChanged
in interfaceTableViewFilterCheck.TableViewFilterCheckEx<DownloadManager>
-
swt_viewChanged
private void swt_viewChanged(TableView<DownloadManager> view)
-
selected
public void selected(TableRowCore[] rows)
- Specified by:
selected
in interfaceTableSelectionListener
-
deselected
public void deselected(TableRowCore[] rows)
- Specified by:
deselected
in interfaceTableSelectionListener
-
selectionChanged
public void selectionChanged(TableRowCore[] selected_rows, TableRowCore[] deselected_rows)
Description copied from interface:TableSelectionListener
Use this instead of selected/deselected if it makes more sense- Specified by:
selectionChanged
in interfaceTableSelectionListener
-
focusChanged
public void focusChanged(TableRowCore focus)
- Specified by:
focusChanged
in interfaceTableSelectionListener
-
mouseEnter
public void mouseEnter(TableRowCore row)
- Specified by:
mouseEnter
in interfaceTableSelectionListener
-
mouseExit
public void mouseExit(TableRowCore row)
- Specified by:
mouseExit
in interfaceTableSelectionListener
-
updateSelectedContentRateLimited
private void updateSelectedContentRateLimited()
-
updateSelectedContent
public void updateSelectedContent()
-
updateSelectedContent
public void updateSelectedContent(boolean force)
-
refreshTorrentMenu
private void refreshTorrentMenu()
-
getSelectedDownloads
public DownloadManager[] getSelectedDownloads()
-
defaultSelected
public void defaultSelected(TableRowCore[] rows, int keyMask, int origin)
- Specified by:
defaultSelected
in interfaceTableSelectionListener
-
showSelectedDetails
private void showSelectedDetails()
-
overrideDefaultSelected
public void overrideDefaultSelected(TableSelectionListener defaultSelectedListener)
-
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 interfaceTableViewSWTMenuFillListener
- Parameters:
sColumnName
- The name of the column the user clicked onmenuThisColumn
- the menu to fill with MenuItems
-
fillMenu
public void fillMenu(java.lang.String sColumnName, org.eclipse.swt.widgets.Menu menu)
- Specified by:
fillMenu
in interfaceTableViewSWTMenuFillListener
-
createDragDrop
private void createDragDrop()
-
getRowLocation
private long getRowLocation(TableRowCore row)
-
moveRowsTo
private void moveRowsTo(TableRowCore[] rows, int iNewPos)
-
tableRefresh
public void tableRefresh()
- Specified by:
tableRefresh
in interfaceTableRefreshListener
-
keyPressed
public void keyPressed(org.eclipse.swt.events.KeyEvent e)
- Specified by:
keyPressed
in interfaceorg.eclipse.swt.events.KeyListener
-
keyReleased
public void keyReleased(org.eclipse.swt.events.KeyEvent e)
- Specified by:
keyReleased
in interfaceorg.eclipse.swt.events.KeyListener
-
moveSelectedTorrentsDown
private void moveSelectedTorrentsDown()
-
moveSelectedTorrentsUp
private void moveSelectedTorrentsUp()
-
moveSelectedTorrents
private void moveSelectedTorrents(int by)
-
columnInvalidateAfterMove
private void columnInvalidateAfterMove()
-
moveSelectedTorrentsTop
private void moveSelectedTorrentsTop()
-
moveSelectedTorrentsEnd
private void moveSelectedTorrentsEnd()
-
moveSelectedTorrentsTopOrEnd
private void moveSelectedTorrentsTopOrEnd(boolean moveToTop)
-
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 interfaceParameterListener
- Parameters:
parameterName
- the name of the parameter that has changed- See Also:
ParameterListener.parameterChanged(java.lang.String)
-
getActiveView
private MdiEntrySWT getActiveView()
-
refreshToolBarItems
public void refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Description copied from interface:UIPluginViewToolBarListener
Fill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItems
in interfaceUIPluginViewToolBarListener
-
toolBarItemActivated
public boolean toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
Description copied from interface:UIToolBarActivationListener
XXX Should have been UIToolBarItem- Specified by:
toolBarItemActivated
in interfaceUIToolBarActivationListener
-
stateChanged
public void stateChanged(DownloadManager manager, int state)
- Specified by:
stateChanged
in interfaceDownloadManagerListener
-
positionChanged
public void positionChanged(DownloadManager download, int oldPosition, int newPosition)
- Specified by:
positionChanged
in interfaceDownloadManagerListener
-
filePriorityChanged
public void filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
- Specified by:
filePriorityChanged
in interfaceDownloadManagerListener
-
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 interfaceDownloadManagerListener
-
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 interfaceDownloadManagerListener
-
tagEventOccurred
public void tagEventOccurred(TagTypeListener.TagEvent event)
- Specified by:
tagEventOccurred
in interfaceTagTypeListener
-
tagTypeChanged
public void tagTypeChanged(TagType tag_type)
Description copied from interface:TagTypeListener
General change not specific to one tag- Specified by:
tagTypeChanged
in interfaceTagTypeListener
-
tagAdded
public void tagAdded(Tag tag)
-
tagChanged
public void tagChanged(Tag tag)
-
tagRemoved
public void tagRemoved(Tag tag)
-
removeTagFromCurrent
private void removeTagFromCurrent(Tag tag)
-
removeFromArray
private java.lang.Object[] removeFromArray(java.lang.Object[] array, java.lang.Object o)
-
getCurrentTags
public Tag[] getCurrentTags()
-
setCurrentTagGroup
private void setCurrentTagGroup(TagGroup tg)
-
setCurrentTags
protected void setCurrentTags(Tag... tags)
-
isInCurrentTags
private boolean isInCurrentTags(DownloadManager manager)
-
isInCurrentTag
public boolean isInCurrentTag(DownloadManager manager)
-
taggableAdded
public void taggableAdded(Tag tag, Taggable tagged)
- Specified by:
taggableAdded
in interfaceTagListener
-
taggableSync
public void taggableSync(Tag tag)
- Specified by:
taggableSync
in interfaceTagListener
-
taggableRemoved
public void taggableRemoved(Tag tag, Taggable tagged)
- Specified by:
taggableRemoved
in interfaceTagListener
-
potentialDeletionChanged
public void potentialDeletionChanged(DownloadManager[] old_dms, DownloadManager[] new_dms)
- Specified by:
potentialDeletionChanged
in interfaceTorrentUtils.PotentialTorrentDeletionListener
-
downloadManagerAdded
public void downloadManagerAdded(DownloadManager dm)
- Specified by:
downloadManagerAdded
in interfaceGlobalManagerListener
-
downloadManagerRemoved
public void downloadManagerRemoved(DownloadManager dm)
- Specified by:
downloadManagerRemoved
in interfaceGlobalManagerListener
-
destroyInitiated
public void destroyInitiated()
- Specified by:
destroyInitiated
in interfaceGlobalManagerListener
-
destroyed
public void destroyed()
- Specified by:
destroyed
in interfaceGlobalManagerListener
-
seedingStatusChanged
public void seedingStatusChanged(boolean seeding_only_mode, boolean b)
Description copied from interface:GlobalManagerListener
Notification of global seeding status changes.- Specified by:
seedingStatusChanged
in interfaceGlobalManagerListener
- Parameters:
seeding_only_mode
- true if only seeding torrents (no downloads), false otherwiseb
- - as above but true if queued seeds
-
updateLanguage
public void updateLanguage()
- Overrides:
updateLanguage
in classTableViewTab<DownloadManager>
-
isTableFocus
public boolean isTableFocus()
-
obfuscatedImage
public org.eclipse.swt.graphics.Image obfuscatedImage(org.eclipse.swt.graphics.Image image)
- Specified by:
obfuscatedImage
in interfaceObfuscateImage
- Overrides:
obfuscatedImage
in classTableViewTab<DownloadManager>
-
createTableView
protected TableViewSWT<DownloadManager> createTableView(java.lang.Class<?> forDataSourceType, java.lang.String tableID, TableColumnCore[] basicItems)
Creates and return anTableViewSWT
Subclasses my override to return a different TableViewSWT if needed- Parameters:
basicItems
-- Returns:
-
registerPluginViews
public static void registerPluginViews()
-
getRowDefaultHeight
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- Returns:
-
rowRefresh
public void rowRefresh(TableRow row)
- Specified by:
rowRefresh
in interfaceTableRowRefreshListener
-
eventOccurred
public boolean eventOccurred(UISWTViewEvent event)
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Overrides:
eventOccurred
in classTableViewTab<DownloadManager>
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
setRebuildListOnFocusGain
public void setRebuildListOnFocusGain(boolean rebuildListOnFocusGain)
-
rowAdded
public void rowAdded(TableRowCore row)
- Specified by:
rowAdded
in interfaceTableCountChangeListener
-
rowRemoved
public void rowRemoved(TableRowCore row)
- Specified by:
rowRemoved
in interfaceTableCountChangeListener
-
rowExpanded
public void rowExpanded(TableRowCore row)
- Specified by:
rowExpanded
in interfaceTableExpansionChangeListener
-
rowCollapsed
public void rowCollapsed(TableRowCore row)
- Specified by:
rowCollapsed
in interfaceTableExpansionChangeListener
-
collapseAll
public void collapseAll()
-
getForDataSourceType
protected java.lang.Class<?> getForDataSourceType()
-
isCurrent
private boolean isCurrent(Tag tag)
-
isCurrentTagsAny
public boolean isCurrentTagsAny()
-
setCurrentTagsAny
public void setCurrentTagsAny(boolean currentTagsAny)
-
-