Class SBC_ChatOverview
java.lang.Object
com.biglybt.ui.swt.skin.SWTSkinObjectAdapter
com.biglybt.ui.swt.views.skin.SkinView
com.biglybt.ui.swt.plugin.net.buddy.swt.SBC_ChatOverview
- All Implemented Interfaces:
UIToolBarActivationListener, UIToolBarEnablerBase, UIPluginViewToolBarListener, BuddyPluginBeta.ChatManagerListener, TableSelectionListener, TableViewFilterCheck<BuddyPluginBeta.ChatInstance>, UIUpdatable, SWTSkinObjectListener, TableViewSWTMenuFillListener
public class SBC_ChatOverview
extends SkinView
implements UIUpdatable, UIPluginViewToolBarListener, TableViewFilterCheck<BuddyPluginBeta.ChatInstance>, BuddyPluginBeta.ChatManagerListener, TableViewSWTMenuFillListener, TableSelectionListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int[]private booleanprivate booleanprotected static final Objectprivate static final Stringprivate org.eclipse.swt.widgets.Composite(package private) TableViewSWT<BuddyPluginBeta.ChatInstance> Fields inherited from interface SWTSkinObjectListener
EVENT_CREATE_REQUEST, EVENT_CREATED, EVENT_DATASOURCE_CHANGED, EVENT_DESTROY, EVENT_HIDE, EVENT_LANGUAGE_CHANGE, EVENT_OBFUSCATE, EVENT_SELECT, EVENT_SHOW, NAMESFields inherited from interface UIToolBarActivationListener
ACTIVATIONTYPE_HELD, ACTIVATIONTYPE_NORMAL, ACTIVATIONTYPE_RIGHTCLICK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddThisColumnSubMenu(String sColumnName, org.eclipse.swt.widgets.Menu menuThisColumn) Create a SubMenu for column specific tasks.voidvoidvoidprivate static MdiEntrycreateChatMdiEntry(UIManager ui_manager, BuddyPluginBeta.ChatInstance chat) voiddefaultSelected(TableRowCore[] rows, int stateMask) voiddeselected(TableRowCore[] rows) voidbooleanfilterCheck(BuddyPluginBeta.ChatInstance ds, String filter, boolean regex, boolean confusable) voidvoidfocusChanged(TableRowCore focus) A name for this UIUpdatable so we can track who's being badprotected voidprivate voidinitTable(org.eclipse.swt.widgets.Composite control) voidmouseEnter(TableRowCore row) voidmouseExit(TableRowCore row) static voidstatic voidstatic voidpopOutChat(BuddyPluginBeta.ChatInstance chat, boolean on_top) static voidpopOutChat(String network, String key, boolean on_top) static voidCalled byBuddyPluginUI.preInitialize()voidrefreshToolBarItems(Map<String, Long> list) Fill in list with the toolbar ids and states you wish to setvoidselected(TableRowCore[] row) skinObjectDestroyed(SWTSkinObject skinObject, Object params) Skin Object was destroyedskinObjectHidden(SWTSkinObject skinObject, Object params) Skin Object was hiddenskinObjectInitialShow(SWTSkinObject skinObject, Object params) skinObjectShown(SWTSkinObject skinObject, Object params) Skin Object was shownbooleantoolBarItemActivated(ToolBarItem item, long activationType, Object datasource) XXX Should have been UIToolBarItemvoidupdateUI()Update your UI!Methods inherited from class SkinView
getMainSkinObject, getMdiEntry, getSkin, getSkinObject, isDisposed, isVisible, setMainSkinObject, skinObjectCreatedMethods inherited from class SWTSkinObjectAdapter
dataSourceChanged, eventOccured, skinObjectSelected, updateLanguageMethods 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 UIPluginViewToolBarListener
isActive
-
Field Details
-
COLOR_MESSAGE_WITH_NICK
public static final int[] COLOR_MESSAGE_WITH_NICK -
TABLE_CHAT
- See Also:
-
MDI_KEY
-
tv
-
col_filter_helper
-
table_parent
private org.eclipse.swt.widgets.Composite table_parent -
columnsAdded
private boolean columnsAdded -
listener_added
private boolean listener_added
-
-
Constructor Details
-
SBC_ChatOverview
public SBC_ChatOverview()
-
-
Method Details
-
preInitialize
public static void preInitialize()Called byBuddyPluginUI.preInitialize() -
openChat
-
popOutChat
-
openChat
-
popOutChat
-
createChatMdiEntry
-
toolBarItemActivated
Description copied from interface:UIToolBarActivationListenerXXX Should have been UIToolBarItem- Specified by:
toolBarItemActivatedin interfaceUIToolBarActivationListener
-
filterSet
- Specified by:
filterSetin interfaceTableViewFilterCheck<BuddyPluginBeta.ChatInstance>
-
refreshToolBarItems
Description copied from interface:UIPluginViewToolBarListenerFill in list with the toolbar ids and states you wish to set- Specified by:
refreshToolBarItemsin interfaceUIPluginViewToolBarListener- Parameters:
list-
-
updateUI
public void updateUI()Description copied from interface:UIUpdatableUpdate your UI!- Specified by:
updateUIin interfaceUIUpdatable
-
getUpdateUIName
Description copied from interface:UIUpdatableA name for this UIUpdatable so we can track who's being bad- Specified by:
getUpdateUINamein interfaceUIUpdatable- Returns:
- some name
-
skinObjectInitialShow
- Specified by:
skinObjectInitialShowin classSkinView- Parameters:
skinObject-params-- Returns:
-
initColumns
protected void initColumns() -
skinObjectHidden
Description copied from class:SWTSkinObjectAdapterSkin Object was hidden- Overrides:
skinObjectHiddenin classSkinView
-
skinObjectShown
Description copied from class:SWTSkinObjectAdapterSkin Object was shown- Overrides:
skinObjectShownin classSkinView
-
skinObjectDestroyed
Description copied from class:SWTSkinObjectAdapterSkin Object was destroyed- Overrides:
skinObjectDestroyedin classSkinView
-
initTable
private void initTable(org.eclipse.swt.widgets.Composite control) -
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
-
selected
- Specified by:
selectedin interfaceTableSelectionListener
-
deselected
- Specified by:
deselectedin interfaceTableSelectionListener
-
focusChanged
- Specified by:
focusChangedin interfaceTableSelectionListener
-
defaultSelected
- Specified by:
defaultSelectedin interfaceTableSelectionListener
-
chatAdded
- Specified by:
chatAddedin interfaceBuddyPluginBeta.ChatManagerListener
-
chatChanged
-
chatRemoved
- Specified by:
chatRemovedin interfaceBuddyPluginBeta.ChatManagerListener
-
mouseEnter
- Specified by:
mouseEnterin interfaceTableSelectionListener
-
mouseExit
- Specified by:
mouseExitin interfaceTableSelectionListener
-
filterCheck
public boolean filterCheck(BuddyPluginBeta.ChatInstance ds, String filter, boolean regex, boolean confusable) - Specified by:
filterCheckin interfaceTableViewFilterCheck<BuddyPluginBeta.ChatInstance>
-