jfileupload.transfer.client.mdesign
Class MenuBar

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JMenuBar
                  extended by jfileupload.transfer.client.mdesign.MenuBar
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.MenuElement, FilterListener, TransferListener

public class MenuBar
extends javax.swing.JMenuBar
implements java.awt.event.ActionListener, TransferListener, FilterListener

This class implements a Menu Bar.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JMenuBar
javax.swing.JMenuBar.AccessibleJMenuBar
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.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 jfileupload.transfer.client.core.TransferListener
OTHER, UPLOAD
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MenuBar(Conf cnf)
          Constructor.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Process events.
 void dataFiltered(long read)
          Data to be filtered (in bytes).
 void dataRead(long read)
          Data read from current Item.
 void filterCompleted(java.lang.Object target, java.lang.String custom)
          Filtering completed callback.
 void filterFailed(ClientException e)
          Filering failed callback.
 void filterStarted(java.lang.Object source, java.lang.String custom, java.lang.Object id)
          Filtering started.
 void filterStarting(java.lang.Object source, java.lang.String custom, java.lang.Object id)
          Filtering starting.
 javax.swing.JMenu getFileMenu()
           
 javax.swing.JMenuItem getOpenItem()
           
 void setController(TransferController controller)
           
 void setOpenItemEnabled(boolean b)
           
 void transferCancelled()
          Item transfer cancelled.
 void transferCompleted(java.lang.Object src, byte[] response)
          Item transfer completed.
 void transferDone(java.util.List files)
          Overall transfer completed.
 void transferFailed(ClientException e)
          Item transfer cancelled.
 void transferStarted(java.lang.Object source, long contentlength)
          Item transfer started.
 void transferTriggered(java.util.List files, int type)
          Overall transfer started.
 
Methods inherited from class javax.swing.JMenuBar
add, addNotify, getAccessibleContext, getComponent, getComponentAtIndex, getComponentIndex, getHelpMenu, getMargin, getMenu, getMenuCount, getSelectionModel, getSubElements, getUI, getUIClassID, isBorderPainted, isSelected, menuSelectionChanged, paintBorder, paramString, processKeyBinding, processKeyEvent, processMouseEvent, removeNotify, setBorderPainted, setHelpMenu, setMargin, setSelected, setSelectionModel, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, 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, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, 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
 
Methods inherited from class java.awt.Container
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, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
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, hide, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MenuBar

public MenuBar(Conf cnf)
Constructor.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Process events.

Specified by:
actionPerformed in interface java.awt.event.ActionListener

transferTriggered

public void transferTriggered(java.util.List files,
                              int type)
Description copied from interface: TransferListener
Overall transfer started.

Specified by:
transferTriggered in interface TransferListener

transferDone

public void transferDone(java.util.List files)
Description copied from interface: TransferListener
Overall transfer completed.

Specified by:
transferDone in interface TransferListener

transferStarted

public void transferStarted(java.lang.Object source,
                            long contentlength)
Description copied from interface: TransferListener
Item transfer started.

Specified by:
transferStarted in interface TransferListener
Parameters:
source - File to be transfered.
contentlength - length of file.

dataRead

public void dataRead(long read)
Description copied from interface: TransferListener
Data read from current Item.

Specified by:
dataRead in interface TransferListener
Parameters:
read - length of data read.

transferCompleted

public void transferCompleted(java.lang.Object src,
                              byte[] response)
Description copied from interface: TransferListener
Item transfer completed.

Specified by:
transferCompleted in interface TransferListener

transferCancelled

public void transferCancelled()
Description copied from interface: TransferListener
Item transfer cancelled.

Specified by:
transferCancelled in interface TransferListener

transferFailed

public void transferFailed(ClientException e)
Description copied from interface: TransferListener
Item transfer cancelled.

Specified by:
transferFailed in interface TransferListener

dataFiltered

public void dataFiltered(long read)
Description copied from interface: FilterListener
Data to be filtered (in bytes).

Specified by:
dataFiltered in interface FilterListener

filterStarting

public void filterStarting(java.lang.Object source,
                           java.lang.String custom,
                           java.lang.Object id)
Description copied from interface: FilterListener
Filtering starting.

Specified by:
filterStarting in interface FilterListener

filterStarted

public void filterStarted(java.lang.Object source,
                          java.lang.String custom,
                          java.lang.Object id)
Description copied from interface: FilterListener
Filtering started.

Specified by:
filterStarted in interface FilterListener
custom - message.

filterCompleted

public void filterCompleted(java.lang.Object target,
                            java.lang.String custom)
Description copied from interface: FilterListener
Filtering completed callback.

Specified by:
filterCompleted in interface FilterListener
custom - message

filterFailed

public void filterFailed(ClientException e)
Description copied from interface: FilterListener
Filering failed callback.

Specified by:
filterFailed in interface FilterListener

setController

public void setController(TransferController controller)

getOpenItem

public javax.swing.JMenuItem getOpenItem()

getFileMenu

public javax.swing.JMenu getFileMenu()

setOpenItemEnabled

public void setOpenItemEnabled(boolean b)