|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
net.java.sip.communicator.util.swing.SIPCommFrame
net.java.sip.communicator.impl.gui.main.chat.history.HistoryWindow
public class HistoryWindow
The HistoryWindow is the window, where user could view or search in the message history. The HistoryWindow could contain the history for one or a group of MetaContacts.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.java.sip.communicator.util.swing.SIPCommFrame |
|---|
SIPCommFrame.MainContentPane |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface net.java.sip.communicator.service.history.event.HistorySearchProgressListener |
|---|
PROGRESS_MAXIMUM_VALUE, PROGRESS_MINIMUM_VALUE |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
HistoryWindow(Object historyContact)
Creates an instance of the HistoryWindow. |
|
| Method Summary | |
|---|---|
void |
addTypingNotification(String message)
Implements ChatConversationContainer.setStatusMessage method. |
protected void |
close(boolean isEscaped)
Implements the SIPCommFrame close method, which is invoked when user presses the Esc key. |
Window |
getConversationContainerWindow()
Implements ChatConversationContainer.getWindow method. |
Date |
getNextDateFromHistory(Date date)
Returns the next date from the history. |
void |
loadSkin()
Re-process history. |
void |
messageDelivered(ChatRoomMessageDeliveredEvent evt)
Called when the underlying implementation has received an indication that a message, sent earlier has been successfully received by the destination. |
void |
messageDelivered(MessageDeliveredEvent evt)
Implements MessageListener.messageDelivered method in order to refresh the history when new message is sent. |
void |
messageDeliveryFailed(ChatRoomMessageDeliveryFailedEvent evt)
Called to indicate that delivery of a message sent earlier to the chat room has failed. |
void |
messageDeliveryFailed(MessageDeliveryFailedEvent evt)
Called to indicated that delivery of a message sent earlier has failed. |
void |
messageReceived(ChatRoomMessageReceivedEvent evt)
Called when a new incoming Message has been received. |
void |
messageReceived(MessageReceivedEvent evt)
Implements MessageListener.messageReceived method in order to refresh the history when new message is received. |
void |
progressChanged(ProgressEvent evt)
Handles the ProgressEvent triggered from the history when processing a query. |
void |
showHistoryByKeyword(String keyword)
Shows a history for a given keyword. |
void |
showHistoryByPeriod(Date startDate,
Date endDate)
Shows a history for a given period. |
protected void |
windowClosing(WindowEvent e)
Indicates that the window is closing. |
| Methods inherited from class net.java.sip.communicator.util.swing.SIPCommFrame |
|---|
addKeybindingAction, dispose, setKeybindingInput, setSizeAndLocation, setVisible, setVisible, update, validate |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Constructor Detail |
|---|
public HistoryWindow(Object historyContact)
historyContact - the MetaContact or the ChatRoom| Method Detail |
|---|
public void showHistoryByPeriod(Date startDate,
Date endDate)
startDate - the start date of the periodendDate - the end date of the periodpublic void showHistoryByKeyword(String keyword)
keyword - the keyword to searchpublic void addTypingNotification(String message)
addTypingNotification in interface ChatConversationContainermessage - the status message to setpublic Window getConversationContainerWindow()
getConversationContainerWindow in interface ChatConversationContainerprotected void windowClosing(WindowEvent e)
windowClosing in class SIPCommFramee - the WindowEvent that notified uspublic Date getNextDateFromHistory(Date date)
date - The date which indicates where to start.
public void progressChanged(ProgressEvent evt)
progressChanged in interface HistorySearchProgressListenerevt - the ProgressEvent that notified usprotected void close(boolean isEscaped)
close in class SIPCommFrameisEscaped - indicates if the window has been closed by pressing the
Esc keypublic void messageReceived(MessageReceivedEvent evt)
messageReceived in interface MessageListenerevt - the MessageReceivedEvent containing the newly
received message, its sender and other details.public void messageDelivered(MessageDeliveredEvent evt)
messageDelivered in interface MessageListenerevt - the MessageDeliveredEvent containing the id of the message
that has caused the event.public void messageDeliveryFailed(MessageDeliveryFailedEvent evt)
MessageListener
messageDeliveryFailed in interface MessageListenerevt - the MessageFailedEvent containing the ID of the
message whose delivery has failed.public void messageDelivered(ChatRoomMessageDeliveredEvent evt)
ChatRoomMessageListener
messageDelivered in interface ChatRoomMessageListenerevt - the ChatRoomMessageDeliveredEvent containing the id
of the message that has caused the event.public void messageDeliveryFailed(ChatRoomMessageDeliveryFailedEvent evt)
ChatRoomMessageListener
messageDeliveryFailed in interface ChatRoomMessageListenerevt - the ChatroomMessageDeliveryFailedEvent containing
the ID of the message whose delivery has failed.public void messageReceived(ChatRoomMessageReceivedEvent evt)
ChatRoomMessageListener
messageReceived in interface ChatRoomMessageListenerevt - the ChatRoomMessageReceivedEvent containing the newly
received message, its sender and other details.public void loadSkin()
loadSkin in interface Skinnable
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||