Class SideBarEntrySWT
java.lang.Object
com.biglybt.ui.swt.pifimpl.UISWTViewImpl
com.biglybt.ui.swt.mdi.BaseMdiEntry
com.biglybt.ui.swt.views.skin.sidebar.SideBarEntrySWT
- All Implemented Interfaces:
AEDiagnosticsEvidenceGenerator, UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginView, UIPluginViewToolBarListener, MdiEntry, ObfuscateImage, MdiEntrySWT, UISWTView, UISWTViewCore
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate booleanprivate longprivate org.eclipse.swt.graphics.Colorprivate org.eclipse.swt.graphics.Colorprivate booleanprivate static intprivate static booleanprivate static final booleanprivate static booleanprivate static final booleanprivate static intprivate static intprivate static intprivate static final intprivate org.eclipse.swt.graphics.Colorprivate org.eclipse.swt.graphics.Colorprivate intprivate static booleanprivate intprivate org.eclipse.swt.graphics.Imageprivate org.eclipse.swt.graphics.Image(package private) booleanprivate intprivate booleanprivate static final booleanprivate booleanprivate booleanprivate final SideBarprivate static final intprivate static final Stringprivate SWTSkinObjectContainerprivate org.eclipse.swt.widgets.TreeItemprivate InfoBarUtilFields inherited from class BaseMdiEntry
mdi, SO_ID_ENTRY_WRAPPER, uniqueNumberFields inherited from class UISWTViewImpl
CFG_PREFIX, composite, datasource, id, skin, skinObjectFields inherited from interface UISWTView
CONTROLTYPE_AWT, CONTROLTYPE_SWTFields inherited from interface UISWTViewCore
CONTROLTYPE_SKINOBJECT, UD_STANDALONE_DATA_SOURCEFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanattentionUpdate(int ticks) voidbuild()protected voiddestroyEntry(boolean userInitiated) org.eclipse.swt.widgets.TreeItemgetVitalityImage(int hitX, int hitY) voidhide()booleanWhether this entry is disposed.booleanorg.eclipse.swt.graphics.ImageobfuscatedImage(org.eclipse.swt.graphics.Image image) voidredraw()voidredraw(org.eclipse.swt.graphics.Rectangle hitArea) protected voidvoidvoidsetExpanded(boolean expanded) voidsetParentSkinObject(SWTSkinObjectContainer soParent) voidsetSelectable(boolean selectable) voidOverride the default title with a new one.protected voidsetToolbarVisibility(boolean visible) voidsetTreeItem(org.eclipse.swt.widgets.TreeItem treeItem) voidshow()booleanprotected org.eclipse.swt.graphics.Rectanglebooleanprotected org.eclipse.swt.graphics.Colorswt_paintEntryBG(int detail, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawBounds) protected voidswt_paintSideBar(org.eclipse.swt.widgets.Event event) private voidswt_show()protected voidMethods inherited from class BaseMdiEntry
addAcceleratorListener, addListener, addListener, addListener, addListener, addListener, addListener, addListeners, addVitalityImage, buildStandAlone, buildStandAlone, canBuildStandAlone, canClose, close, closeView, closeView, destroyEntryAlways, exportStandAlone, generate, getAutoOpenInfo, getDatasource, getDatasourceCore, getExportableDatasource, getId, getImageLeft, getImageLeftID, getMDI, getMenuHackListeners, getParentID, getPreferredAfterID, getSkinObject, getSkinObjectMaster, getSkinRef, getTitle, getViewTitleInfo, getVitalityImages, hasDropListeners, importStandAlone, isCloseable, isExpanded, processAccelerator, releaseImageLeft, removeAcceleratorListener, removeListener, removeListener, removeListener, removeListener, removeListener, removeListener, setCloseable, setDatasource, setDefaultExpanded, setEventListener, setImageLeft, setImageLeftID, setMasterComposite, setParentEntryID, setPluginSkinObject, setPreferredAfterID, setSkinObjectMaster, setSkinRef, setTitleID, setViewTitleInfo, swt_hide, triggerChildCloseListeners, triggerCloseListeners, triggerDatasourceListeners, triggerDropListeners, triggerEvent, triggerOpenListeners, updateLanguage, updateUI, viewTitleInfoRefreshMethods inherited from class UISWTViewImpl
addToolbarEnabler, buildStandAlone, create, getComposite, getControlType, getDataSource, getEventListener, getEventListenerBuilder, getFullTitle, getInitialDataSource, getParentView, getPluginInterface, getPluginSkinObject, getTitleID, getToolbarEnablers, getToolBarListener, getUserData, getViewID, getViewSubID, hasToolbarEnableers, initialize, isContentDisposed, isDelayInitializeToFirstActivate, isDestroyOnDeactivate, refreshToolBarItems, removeToolbarEnabler, setControlType, setDelayInitializeToFirstActivate, setDestroyOnDeactivate, setParentView, setTitleIDSupport, setTitleSupport, setToolBarListener, setUseCoreDataSource, setUserData, toolBarItemActivated, triggerEventRaw, useCoreDataSourceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MdiEntry
addToolbarEnabler, getToolbarEnablers, getUserData, isContentDisposed, removeToolbarEnabler, setUserDataMethods inherited from interface UIPluginView
getToolBarListener, getViewID, setToolBarListenerMethods inherited from interface UIPluginViewToolBarListener
isActiveMethods inherited from interface UISWTView
getControlType, getInitialDataSource, getParentView, getPluginInterface, getViewSubID, isContentDisposed, isDestroyOnDeactivate, setControlType, setDestroyOnDeactivateMethods inherited from interface UISWTViewCore
getComposite, getDataSource, getEventListener, getEventListenerBuilder, getFullTitle, getPluginSkinObject, getTitleID, getUserData, initialize, setParentView, setUseCoreDataSource, setUserData, useCoreDataSource
-
Field Details
-
DARK_MODE
private static final boolean DARK_MODE -
PAINT_BG
private static final boolean PAINT_BG- See Also:
-
DO_OUR_OWN_TREE_INDENT
private static final boolean DO_OUR_OWN_TREE_INDENT- See Also:
-
EXPANDO_WIDTH
private static final int EXPANDO_WIDTH- See Also:
-
EXPANDO_INDENT
private static int EXPANDO_INDENT -
DO_EXPANDO_INDENT
private static boolean DO_EXPANDO_INDENT -
COMPACT_SIDEBAR
private static boolean COMPACT_SIDEBAR -
EXPANDO_LEFT_INDENT
private static int EXPANDO_LEFT_INDENT -
EXPANDO_INDENT_INITIAL
private static int EXPANDO_INDENT_INITIAL -
IMAGELEFT_HIDDEN
private static boolean IMAGELEFT_HIDDEN -
SIDEBAR_SPACING
private static final int SIDEBAR_SPACING- See Also:
-
IMAGELEFT_SIZE
private int IMAGELEFT_SIZE -
IMAGELEFT_GAP
private int IMAGELEFT_GAP -
ALWAYS_IMAGE_GAP
private static final boolean ALWAYS_IMAGE_GAP- See Also:
-
CLOSE_IMAGE_POSITION
private static int CLOSE_IMAGE_POSITION -
SO_ID_TOOLBAR
- See Also:
-
swtItem
private org.eclipse.swt.widgets.TreeItem swtItem -
sidebar
-
maxIndicatorWidth
private int maxIndicatorWidth -
imgClose
private org.eclipse.swt.graphics.Image imgClose -
imgCloseSelected
private org.eclipse.swt.graphics.Image imgCloseSelected -
bg
private org.eclipse.swt.graphics.Color bg -
fg
private org.eclipse.swt.graphics.Color fg -
bgSel
private org.eclipse.swt.graphics.Color bgSel -
fgSel
private org.eclipse.swt.graphics.Color fgSel -
showonSWTItemSet
private boolean showonSWTItemSet -
soParent
-
buildonSWTItemSet
private boolean buildonSWTItemSet -
selectable
private boolean selectable -
neverPainted
private boolean neverPainted -
attention_start
private long attention_start -
attention_flash_on
private boolean attention_flash_on -
isRedrawQueued
boolean isRedrawQueued -
toolBarInfoBar
-
-
Constructor Details
-
SideBarEntrySWT
-
-
Method Details
-
updateColors
protected void updateColors() -
getTreeItem
public org.eclipse.swt.widgets.TreeItem getTreeItem() -
setTreeItem
public void setTreeItem(org.eclipse.swt.widgets.TreeItem treeItem) -
getVitalityImage
-
requestAttention
public void requestAttention()- Specified by:
requestAttentionin interfaceMdiEntry- Overrides:
requestAttentionin classBaseMdiEntry
-
attentionUpdate
protected boolean attentionUpdate(int ticks) -
redraw
public void redraw() -
swt_getBounds
protected org.eclipse.swt.graphics.Rectangle swt_getBounds() -
setExpanded
public void setExpanded(boolean expanded) - Specified by:
setExpandedin interfaceMdiEntry- Overrides:
setExpandedin classBaseMdiEntry
-
destroyEntry
protected void destroyEntry(boolean userInitiated) - Overrides:
destroyEntryin classBaseMdiEntry
-
build
public void build()- Specified by:
buildin classBaseMdiEntry
-
swt_build
public boolean swt_build() -
isEntryDisposed
public boolean isEntryDisposed()Description copied from interface:MdiEntryWhether this entry is disposed. Content can be disposed while entry is not disposed. Content is always disposed when entry is disposed. -
show
public void show()- Overrides:
showin classBaseMdiEntry
-
swt_show
private void swt_show() -
hide
public void hide()- Specified by:
hidein interfaceMdiEntry- Overrides:
hidein classBaseMdiEntry
-
swt_paintSideBar
protected void swt_paintSideBar(org.eclipse.swt.widgets.Event event) -
swt_paintEntryBG
protected org.eclipse.swt.graphics.Color swt_paintEntryBG(int detail, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle drawBounds) -
setParentSkinObject
-
getParentSkinObject
-
setSelectable
public void setSelectable(boolean selectable) -
isSelectable
public boolean isSelectable() -
swt_isVisible
public boolean swt_isVisible() -
obfuscatedImage
public org.eclipse.swt.graphics.Image obfuscatedImage(org.eclipse.swt.graphics.Image image) -
setToolbarVisibility
protected void setToolbarVisibility(boolean visible) - Overrides:
setToolbarVisibilityin classUISWTViewImpl
-
setTitle
Description copied from interface:UISWTViewOverride the default title with a new one. After setting this, you should use theUISWTViewEvent.TYPE_LANGUAGEUPDATEto update your title to the new language. -
refreshTitle
protected void refreshTitle()- Overrides:
refreshTitlein classUISWTViewImpl
-
redraw
public void redraw(org.eclipse.swt.graphics.Rectangle hitArea)
-