|
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
public abstract class FileTransferConversationComponent
The FileTransferConversationComponent is the parent of all file conversation components - for incoming, outgoing and history file transfers.
| 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 | |
|---|---|
protected ChatConversationComponent.ChatConversationButton |
acceptButton
The accept button. |
protected ChatConversationComponent.ChatConversationButton |
cancelButton
The cancel button. |
protected JLabel |
fileLabel
The file label. |
protected static int |
IMAGE_HEIGHT
Image default height. |
protected static int |
IMAGE_WIDTH
Image default width. |
protected FileImageLabel |
imageLabel
The image label. |
protected ChatConversationComponent.ChatConversationButton |
openFileButton
The open file button. |
protected ChatConversationComponent.ChatConversationButton |
openFolderButton
The open folder button. |
protected JProgressBar |
progressBar
The progress bar. |
protected ChatConversationComponent.ChatConversationButton |
rejectButton
The reject button. |
protected ChatConversationComponent.ChatConversationButton |
retryButton
The retry button. |
protected JLabel |
titleLabel
The title label. |
| 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 | |
|---|---|
FileTransferConversationComponent(Window parentWindow)
Creates a file conversation component. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
Handles buttons action events. |
protected String |
getFileLabel(File file)
Returns the string, showing information for the given file. |
protected String |
getFileLabel(String fileName,
long fileSize)
Returns the string, showing information for the given file. |
protected abstract String |
getProgressLabel(String bytesString)
Returns the label to show on the progress bar. |
protected void |
hideProgressRelatedComponents()
Hides all progress related components. |
void |
loadSkin()
Reload images and colors. |
void |
progressChanged(FileTransferProgressEvent event)
Updates progress bar progress line every time a progress event has been received. |
protected void |
setCompletedDownloadFile(File file)
Sets the download file. |
protected void |
setFileTransfer(FileTransfer fileTransfer,
long transferredFileSize)
Sets the file transfer. |
protected void |
showErrorMessage(String message)
Shows the given error message in the error area of this component. |
| Methods inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatConversationComponent |
|---|
getDate, 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 |
| Field Detail |
|---|
protected static final int IMAGE_WIDTH
protected static final int IMAGE_HEIGHT
protected final FileImageLabel imageLabel
protected final JLabel titleLabel
protected final JLabel fileLabel
protected final ChatConversationComponent.ChatConversationButton cancelButton
protected final ChatConversationComponent.ChatConversationButton retryButton
protected final ChatConversationComponent.ChatConversationButton acceptButton
protected final ChatConversationComponent.ChatConversationButton rejectButton
protected final ChatConversationComponent.ChatConversationButton openFileButton
protected final ChatConversationComponent.ChatConversationButton openFolderButton
protected final JProgressBar progressBar
| Constructor Detail |
|---|
public FileTransferConversationComponent(Window parentWindow)
| Method Detail |
|---|
protected void showErrorMessage(String message)
showErrorMessage in class ChatConversationComponentmessage - the message to showprotected void setCompletedDownloadFile(File file)
file - the file that has been downloaded or sent
protected void setFileTransfer(FileTransfer fileTransfer,
long transferredFileSize)
fileTransfer - the file transfertransferredFileSize - the size of the transferred filepublic void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerevt - the ActionEvent that notified uspublic void progressChanged(FileTransferProgressEvent event)
progressChanged in interface FileTransferProgressListenerevent - the FileTransferProgressEvent that notified usprotected String getFileLabel(File file)
file - the file
protected String getFileLabel(String fileName,
long fileSize)
fileName - the name of the filefileSize - the size of the file
protected void hideProgressRelatedComponents()
protected abstract String getProgressLabel(String bytesString)
bytesString - the bytes that have been transfered
public void loadSkin()
loadSkin in interface SkinnableloadSkin in class ChatConversationComponent
|
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 | |||||||||