|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.joctopus.ui.joctopus.ChatBoard
public class ChatBoard
encapsulates chat tabs for each user.
Field Summary | |
---|---|
protected javax.swing.JButton |
btnTabButton
|
protected ChatAreaTracker |
caTracker
|
protected javax.swing.JFrame |
chatFrame
|
protected javax.swing.JTabbedPane |
chatTabbs
|
protected javax.swing.ImageIcon |
chatterIcon
|
protected java.awt.Font |
fnt
|
protected ChatterHandler |
handler
|
protected javax.swing.JMenuItem |
mnuClear
|
protected javax.swing.JMenuItem |
mnuClearHistory
|
protected javax.swing.JMenuItem |
mnuLoadRefresh
|
protected javax.swing.JMenuItem |
mnuSave
|
protected javax.swing.JMenuItem |
mnuTClose
|
protected javax.swing.JMenuItem |
mnuView
|
protected javax.swing.JPopupMenu |
popChatBoard
|
protected javax.swing.JPopupMenu |
popTab
|
protected JOctopusConsole |
viewHistory
|
protected java.util.Vector<Users> |
vUsers
stores different users, from which we can know that which users are currently present in chat board |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
closeCurrentTab()
closes current selected tab, also removes user from users list |
void |
createORShowChatTabForUser(Users user,
boolean show,
boolean takeHistory)
user, to be searched if found then select that particular tab else, create a new chat tab with existing chat panel. |
java.awt.Component |
createTabComponent(java.lang.String title)
creates new Tab component for a Tab. |
javax.swing.JFrame |
getChatFrame()
|
javax.swing.JTabbedPane |
getChatTabbs()
|
javax.swing.JPopupMenu |
getPopChatBoard(ChatPanel panel)
|
javax.swing.JPopupMenu |
getPopTab()
|
java.util.Vector<Users> |
getvUsers()
|
void |
selectTab(Users user)
|
void |
sendMessage()
called when send message operation is triggered by ChatAreaTracker. |
void |
setPopChatBoard(javax.swing.JPopupMenu popChatBoard)
|
void |
setPopTab(javax.swing.JPopupMenu popTab)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.Vector<Users> vUsers
protected java.awt.Font fnt
protected javax.swing.JTabbedPane chatTabbs
protected javax.swing.JFrame chatFrame
protected ChatAreaTracker caTracker
protected ChatterHandler handler
protected javax.swing.JPopupMenu popChatBoard
protected javax.swing.JPopupMenu popTab
protected JOctopusConsole viewHistory
protected javax.swing.JMenuItem mnuLoadRefresh
protected javax.swing.JMenuItem mnuSave
protected javax.swing.JMenuItem mnuView
protected javax.swing.JMenuItem mnuClear
protected javax.swing.JMenuItem mnuClearHistory
protected javax.swing.JMenuItem mnuTClose
protected final javax.swing.ImageIcon chatterIcon
protected javax.swing.JButton btnTabButton
Method Detail |
---|
public java.util.Vector<Users> getvUsers()
public javax.swing.JTabbedPane getChatTabbs()
public javax.swing.JFrame getChatFrame()
public void createORShowChatTabForUser(Users user, boolean show, boolean takeHistory)
user
- user to be addedshow
- takeHistory
- public void selectTab(Users user)
user
- selects the tab based on particular user.public void closeCurrentTab()
public java.awt.Component createTabComponent(java.lang.String title)
title
- title of tab.
public void sendMessage()
IChat
sendMessage
in interface IChat
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public javax.swing.JPopupMenu getPopChatBoard(ChatPanel panel)
panel
- panel to which the popup menu to be assigned
public void setPopChatBoard(javax.swing.JPopupMenu popChatBoard)
popChatBoard
- Popup menu for ChatBoard.public javax.swing.JPopupMenu getPopTab()
public void setPopTab(javax.swing.JPopupMenu popTab)
popTab
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |