|
||||||||||
| 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
wjhk.jupload2.gui.JUploadPanel
public class JUploadPanel
Main code for the applet (or frame) creation. It contains all creation of
necessary elements, and calls to UploadPolicy
methods to allow easy personalization.
This class remain in the current project structure, even if it's not really
used any more. The original reason for this class was that the code would
work from within a navigator (an applet) or from a standard java application.
This compatibility is no more maintained, as a lot of code suppose access to
navigator parameters. Hope it will be restored...
| Nested Class Summary |
|---|
| 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 FileUploadThread |
fileUploadThread
|
| 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 | |
|---|---|
JUploadPanel(Container containerParam,
JUploadTextArea logWindow,
UploadPolicy uploadPolicyParam)
Standard constructor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
protected void |
addFiles(File[] f,
File root)
Add files to the current file list. |
void |
doBrowse()
Reaction to a click on the browse button. |
void |
doRemove()
Reaction to a click on the remove button. |
void |
doRemoveAll()
Reaction to a click on the removeAll button. |
void |
doStartUpload()
Reaction to a click on the upload button. |
void |
doStopUpload()
Reaction to a click on the stop button. |
JButton |
getBrowseButton()
|
DnDListener |
getDndListener()
|
FilePanel |
getFilePanel()
|
JScrollPane |
getJLogWindowPane()
The component that contains the log window. |
protected JUploadTextArea |
getLogWindow()
Get the log window, that is: the component where messages (debug, info, error...) are written. |
JProgressBar |
getProgressBar()
|
JButton |
getRemoveAllButton()
|
JButton |
getRemoveButton()
|
JLabel |
getStatusLabel()
|
JButton |
getStopButton()
|
JButton |
getUploadButton()
|
(package private) boolean |
maybeOpenPopupMenu(MouseEvent mouseEvent)
This method opens the popup menu, if the mouseEvent is relevant. |
void |
mouseClicked(MouseEvent mouseEvent)
|
void |
mouseEntered(MouseEvent mouseEvent)
|
void |
mouseExited(MouseEvent mouseEvent)
|
void |
mousePressed(MouseEvent mouseEvent)
|
void |
mouseReleased(MouseEvent mouseEvent)
|
void |
setFilePanel(FilePanel filePanel)
Standard setter for filePanel. |
void |
showOrHideLogWindow()
This methods show or hides the logWindow, depending on the following applet parameters. |
| 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 FileUploadThread fileUploadThread
| Constructor Detail |
|---|
public JUploadPanel(Container containerParam,
JUploadTextArea logWindow,
UploadPolicy uploadPolicyParam)
throws Exception
containerParam - The container, where all GUI elements are to be
created.logWindow - The log window that should already have been created.
This allows putting text into it, before the effective
creation of the layout.uploadPolicyParam - The current UploadPolicy. Null if a new one must
be created.
ExceptionUploadPolicyFactory.getUploadPolicy(wjhk.jupload2.JUploadApplet)| Method Detail |
|---|
public void showOrHideLogWindow()
protected void addFiles(File[] f,
File root)
throws JUploadExceptionStopAddingFiles
JUploadExceptionStopAddingFilespublic void doBrowse()
public void doRemove()
public void doRemoveAll()
public void doStartUpload()
public void doStopUpload()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerActionListener.actionPerformed(java.awt.event.ActionEvent)public void mouseClicked(MouseEvent mouseEvent)
mouseClicked in interface MouseListenerMouseListener.mouseClicked(java.awt.event.MouseEvent)public void mouseEntered(MouseEvent mouseEvent)
mouseEntered in interface MouseListenerMouseListener.mouseEntered(java.awt.event.MouseEvent)public void mouseExited(MouseEvent mouseEvent)
mouseExited in interface MouseListenerMouseListener.mouseExited(java.awt.event.MouseEvent)public void mousePressed(MouseEvent mouseEvent)
mousePressed in interface MouseListenerMouseListener.mousePressed(java.awt.event.MouseEvent)public void mouseReleased(MouseEvent mouseEvent)
mouseReleased in interface MouseListenerMouseListener.mouseReleased(java.awt.event.MouseEvent)boolean maybeOpenPopupMenu(MouseEvent mouseEvent)
mouseEvent - The triggered mouse event.
public JButton getBrowseButton()
public DnDListener getDndListener()
public FilePanel getFilePanel()
public JScrollPane getJLogWindowPane()
protected JUploadTextArea getLogWindow()
UploadPolicy.addComponentsToJUploadPanel(JUploadPanel) method:
use the getJLogWindowPane() method instead. The
logWindow is embbeded in it.
public JProgressBar getProgressBar()
public JButton getRemoveAllButton()
public JButton getRemoveButton()
public JLabel getStatusLabel()
public JButton getStopButton()
public JButton getUploadButton()
public void setFilePanel(FilePanel filePanel)
filePanel -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||