public class DownloaderPanel
extends org.jdesktop.swingx.JXPanel
implements java.awt.event.ActionListener
| Modifier and Type | Class and Description |
|---|---|
static class |
DownloaderPanel.State |
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponent| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ACTION_DOWNLOAD |
static java.lang.String |
ACTION_STOP |
static javax.swing.ImageIcon |
ICON_DOWNLOAD |
static javax.swing.ImageIcon |
ICON_STOP |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
DownloaderPanel() |
DownloaderPanel(FtpDownloader client,
org.apache.commons.net.ftp.FTPFile ftpFile,
java.lang.String uri,
java.io.File outFile,
java.util.HashMap<java.lang.String,org.apache.commons.net.ftp.FTPFile> directoryContentsList,
java.util.concurrent.ScheduledThreadPoolExecutor threadScheduledPool,
QueueWorkTickets<DownloaderPanel> queueWorkTickets) |
DownloaderPanel(FtpDownloader client,
org.apache.commons.net.ftp.FTPFile ftpFile,
java.lang.String uri,
java.io.File outFile,
java.util.concurrent.ScheduledThreadPoolExecutor threadScheduledPool,
QueueWorkTickets<DownloaderPanel> queueWorkTickets) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionDownload()
Called to start the download
|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
actionStop()
Called to stop the download
|
void |
actionStopAndInvalidate()
Called to stop the download and invalidate the component by removing the FTP client.
|
boolean |
addStateChangeListener(DownloadStateListener stateListener) |
protected void |
doStop() |
protected void |
doStopAndInvalidate() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
DownloaderPanel.State |
getState() |
java.lang.String |
getUri() |
int |
hashCode() |
static void |
main(java.lang.String[] args) |
boolean |
removeStateChangeListener() |
java.lang.String |
toString() |
getAlpha, getBackgroundPainter, getEffectiveAlpha, getPainterChangeListener, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableHeightHint, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollableWidthHint, isInheritAlpha, isPaintBorderInsets, paint, paintComponent, setAlpha, setBackground, setBackgroundPainter, setInheritAlpha, setPaintBorderInsets, setScrollableHeightHint, setScrollableTracksViewportHeight, setScrollableTracksViewportWidth, setScrollableWidthHintgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, paintBorder, paintChildren, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, 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, validateTreeaction, 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, 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, transferFocus, transferFocusBackward, transferFocusUpCyclepublic static final javax.swing.ImageIcon ICON_STOP
public static final javax.swing.ImageIcon ICON_DOWNLOAD
public static final java.lang.String ACTION_STOP
public static final java.lang.String ACTION_DOWNLOAD
public DownloaderPanel()
public DownloaderPanel(FtpDownloader client, org.apache.commons.net.ftp.FTPFile ftpFile, java.lang.String uri, java.io.File outFile, java.util.concurrent.ScheduledThreadPoolExecutor threadScheduledPool, QueueWorkTickets<DownloaderPanel> queueWorkTickets)
client - id - uri - public DownloaderPanel(FtpDownloader client, org.apache.commons.net.ftp.FTPFile ftpFile, java.lang.String uri, java.io.File outFile, java.util.HashMap<java.lang.String,org.apache.commons.net.ftp.FTPFile> directoryContentsList, java.util.concurrent.ScheduledThreadPoolExecutor threadScheduledPool, QueueWorkTickets<DownloaderPanel> queueWorkTickets)
client - ftpFile - uri - outFile - directoryContentsList - public java.lang.String toString()
toString in class java.awt.Componentpublic java.lang.String getName()
getName in class java.awt.Componentpublic java.lang.String getUri()
public DownloaderPanel.State getState()
public boolean addStateChangeListener(DownloadStateListener stateListener)
stateListener - Only one is supported.public boolean removeStateChangeListener()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void actionDownload()
public void actionStop()
public void actionStopAndInvalidate()
protected void doStop()
protected void doStopAndInvalidate()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static void main(java.lang.String[] args)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.