org.gudy.azureus2.ui.swt
Class AZProgressBar

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.Scrollable
              extended by org.eclipse.swt.widgets.Composite
                  extended by org.gudy.azureus2.ui.swt.AZProgressBar
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class AZProgressBar
extends org.eclipse.swt.widgets.Composite

A ProgressBar implementation that allows the on-the-fly switching between determinate and indeterminate modes.

Author:
knguyen

Field Summary
 
Fields inherited from class org.eclipse.swt.widgets.Control
view
 
Constructor Summary
AZProgressBar(org.eclipse.swt.widgets.Composite parent)
          Construct a progress bar initialized as incremental and no input button
AZProgressBar(org.eclipse.swt.widgets.Composite parent, boolean isIndeterminate)
           
 
Method Summary
 void done()
           
 int getMaximum()
           
 int getMinimum()
           
 int getSelection()
           
 boolean isIndeterminate()
           
 void setIndeterminate(boolean isIndeterminate)
           
 void setMaximum(int value)
           
 void setMinimum(int value)
           
 void setPercentage(int percentage)
           
 void setSelection(int value)
           
 
Methods inherited from class org.eclipse.swt.widgets.Composite
changed, checkSubclass, computeSize, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList
 
Methods inherited from class org.eclipse.swt.widgets.Scrollable
computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
 
Methods inherited from class org.eclipse.swt.widgets.Widget
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AZProgressBar

public AZProgressBar(org.eclipse.swt.widgets.Composite parent)
Construct a progress bar initialized as incremental and no input button

Parameters:
parent -

AZProgressBar

public AZProgressBar(org.eclipse.swt.widgets.Composite parent,
                     boolean isIndeterminate)
Parameters:
parent -
isIndeterminate -
useInputButton - determines whether the inputButton is available or not
image - an Image to display; may be null
Method Detail

setIndeterminate

public void setIndeterminate(boolean isIndeterminate)

done

public void done()

setSelection

public void setSelection(int value)

setPercentage

public void setPercentage(int percentage)

getMaximum

public int getMaximum()

getMinimum

public int getMinimum()

getSelection

public int getSelection()

setMaximum

public void setMaximum(int value)

setMinimum

public void setMinimum(int value)

isIndeterminate

public boolean isIndeterminate()