|
|||||||||
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
dluploadclient.DLUploadClientGUI
public class DLUploadClientGUI
Interface grahique de l'application Client dl.free.fr
Copyright 2008, Maurer Gilles
This file is part of Client dl.free.fr.
Client dl.free.fr is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Client dl.free.fr is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with Client dl.free.fr. If not, see
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.BaselineResizeBehavior |
Field Summary | |
---|---|
static int |
ADDINGFILES
Etat de l'application : Upload terminé |
static int |
CANCELLINGTRANSFER
Etat de l'application : Annulation en cours |
static int |
HORIZONTAL_PADDING
Marge horizontale minimale des composants |
static int |
UPLOADED
Etat de l'application : Upload terminé |
static int |
UPLOADING
Etat de l'application : En cours d'upload |
static int |
VERTICAL_PADDING
Marge verticale minimale des composants |
static int |
WAITING
Etat de l'application : En attente |
static double |
WEIGHTX_BORDER
Poids horizontal de la colonne : colonne en bordure |
static double |
WEIGHTX_CENTER
Poids horizontal de la colonne : colonne centrale |
static double |
WEIGHTY_LOG
Poids vertical de la colonne : colonne du Log |
static double |
WEIGHTY_NORMAL
Poids vertical de la colonne : colonne normale |
static String |
WINDOWTITLE
Titre de la fenêtre |
Fields inherited from class javax.swing.JFrame |
---|
EXIT_ON_CLOSE |
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 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 | |
---|---|
DLUploadClientGUI()
Constructeur de la classe de l'interface utilisateur |
Method Summary | |
---|---|
void |
addFile(File[] files)
Permet d'ajouter des fichiers avec un tableau d'objet de type File. |
void |
addLogFTPLine(String line)
Ajout une ligne à la fin du log FTP. |
int |
getApplicationState()
Retourne un int correspondant au statut de l'application |
JCheckBox |
getJChkBoxPassword()
Retoure une référence à la case à cocher pour afficher / cacher le mot de passe sous forme d'un objet de type JCheckBox. |
JTable |
getJtableFileList()
Rertoune une référence au composant qui permet d'afficher le contenu de la liste des fichiers. |
JTextArea |
getjtxtLogFTP()
Retourne un object du type JTextArea pour accéder à l'objet contenant le log FTP |
JPasswordField |
getJtxtPassword()
Retourne une référence au champ de texte contenant le mot de passe. |
String |
getMail()
Retourne un objet String contenant l'actuel adresse e-mail. |
String |
getPassword()
Retourne un objet String contenant l'actuel mot de passe. |
long |
getRestartSize()
Renvoi un nombre en type natif long qui contient l'octet de début du transfert du fichier en cours. |
ThreadUpload |
getTrdUpload()
Retour un objet ThreadUpload qui est l'unité d'exécution qui gère l'upload des fichiers |
Vector<UploadFile> |
getVectFileList()
Retourne la liste des fichiers ajouté à l'application |
Vector<UploadFile> |
getVectFileListCancelled()
Retourne la liste des fichiers annulé par l'utilisateur |
Vector<UploadFile> |
getVectFileListToUpload()
Retourne un objet de type Vector contenant la liste des fichiers non encore uploadé |
Vector<UploadFile> |
getVectFileListUploaded()
Retourne la liste des fichiers déja uploadé |
boolean |
isJtableFileListSomethinSelected()
Retourne |
void |
jtableFileListRefresh()
Permet de notifier à la table de fichier une modification de son contenu |
void |
launchEventAndStatusManager()
Fonction qui va mettre à jour le statut de tous les composants selon l'état actuel de l'application. |
static String |
sanitizeFilename(String name)
Retourne un objet String qui contient une version compatible avec dl.free.fr du nom de fichier entré |
void |
setApplicationState(int state)
Met à jour le statut de l'application |
void |
setCurrentUploadProgressBarValue(double value)
Modifie le pourcentage de progression de la barre de progression |
void |
setGlobalProgressBarValue(double value)
|
void |
setJtableFileListSomethinSelected(boolean jtableFileListSomethinSelected)
Met à jour la variable qui undique si quelquechose a été sélectionné dans la table des fichiers |
void |
setRestartSize(long size)
Permet de mettre à jour l'octet de début de transfert pour le fichier en cours. |
void |
setTrdUpload(ThreadUpload trdUpload)
Permet de mettre à jour la référence vers l'unité d'exécution d'upload de fichier. |
static void |
writeToClipboard(String writeMe)
Ecrit le contenu du paramètre writeMe dans le presse papier |
Methods inherited from class javax.swing.JFrame |
---|
getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setTransferHandler, update |
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 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
public static final int WAITING
public static final int UPLOADING
public static final int UPLOADED
public static final int ADDINGFILES
public static final int CANCELLINGTRANSFER
public static final int VERTICAL_PADDING
public static final int HORIZONTAL_PADDING
public static final double WEIGHTY_NORMAL
public static final double WEIGHTX_BORDER
public static final double WEIGHTY_LOG
public static final double WEIGHTX_CENTER
public static final String WINDOWTITLE
Constructor Detail |
---|
public DLUploadClientGUI()
Method Detail |
---|
public String getMail()
public String getPassword()
public ThreadUpload getTrdUpload()
public void setCurrentUploadProgressBarValue(double value)
value
- Valeur décimale de 0 à 100public void setGlobalProgressBarValue(double value)
public void setTrdUpload(ThreadUpload trdUpload)
trdUpload
- La référence vers la nouvelle unité d'exécutionpublic void setRestartSize(long size)
size
- octet de début du transfertpublic long getRestartSize()
public void addLogFTPLine(String line)
line
- La ligne à ajouterpublic JTextArea getjtxtLogFTP()
public static String sanitizeFilename(String name)
name
- Le mom de fichier à rendre compatible
public static void writeToClipboard(String writeMe)
writeMe
- Le texte à mettre dans le presse papierpublic int getApplicationState()
public void setApplicationState(int state)
state
- Statut de l'application à appliquerpublic JCheckBox getJChkBoxPassword()
public JPasswordField getJtxtPassword()
public void addFile(File[] files)
files
- Le tableau de fichiers à ajouterpublic boolean isJtableFileListSomethinSelected()
public void setJtableFileListSomethinSelected(boolean jtableFileListSomethinSelected)
jtableFileListSomethinSelected
- vrai si quelquechose est sélectionné dans la table des fichiers, false sinonpublic void launchEventAndStatusManager()
public Vector<UploadFile> getVectFileList()
public void jtableFileListRefresh()
public JTable getJtableFileList()
public Vector<UploadFile> getVectFileListToUpload()
Vector
contenant la liste des fichiers non encore uploadé
public Vector<UploadFile> getVectFileListUploaded()
public Vector<UploadFile> getVectFileListCancelled()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |