Package com.biglybt.ui.swt.views
Class PiecesViewBase
- All Implemented Interfaces:
AEDiagnosticsEvidenceGenerator
,TableLifeCycleListener
,TableSelectionListener
,TableViewFilterCheck<PEPiece>
,ViewTitleInfo
,ViewTitleInfo2
,ObfuscateImage
,UISWTViewEventListener
,UISWTViewCoreEventListener
,TableViewSWTMenuFillListener
- Direct Known Subclasses:
PiecesSuperView
,PiecesView
public abstract class PiecesViewBase
extends TableViewTab<PEPiece>
implements TableLifeCycleListener, TableViewSWTMenuFillListener, TableSelectionListener, UISWTViewCoreEventListener, TableViewFilterCheck<PEPiece>, ViewTitleInfo2
Pieces List View
Features:
List of partial pieces
double-click to show on Piece Map
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
TableViewFilterCheck.TableViewFilterCheckEx<DATASOURCETYPE>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TableColumnCore[]
private BubbleTextBox
private org.eclipse.swt.widgets.Composite
private static String[]
private MultipleDocumentInterfaceSWT
private boolean
private boolean
protected TableViewSWT
<PEPiece> private Map
<Long, PiecesViewBase.PEPieceUploading> 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.ui.common.viewtitleinfo.ViewTitleInfo
TITLE_ACTIVE_STATE, TITLE_EXPORTABLE_DATASOURCE, TITLE_IMAGE_TOOLTIP, TITLE_IMAGEID, TITLE_INDICATOR_COLOR, TITLE_INDICATOR_TEXT, TITLE_INDICATOR_TEXT_TOOLTIP, TITLE_TEXT, TITLE_TEXT_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addThisColumnSubMenu
(String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.protected void
void
defaultSelected
(TableRowCore[] rows, int keyMask, int origin) void
deselected
(TableRowCore[] rows) boolean
eventOccurred
(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursvoid
boolean
filterCheck
(PEPiece piece, String filter, boolean regex, boolean confusable) void
void
focusChanged
(TableRowCore focus) (package private) static TableColumnCore[]
getBasicColumnItems
(String table_id) static org.eclipse.swt.graphics.Color
getLegendColor
(String key) protected abstract List
<PEPeerManager> protected abstract String
getTitleInfoProperty
(int propertyID) int
org.eclipse.swt.widgets.Composite
initComposite
(org.eclipse.swt.widgets.Composite composite) protected TableViewSWT
<PEPiece> initYourTableView
(String table_id) void
mouseEnter
(TableRowCore row) void
mouseExit
(TableRowCore row) private static void
void
selected
(TableRowCore[] rows) private void
setShowUploading
(boolean enabled) void
tableLifeCycleEventOccurred
(TableView tv, int eventType, Map<String, Object> data) protected void
protected void
void
titleInfoLinked
(MultipleDocumentInterface mdi, MdiEntry mdiEntry) protected abstract void
protected boolean
updateUploadingPieces
(boolean process_queue) Methods inherited from class com.biglybt.ui.swt.views.table.impl.TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, generate, getComposite, getFullTitle, getSWTView, getTableView, getTextPrefixID, initialize, initYourTableView, obfuscatedImage, parentDataSourceChanged, refresh, setEnableTabViews, tableViewTabInitComplete, updateLanguage, 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.ui.common.table.TableSelectionListener
defaultSelected, focusRequested, selectionChanged
Methods inherited from interface com.biglybt.ui.common.table.TableViewFilterCheck
filterCheck
Methods inherited from interface com.biglybt.ui.swt.pif.UISWTViewEventListener
informOfDuplicates
Methods inherited from interface com.biglybt.ui.common.viewtitleinfo.ViewTitleInfo2
getLinkedMdiEntry
-
Field Details
-
PLUGIN_DS_TYPE
-
basicItems
-
legendKeys
-
bubbleTextBox
-
tv
-
legendComposite
private org.eclipse.swt.widgets.Composite legendComposite -
mdi
-
shown
private boolean shown -
uploading_pieces
-
show_uploading
private boolean show_uploading
-
-
Constructor Details
-
PiecesViewBase
-
-
Method Details
-
getBasicColumnItems
-
getLegendColor
-
getTableID
-
initComposite
public org.eclipse.swt.widgets.Composite initComposite(org.eclipse.swt.widgets.Composite composite) - Overrides:
initComposite
in classTableViewTab<PEPiece>
-
initYourTableView
-
getPeerManagers
-
setShowUploading
private void setShowUploading(boolean enabled) -
registerPluginViews
private static void registerPluginViews() -
fillMenu
- Specified by:
fillMenu
in interfaceTableViewSWTMenuFillListener
-
addThisColumnSubMenu
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
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurred
in interfaceTableLifeCycleListener
-
tableViewInitialized
protected void tableViewInitialized() -
tableViewDestroyed
protected void tableViewDestroyed() -
filterSet
- Specified by:
filterSet
in interfaceTableViewFilterCheck<PEPiece>
-
filterCheck
- Specified by:
filterCheck
in interfaceTableViewFilterCheck<PEPiece>
-
updateUploadingPieces
protected boolean updateUploadingPieces(boolean process_queue) -
getUploadingPieceCount
public int getUploadingPieceCount() -
clearUploadingPieces
protected void clearUploadingPieces() -
defaultSelected
- Specified by:
defaultSelected
in interfaceTableSelectionListener
-
updateSelectedContent
protected abstract void updateSelectedContent() -
deselected
- Specified by:
deselected
in interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChanged
in interfaceTableSelectionListener
-
selected
- Specified by:
selected
in interfaceTableSelectionListener
-
mouseEnter
- Specified by:
mouseEnter
in interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExit
in interfaceTableSelectionListener
-
eventOccurred
Description copied from interface:UISWTViewEventListener
Triggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurred
in interfaceUISWTViewEventListener
- Overrides:
eventOccurred
in classTableViewTab<PEPiece>
- Parameters:
event
- event that occurred- Returns:
- meaning dependent upon event type
-
titleInfoLinked
- Specified by:
titleInfoLinked
in interfaceViewTitleInfo2
-
getTitleInfoProperty
- Specified by:
getTitleInfoProperty
in interfaceViewTitleInfo
- Parameters:
propertyID
- TITLE_*- Returns:
- value, or null if you don't want to set it
-