public class JUploadPanelImpl extends JPanel implements ActionListener, JUploadPanel, MouseListener
JUploadPanel
interface. It contains the actual creation of the GUI items.JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
JUploadPanelImpl(JUploadTextArea logWindow,
UploadPolicy uploadPolicyParam)
Standard constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
ActionListener |
getActionListener() |
JButton |
getBrowseButton() |
DnDListener |
getDndListener() |
FilePanel |
getFilePanel() |
FileUploadManagerThread |
getFileUploadManagerThread() |
JComponent |
getJComponent()
Returns the awt container, that contains all the objects of the GUI.
|
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.
|
MouseListener |
getMouseListener()
The component that manages the mouse.
|
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(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
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTransferHandler
public JUploadPanelImpl(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
public void showOrHideLogWindow()
showOrHideLogWindow
in interface JUploadPanel
public void doBrowse()
doBrowse
in interface JUploadPanel
public void doRemove()
doRemove
in interface JUploadPanel
public void doRemoveAll()
doRemoveAll
in interface JUploadPanel
public void doStartUpload()
doStartUpload
in interface JUploadPanel
public void doStopUpload()
doStopUpload
in interface JUploadPanel
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)
maybeOpenPopupMenu
in interface JUploadPanel
mouseEvent
- The triggered mouse event.public void updateButtonState()
updateButtonState
in interface JUploadPanel
public void clearLogWindow()
clearLogWindow
in interface JUploadPanel
public void copyLogWindow()
copyLogWindow
in interface JUploadPanel
public ActionListener getActionListener()
getActionListener
in interface JUploadPanel
public JButton getBrowseButton()
getBrowseButton
in interface JUploadPanel
public JComponent getJComponent()
getJComponent
in interface JUploadPanel
public DnDListener getDndListener()
getDndListener
in interface JUploadPanel
public FilePanel getFilePanel()
getFilePanel
in interface JUploadPanel
public JScrollPane getJLogWindowPane()
getJLogWindowPane
in interface JUploadPanel
protected JUploadTextArea getLogWindow()
UploadPolicy.addComponentsToJUploadPanel(JUploadPanel)
method: use the getJLogWindowPane()
method instead. The logWindow
is embbeded in it.
public MouseListener getMouseListener()
getMouseListener
in interface JUploadPanel
public JProgressBar getPreparationProgressBar()
getPreparationProgressBar
in interface JUploadPanel
public JProgressBar getUploadProgressBar()
getUploadProgressBar
in interface JUploadPanel
public JButton getRemoveAllButton()
getRemoveAllButton
in interface JUploadPanel
public JButton getRemoveButton()
getRemoveButton
in interface JUploadPanel
public JLabel getStatusLabel()
getStatusLabel
in interface JUploadPanel
public JButton getStopButton()
getStopButton
in interface JUploadPanel
public JButton getUploadButton()
getUploadButton
in interface JUploadPanel
public void setFilePanel(FilePanel filePanel)
setFilePanel
in interface JUploadPanel
public FileUploadManagerThread getFileUploadManagerThread()
getFileUploadManagerThread
in interface JUploadPanel
Copyright © 2015. All rights reserved.