Class BuddyPluginView
java.lang.Object
com.biglybt.ui.swt.plugin.net.buddy.swt.BuddyPluginView
- All Implemented Interfaces:
BuddyPluginViewInterface
Setup the SWT UI for Friends/Buddy
TODO: Mebbe Rename to BuddyPluginSWTUI now that View Listener stuff is moved to new class
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
protected class
Nested classes/interfaces inherited from interface com.biglybt.plugin.net.buddy.BuddyPluginViewInterface
BuddyPluginViewInterface.DownloadAdapter, BuddyPluginViewInterface.View, BuddyPluginViewInterface.ViewListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Object
private static AsyncDispatcher
private static AtomicInteger
private boolean
private UISWTStatusEntry
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private BuddyPluginAZ2Listener
private TimerEvent
private static Object
private Map
<BuddyPluginBeta.ChatInstance, Integer> private TableColumnCreationListener
private TableColumnCreationListener
private final List
<TableColumn> private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private org.eclipse.swt.graphics.Image
private Set
<BuddyPluginBeta.ChatInstance> private static TimerEventPeriodic
private TimerEventPeriodic
private BuddyPlugin
private static AsyncDispatcher
private static AtomicInteger
private BuddyPluginView.statusUpdater
private TaggableLifecycleAdapter
private static final Object
private UISWTInstance
static final String
Fields inherited from interface com.biglybt.plugin.net.buddy.BuddyPluginViewInterface
VP_CHAT, VP_DOWNLOAD, VP_SWT_COMPOSITE
-
Constructor Summary
ConstructorsConstructorDescriptionBuddyPluginView
(BuddyPlugin _plugin, UIInstance _ui_instance) Called via reflection inBuddyPlugin
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addBetaSubviews
(boolean enable) protected void
betaMessagePending
(BuddyPluginBeta.ChatInstance chat, org.eclipse.swt.widgets.Control comp_maybe_null, BuddyPluginBeta.ChatMessage pending_message) private void
betaMessagePendingSupport
(BuddyPluginBeta.ChatInstance chat, org.eclipse.swt.widgets.Control comp_maybe_null, BuddyPluginBeta.ChatMessage pending_message) private void
private void
buildMenu
(Set<BuddyPluginBeta.ChatInstance> current_instances, boolean is_pending_messages) buildView
(Map<String, Object> properties, BuddyPluginViewInterface.ViewListener listener) private void
void
destroy()
getDownloadAdapter
(Download download) private void
init
(BuddyPlugin _plugin, UIInstance _ui_instance) void
protected void
protected void
renderMessage
(BuddyPluginBeta.ChatInstance chat, BuddyPluginBeta.ChatMessage message) void
Open "Friends" view with classic tab ("Friends") selectedprivate void
setBetaStatus
(org.eclipse.swt.graphics.Image image) private List
<BuddyPluginBeta.ChatInstance> protected void
private void
updateIdleTT
(boolean known_to_be_idle)
-
Field Details
-
VIEWID_CHAT
- See Also:
-
TT_KEY
-
buddyStatusInit
-
buddyPluginAZ2Listener
-
plugin
-
ui_instance
-
iconNLI
private org.eclipse.swt.graphics.Image iconNLI -
iconIDLE
private org.eclipse.swt.graphics.Image iconIDLE -
iconIN
private org.eclipse.swt.graphics.Image iconIN -
iconOUT
private org.eclipse.swt.graphics.Image iconOUT -
iconINOUT
private org.eclipse.swt.graphics.Image iconINOUT -
periodicEventMsgCheck
-
statusUpdater
-
taggableLifecycleAdapter
-
columnMessagePending
-
columnMessagePending2
-
columns
-
beta_init_done
private boolean beta_init_done -
CHAT_LM_KEY
-
beta_subviews
-
chat_uis
-
beta_status
-
bs_chat_gray
private org.eclipse.swt.graphics.Image bs_chat_gray -
bs_chat_gray_text
private org.eclipse.swt.graphics.Image bs_chat_gray_text -
bs_chat_swarm_merge
private org.eclipse.swt.graphics.Image bs_chat_swarm_merge -
bs_chat_green
private org.eclipse.swt.graphics.Image bs_chat_green -
bs_chat_red
private org.eclipse.swt.graphics.Image bs_chat_red -
pending_msg_map
-
pending_msg_event
-
public_dispatcher
-
anon_dispatcher
-
public_done
-
anon_done
-
adapter_key
-
-
Constructor Details
-
BuddyPluginView
Called via reflection inBuddyPlugin
-
-
Method Details
-
init
-
selectClassicTab
public void selectClassicTab()Description copied from interface:BuddyPluginViewInterface
Open "Friends" view with classic tab ("Friends") selected- Specified by:
selectClassicTab
in interfaceBuddyPluginViewInterface
-
openChat
- Specified by:
openChat
in interfaceBuddyPluginViewInterface
-
checkBetaInit
private void checkBetaInit() -
destroy
public void destroy()- Specified by:
destroy
in interfaceBuddyPluginViewInterface
-
addBetaSubviews
private void addBetaSubviews(boolean enable) -
registerUI
-
unregisterUI
-
sortChats
private List<BuddyPluginBeta.ChatInstance> sortChats(Collection<BuddyPluginBeta.ChatInstance> chats) -
updateIdleTT
private void updateIdleTT(boolean known_to_be_idle) -
playSound
protected void playSound() -
betaMessagesPending
private void betaMessagesPending(Map<BuddyPluginBeta.ChatInstance, BuddyPluginBeta.ChatMessage> pending) -
betaMessagePending
protected void betaMessagePending(BuddyPluginBeta.ChatInstance chat, org.eclipse.swt.widgets.Control comp_maybe_null, BuddyPluginBeta.ChatMessage pending_message) -
betaMessagePendingSupport
private void betaMessagePendingSupport(BuddyPluginBeta.ChatInstance chat, org.eclipse.swt.widgets.Control comp_maybe_null, BuddyPluginBeta.ChatMessage pending_message) -
setBetaStatus
private void setBetaStatus(org.eclipse.swt.graphics.Image image) -
renderMessage
- Specified by:
renderMessage
in interfaceBuddyPluginViewInterface
-
buildMenu
private void buildMenu(Set<BuddyPluginBeta.ChatInstance> current_instances, boolean is_pending_messages) -
getDownloadAdapter
-
buildView
public BuddyPluginViewInterface.View buildView(Map<String, Object> properties, BuddyPluginViewInterface.ViewListener listener) - Specified by:
buildView
in interfaceBuddyPluginViewInterface
-