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 Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final TableColumnCore[]private BubbleTextBoxprivate org.eclipse.swt.widgets.Compositeprivate static String[]private MultipleDocumentInterfaceSWTprivate booleanprivate booleanprotected TableViewSWT<PEPiece> private Map<Long, PiecesViewBase.PEPieceUploading> Fields inherited from interface TableLifeCycleListener
EVENT_TABLELIFECYCLE_DESTROYED, EVENT_TABLELIFECYCLE_INITIALIZED, EVENT_TABLELIFECYCLE_SHUTDOWNFields inherited from interface 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 TypeMethodDescriptionvoidaddThisColumnSubMenu(String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.protected voidvoiddefaultSelected(TableRowCore[] rows, int keyMask, int origin) voiddeselected(TableRowCore[] rows) booleaneventOccurred(UISWTViewEvent event) Triggers when an even listed in UISWTViewEvent occursvoidbooleanfilterCheck(PEPiece piece, String filter, boolean regex, boolean confusable) voidvoidfocusChanged(TableRowCore focus) (package private) static TableColumnCore[]getBasicColumnItems(String table_id) static org.eclipse.swt.graphics.ColorgetLegendColor(String key) protected abstract List<PEPeerManager> protected abstract StringgetTitleInfoProperty(int propertyID) intorg.eclipse.swt.widgets.CompositeinitComposite(org.eclipse.swt.widgets.Composite composite) protected TableViewSWT<PEPiece> initYourTableView(String table_id) voidmouseEnter(TableRowCore row) voidmouseExit(TableRowCore row) private static voidvoidselected(TableRowCore[] rows) private voidsetShowUploading(boolean enabled) voidtableLifeCycleEventOccurred(TableView tv, int eventType, Map<String, Object> data) protected voidprotected voidvoidtitleInfoLinked(MultipleDocumentInterface mdi, MdiEntry mdiEntry) protected abstract voidprotected booleanupdateUploadingPieces(boolean process_queue) Methods inherited from class TableViewTab
allowCreate, dataSourceChanged, delete, enableFilterCheck, generate, getComposite, getFullTitle, getSWTView, getTableView, getTextPrefixID, initialize, initYourTableView, obfuscatedImage, parentDataSourceChanged, refresh, setEnableTabViews, tableViewTabInitComplete, updateLanguage, viewActivatedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TableSelectionListener
defaultSelected, focusRequested, selectionChangedMethods inherited from interface TableViewFilterCheck
filterCheck, filterSet, setRefilterCache, viewChangedMethods inherited from interface UISWTViewEventListener
builderNotRequired, informOfDuplicatesMethods inherited from interface 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:
initCompositein classTableViewTab<PEPiece>
-
initYourTableView
-
getPeerManagers
-
setShowUploading
private void setShowUploading(boolean enabled) -
registerPluginViews
private static void registerPluginViews() -
fillMenu
- Specified by:
fillMenuin interfaceTableViewSWTMenuFillListener
-
addThisColumnSubMenu
Description copied from interface:TableViewSWTMenuFillListenerCreate 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:
addThisColumnSubMenuin interfaceTableViewSWTMenuFillListener- Parameters:
sColumnName- The name of the column the user clicked onmenuThisColumn- the menu to fill with MenuItems
-
tableLifeCycleEventOccurred
- Specified by:
tableLifeCycleEventOccurredin interfaceTableLifeCycleListener
-
tableViewInitialized
protected void tableViewInitialized() -
tableViewDestroyed
protected void tableViewDestroyed() -
filterSet
- Specified by:
filterSetin interfaceTableViewFilterCheck<PEPiece>
-
filterCheck
- Specified by:
filterCheckin interfaceTableViewFilterCheck<PEPiece>
-
updateUploadingPieces
protected boolean updateUploadingPieces(boolean process_queue) -
getUploadingPieceCount
public int getUploadingPieceCount() -
clearUploadingPieces
protected void clearUploadingPieces() -
defaultSelected
- Specified by:
defaultSelectedin interfaceTableSelectionListener
-
updateSelectedContent
protected abstract void updateSelectedContent() -
deselected
- Specified by:
deselectedin interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChangedin interfaceTableSelectionListener
-
selected
- Specified by:
selectedin interfaceTableSelectionListener
-
mouseEnter
- Specified by:
mouseEnterin interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExitin interfaceTableSelectionListener
-
eventOccurred
Description copied from interface:UISWTViewEventListenerTriggers when an even listed in UISWTViewEvent occurs- Specified by:
eventOccurredin interfaceUISWTViewEventListener- Overrides:
eventOccurredin classTableViewTab<PEPiece>- Parameters:
event- event that occurred- Returns:
- meaning dependent upon event type
-
titleInfoLinked
- Specified by:
titleInfoLinkedin interfaceViewTitleInfo2
-
getTitleInfoProperty
- Specified by:
getTitleInfoPropertyin interfaceViewTitleInfo- Parameters:
propertyID- TITLE_*- Returns:
- value, or null if you don't want to set it
-