Package com.biglybt.ui.swt.views.skin
Class SBC_LibraryView
- java.lang.Object
-
- com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
-
- com.biglybt.ui.swt.views.skin.SkinView
-
- com.biglybt.ui.swt.views.skin.SBC_LibraryView
-
- All Implemented Interfaces:
UIToolBarActivationListener
,UIToolBarEnablerBase
,UIPluginViewToolBarListener
,SWTSkinObjectListener
public class SBC_LibraryView extends SkinView implements UIPluginViewToolBarListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static interface
SBC_LibraryView.HeaderInfoExtender
-
Field Summary
Fields Modifier and Type Field Description private SWTSkinButtonUtility
btnBigTable
private SWTSkinButtonUtility
btnSmallTable
private java.lang.Object
datasource
private static java.lang.String
ID
static int
MODE_BIGTABLE
static int
MODE_SMALLTABLE
private static java.lang.String[]
modeIDs
private static java.lang.String[]
modeViewIDs
private SelectedContentListener
selectedContentListener
private static int
selection_count
private static DownloadManager[]
selection_dms
private static long
selection_done
private static long
selection_size
private SWTSkinObjectText
soLibraryInfo
private SWTSkinObject
soListArea
private SWTSkinObject
soWait
private SWTSkinObject
soWaitProgress
private SWTSkinObjectText
soWaitTask
private java.lang.String
torrentFilter
private int
torrentFilterMode
static int
TORRENTS_ALL
static int
TORRENTS_COMPLETE
static int
TORRENTS_INCOMPLETE
static int
TORRENTS_UNOPENED
private int
viewMode
private int
waitProgress
-
Fields inherited from interface com.biglybt.ui.swt.skin.SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_OBFUSCATE, EVENT_SELECT, EVENT_SHOW, NAMES
-
Fields inherited from interface com.biglybt.pif.ui.toolbar.UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK
-
-
Constructor Summary
Constructors Constructor Description SBC_LibraryView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addHeaderInfoExtender(SBC_LibraryView.HeaderInfoExtender extender)
java.lang.Object
dataSourceChanged(SWTSkinObject skinObject, java.lang.Object params)
int
getViewMode()
protected void
refreshHeaderInfo()
void
refreshToolBarItems(java.util.Map<java.lang.String,java.lang.Long> list)
Fill in list with the toolbar ids and states you wish to setprotected void
removeHeaderInfoExtender(SBC_LibraryView.HeaderInfoExtender extender)
private void
setupView(Core core, SWTSkinObject skinObject)
void
setViewMode(int viewMode, boolean save)
java.lang.Object
skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was destroyedjava.lang.Object
skinObjectHidden(SWTSkinObject skinObject, java.lang.Object params)
Skin Object was hiddenjava.lang.Object
skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
boolean
toolBarItemActivated(ToolBarItem item, long activationType, java.lang.Object datasource)
XXX Should have been UIToolBarItem-
Methods inherited from class com.biglybt.ui.swt.views.skin.SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreated, skinObjectShown
-
Methods inherited from class com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
eventOccured, skinObjectSelected, updateLanguage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.pif.ui.UIPluginViewToolBarListener
isActive
-
-
-
-
Field Detail
-
ID
private static final java.lang.String ID
- See Also:
- Constant Field Values
-
MODE_BIGTABLE
public static final int MODE_BIGTABLE
- See Also:
- Constant Field Values
-
MODE_SMALLTABLE
public static final int MODE_SMALLTABLE
- See Also:
- Constant Field Values
-
TORRENTS_ALL
public static final int TORRENTS_ALL
- See Also:
- Constant Field Values
-
TORRENTS_COMPLETE
public static final int TORRENTS_COMPLETE
- See Also:
- Constant Field Values
-
TORRENTS_INCOMPLETE
public static final int TORRENTS_INCOMPLETE
- See Also:
- Constant Field Values
-
TORRENTS_UNOPENED
public static final int TORRENTS_UNOPENED
- See Also:
- Constant Field Values
-
modeViewIDs
private static final java.lang.String[] modeViewIDs
-
modeIDs
private static final java.lang.String[] modeIDs
-
selection_count
private static volatile int selection_count
-
selection_size
private static volatile long selection_size
-
selection_done
private static volatile long selection_done
-
selection_dms
private static volatile DownloadManager[] selection_dms
-
selectedContentListener
private SelectedContentListener selectedContentListener
-
viewMode
private int viewMode
-
btnSmallTable
private SWTSkinButtonUtility btnSmallTable
-
btnBigTable
private SWTSkinButtonUtility btnBigTable
-
soListArea
private SWTSkinObject soListArea
-
torrentFilterMode
private int torrentFilterMode
-
torrentFilter
private java.lang.String torrentFilter
-
soWait
private SWTSkinObject soWait
-
soWaitProgress
private SWTSkinObject soWaitProgress
-
soWaitTask
private SWTSkinObjectText soWaitTask
-
waitProgress
private int waitProgress
-
soLibraryInfo
private SWTSkinObjectText soLibraryInfo
-
datasource
private java.lang.Object datasource
-
-
Method Detail
-
setViewMode
public void setViewMode(int viewMode, boolean save)
-
skinObjectInitialShow
public java.lang.Object skinObjectInitialShow(SWTSkinObject skinObject, java.lang.Object params)
- Specified by:
skinObjectInitialShow
in classSkinView
- Returns:
-
skinObjectDestroyed
public java.lang.Object skinObjectDestroyed(SWTSkinObject skinObject, java.lang.Object params)
Description copied from class:SWTSkinObjectAdapter
Skin Object was destroyed- Overrides:
skinObjectDestroyed
in classSkinView
-
setupView
private void setupView(Core core, SWTSkinObject skinObject)
-
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
-
skinObjectHidden
public java.lang.Object skinObjectHidden(SWTSkinObject skinObject, java.lang.Object params)
Description copied from class:SWTSkinObjectAdapter
Skin Object was hidden- Overrides:
skinObjectHidden
in classSkinView
-
dataSourceChanged
public java.lang.Object dataSourceChanged(SWTSkinObject skinObject, java.lang.Object params)
- Overrides:
dataSourceChanged
in classSWTSkinObjectAdapter
-
getViewMode
public int getViewMode()
-
addHeaderInfoExtender
protected void addHeaderInfoExtender(SBC_LibraryView.HeaderInfoExtender extender)
-
removeHeaderInfoExtender
protected void removeHeaderInfoExtender(SBC_LibraryView.HeaderInfoExtender extender)
-
refreshHeaderInfo
protected void refreshHeaderInfo()
-
-