|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.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 |
---|
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(JUploadTextArea logWindow,
UploadPolicy uploadPolicyParam)
Standard constructor. |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
clearLogWindow()
Clear the current log window content. |
void |
copyLogWindow()
Copy the log window content into the clipboard. |
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()
|
wjhk.jupload2.gui.filepanel.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 |
getPreparationProgressBar()
|
JButton |
getRemoveAllButton()
|
JButton |
getRemoveButton()
|
JLabel |
getStatusLabel()
|
JButton |
getStopButton()
|
JButton |
getUploadButton()
|
JProgressBar |
getUploadProgressBar()
|
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(wjhk.jupload2.gui.filepanel.FilePanel filePanel)
Standard setter for filePanel. |
void |
showOrHideLogWindow()
This methods show or hides the logWindow, depending on the following applet parameters. |
void |
updateButtonState()
Select or unselect the applet buttons |
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 JUploadPanel(JUploadTextArea logWindow, UploadPolicy uploadPolicyParam) throws Exception
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.
Exception
Method Detail |
---|
public void showOrHideLogWindow()
public void doBrowse()
public void doRemove()
public void doRemoveAll()
public void doStartUpload()
public void doStopUpload()
public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public void mouseClicked(MouseEvent mouseEvent)
mouseClicked
in interface MouseListener
MouseListener.mouseClicked(java.awt.event.MouseEvent)
public void mouseEntered(MouseEvent mouseEvent)
mouseEntered
in interface MouseListener
MouseListener.mouseEntered(java.awt.event.MouseEvent)
public void mouseExited(MouseEvent mouseEvent)
mouseExited
in interface MouseListener
MouseListener.mouseExited(java.awt.event.MouseEvent)
public void mousePressed(MouseEvent mouseEvent)
mousePressed
in interface MouseListener
MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mouseReleased(MouseEvent mouseEvent)
mouseReleased
in interface MouseListener
MouseListener.mouseReleased(java.awt.event.MouseEvent)
public boolean maybeOpenPopupMenu(MouseEvent mouseEvent)
mouseEvent
- The triggered mouse event.
public void updateButtonState()
public void clearLogWindow()
public void copyLogWindow()
public JButton getBrowseButton()
public DnDListener getDndListener()
public wjhk.jupload2.gui.filepanel.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 getPreparationProgressBar()
public JProgressBar getUploadProgressBar()
public JButton getRemoveAllButton()
public JButton getRemoveButton()
public JLabel getStatusLabel()
public JButton getStopButton()
public JButton getUploadButton()
public void setFilePanel(wjhk.jupload2.gui.filepanel.FilePanel filePanel)
filePanel
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |