|
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
javax.swing.JComponent
javax.swing.JPanel
net.java.sip.communicator.impl.gui.main.chat.ChatConversationComponent
net.java.sip.communicator.impl.gui.main.chat.filetransfer.FileTransferConversationComponent
net.java.sip.communicator.impl.gui.main.chat.filetransfer.ReceiveFileConversationComponent
public class ReceiveFileConversationComponent
The ReceiveFileConversationComponent is the component shown in the conversation area of the chat window to display a incoming file transfer.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatConversationComponent |
|---|
ChatConversationComponent.ChatConversationButton |
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| 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 net.java.sip.communicator.impl.gui.main.chat.filetransfer.FileTransferConversationComponent |
|---|
acceptButton, cancelButton, fileLabel, IMAGE_HEIGHT, IMAGE_WIDTH, imageLabel, openFileButton, openFolderButton, progressBar, rejectButton, retryButton, titleLabel |
| Fields inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatConversationComponent |
|---|
constraints, resources |
| 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 | |
|---|---|
ReceiveFileConversationComponent(ChatPanel chatPanel,
OperationSetFileTransfer opSet,
IncomingFileTransferRequest request,
Date date)
Creates a ReceiveFileConversationComponent. |
|
| Method Summary | |
|---|---|
void |
fileTransferCreated(FileTransferCreatedEvent event)
Called when a FileTransferCreatedEvent has been received. |
void |
fileTransferRequestCanceled(FileTransferRequestEvent event)
Called when an IncomingFileTransferRequest has been canceled from the contact who sent it. |
void |
fileTransferRequestReceived(FileTransferRequestEvent event)
Called when a new IncomingFileTransferRequest has been received. |
void |
fileTransferRequestRejected(FileTransferRequestEvent event)
Called when an IncomingFileTransferRequest has been rejected. |
Date |
getDate()
Returns the date of the component event. |
protected String |
getProgressLabel(String bytesString)
Returns the label to show on the progress bar. |
void |
statusChanged(FileTransferStatusChangeEvent event)
Handles status changes in file transfer. |
| Methods inherited from class net.java.sip.communicator.impl.gui.main.chat.filetransfer.FileTransferConversationComponent |
|---|
actionPerformed, getFileLabel, getFileLabel, hideProgressRelatedComponents, loadSkin, progressChanged, setCompletedDownloadFile, setFileTransfer, showErrorMessage |
| Methods inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatConversationComponent |
|---|
getDateString, openFile, paintComponent, setWarningStyle |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.event.ActionListener |
|---|
actionPerformed |
| Constructor Detail |
|---|
public ReceiveFileConversationComponent(ChatPanel chatPanel,
OperationSetFileTransfer opSet,
IncomingFileTransferRequest request,
Date date)
chatPanel - the chat panelopSet - the OperationSetFileTransferrequest - the IncomingFileTransferRequest
associated with this componentdate - the date| Method Detail |
|---|
public void statusChanged(FileTransferStatusChangeEvent event)
statusChanged in interface FileTransferStatusListenerevent - the event containing information about the changepublic Date getDate()
getDate in class ChatConversationComponentprotected String getProgressLabel(String bytesString)
getProgressLabel in class FileTransferConversationComponentbytesString - the bytes that have been transfered
public void fileTransferCreated(FileTransferCreatedEvent event)
FileTransferListener
fileTransferCreated in interface FileTransferListenerevent - the FileTransferCreatedEvent containing the newly
received file transfer and other details.public void fileTransferRequestCanceled(FileTransferRequestEvent event)
FileTransferListener
fileTransferRequestCanceled in interface FileTransferListenerevent - the FileTransferRequestEvent containing the
request which was canceled.public void fileTransferRequestReceived(FileTransferRequestEvent event)
FileTransferListener
fileTransferRequestReceived in interface FileTransferListenerevent - the FileTransferRequestEvent containing the newly
received request and other details.public void fileTransferRequestRejected(FileTransferRequestEvent event)
FileTransferListener
fileTransferRequestRejected in interface FileTransferListenerevent - the FileTransferRequestEvent containing the
received request which was rejected.
|
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 | |||||||||