|
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.SendFileConversationComponent
public class SendFileConversationComponent
The SendFileConversationComponent is the component added in the chat conversation when user sends a file.
| 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 | |
|---|---|
SendFileConversationComponent(ChatPanel chatPanel,
String toContactName,
File file)
Creates a SendFileConversationComponent by specifying the parent chat panel, where this component is added, the destination contact of the transfer and file to transfer. |
|
| Method Summary | |
|---|---|
Date |
getDate()
Returns the date of the component event. |
protected String |
getProgressLabel(String bytesString)
Returns the label to show on the progress bar. |
void |
setFailed()
Change the style of the component to be failed. |
void |
setProtocolFileTransfer(FileTransfer fileTransfer)
Sets the FileTransfer object received from the protocol and corresponding to the file transfer process associated with this panel. |
void |
statusChanged(FileTransferStatusChangeEvent event)
Handles file transfer status changes. |
| 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 |
| Constructor Detail |
|---|
public SendFileConversationComponent(ChatPanel chatPanel,
String toContactName,
File file)
chatPanel - the parent chat panel, where this component is addedtoContactName - the name of the destination contactfile - the file to transfer| Method Detail |
|---|
public void setProtocolFileTransfer(FileTransfer fileTransfer)
fileTransfer - the FileTransfer object associated with this
panelpublic void statusChanged(FileTransferStatusChangeEvent event)
statusChanged in interface FileTransferStatusListenerevent - the event containing information about the changepublic void setFailed()
public Date getDate()
getDate in class ChatConversationComponentprotected String getProgressLabel(String bytesString)
getProgressLabel in class FileTransferConversationComponentbytesString - the bytes that have been transfered
|
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 | |||||||||