|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel org.jivesoftware.spark.component.BackgroundPanel org.jivesoftware.spark.ui.ChatRoom org.jivesoftware.spark.ui.rooms.GroupChatRoom
public final class GroupChatRoom
GroupChatRoom is the conference chat room UI used to have Multi-User Chats.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.jivesoftware.spark.ui.ChatRoom |
---|
ChatRoom.ChatToolBar |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GroupChatRoom(org.jivesoftware.smackx.muc.MultiUserChat chat)
Creates a GroupChatRoom from a MultiUserChat . |
Method Summary | |
---|---|
void |
addBlockedUser(java.lang.String usersJID)
Adds a user to the blocked user list. |
void |
closeChatRoom()
Have the user leave this chat room and then close it. |
void |
connectionClosed()
|
void |
connectionClosedOnError(java.lang.Exception ex)
|
org.jivesoftware.smack.packet.Message.Type |
getChatType()
Return the type of chat we are in. |
ConferenceRoomInfo |
getConferenceRoomInfo()
|
java.lang.String |
getConferenceService()
Returns the conference service associated with this Conference Chat. |
long |
getLastActivity()
Implementation of this method should return the last time this chat room sent or recieved a message. |
org.jivesoftware.smackx.muc.MultiUserChat |
getMultiUserChat()
Returns a MultiUserChat object associated with this room. |
java.lang.String |
getNickname()
Retrieve the nickname of the user in this groupchat. |
org.jivesoftware.smack.filter.PacketFilter |
getPacketFilter()
Returns the ChatFilter. |
int |
getParticipantCount()
Returns the number of participants in this room. |
java.util.Collection |
getParticipants()
Returns the user format (e.g. |
java.lang.String |
getRoomname()
Return name of the room specified when the room was created. |
java.lang.String |
getRoomTitle()
Return the title of this room. |
javax.swing.Icon |
getTabIcon()
Return the Icon that should be used in the tab of this GroupChat Pane. |
java.lang.String |
getTabTitle()
Return the title that should be used in the tab. |
void |
hideParticipantList()
Call this method if you wish to hide the participant list. |
void |
insertText(java.lang.String text)
Inserts a notification message within the TranscriptWindow. |
void |
insertUpdate(javax.swing.event.DocumentEvent e)
The current SendField has been updated somehow. |
void |
inviteUser(java.lang.String jid,
java.lang.String message)
|
boolean |
isActive()
Returns whether or not this ChatRoom is active. |
boolean |
isBlocked(java.lang.String usersJID)
Returns true if the user is in the blocked user list. |
void |
leaveChatRoom()
Implementation of leaveChatRoom. |
void |
processPacket(org.jivesoftware.smack.packet.Packet packet)
Implementation of processPacket to handle muc related packets. |
void |
removeBlockedUser(java.lang.String usersJID)
Removes a user from the blocked user list. |
void |
sendMessage()
Sends the message that is currently in the send field. |
void |
sendMessage(org.jivesoftware.smack.packet.Message message)
Sends a message. |
void |
sendMessage(java.lang.String text)
Creates a Message object from the given text and delegates to the room for sending. |
void |
sendMessageWithoutNotification(org.jivesoftware.smack.packet.Message message)
Sends a message. |
void |
setSendAndReceiveTypingNotifications(boolean sendAndReceiveTypingNotifications)
Specifies whether to use typing notifications or not. |
void |
setTabIcon(javax.swing.Icon tabIcon)
Sets the icon to use on the tab. |
void |
setTabTitle(java.lang.String tabTitle)
Sets the title to use on the tab describing the Conference room. |
void |
showPresenceMessages(boolean showMessages)
If true, will display all presence messages. |
Methods inherited from class org.jivesoftware.spark.component.BackgroundPanel |
---|
paintComponent |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GroupChatRoom(org.jivesoftware.smackx.muc.MultiUserChat chat)
MultiUserChat
.
chat
- the MultiUserChat to create a GroupChatRoom from.Method Detail |
---|
public void setTabTitle(java.lang.String tabTitle)
tabTitle
- the title to use on the tab.public void hideParticipantList()
public void closeChatRoom()
closeChatRoom
in class ChatRoom
public void sendMessage(org.jivesoftware.smack.packet.Message message)
sendMessage
in class ChatRoom
message
- - the message to send.public void sendMessageWithoutNotification(org.jivesoftware.smack.packet.Message message)
message
- - the message to send.public java.lang.String getRoomname()
getRoomname
in class ChatRoom
public java.lang.String getNickname()
getNickname
in class ChatRoom
public org.jivesoftware.smack.filter.PacketFilter getPacketFilter()
public void setTabIcon(javax.swing.Icon tabIcon)
tabIcon
- the icon to use on the tab.public javax.swing.Icon getTabIcon()
getTabIcon
in class ChatRoom
public java.lang.String getTabTitle()
getTabTitle
in class ChatRoom
public java.lang.String getRoomTitle()
getRoomTitle
in class ChatRoom
public org.jivesoftware.smack.packet.Message.Type getChatType()
getChatType
in class ChatRoom
public void leaveChatRoom()
leaveChatRoom
in class ChatRoom
public void showPresenceMessages(boolean showMessages)
showMessages
- true to display presence messages, otherwise false.public boolean isActive()
isActive
in class ChatRoom
public int getParticipantCount()
public void processPacket(org.jivesoftware.smack.packet.Packet packet)
processPacket
in interface org.jivesoftware.smack.PacketListener
processPacket
in class ChatRoom
packet
- the packet.public void insertText(java.lang.String text)
text
- the text to insert.public java.util.Collection getParticipants()
public void sendMessage()
sendMessage
in class ChatRoom
public void sendMessage(java.lang.String text)
ChatRoom
sendMessage
in class ChatRoom
text
- the text to send.public org.jivesoftware.smackx.muc.MultiUserChat getMultiUserChat()
MultiUserChat
object associated with this room.public java.lang.String getConferenceService()
public void addBlockedUser(java.lang.String usersJID)
usersJID
- the room jid of the user (ex.spark@conference.jivesoftware.com/Dan)public void removeBlockedUser(java.lang.String usersJID)
usersJID
- the jid of the user (ex. spark@conference.jivesoftware.com/Dan)public boolean isBlocked(java.lang.String usersJID)
usersJID
- the jid of the user (ex. spark@conference.jivesoftware.com/Dan)
public void setSendAndReceiveTypingNotifications(boolean sendAndReceiveTypingNotifications)
sendAndReceiveTypingNotifications
- true to use typing notifications.public void inviteUser(java.lang.String jid, java.lang.String message)
public void insertUpdate(javax.swing.event.DocumentEvent e)
insertUpdate
in interface javax.swing.event.DocumentListener
insertUpdate
in class ChatRoom
e
- - the DocumentEvent to respond to.public ConferenceRoomInfo getConferenceRoomInfo()
public long getLastActivity()
ChatRoom
getLastActivity
in class ChatRoom
public void connectionClosed()
connectionClosed
in interface org.jivesoftware.smack.ConnectionListener
connectionClosed
in class ChatRoom
public void connectionClosedOnError(java.lang.Exception ex)
connectionClosedOnError
in interface org.jivesoftware.smack.ConnectionListener
connectionClosedOnError
in class ChatRoom
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |