org.mailster.gui
Class MemoryProgressBar

java.lang.Object
  extended by org.eclipse.swt.widgets.Widget
      extended by org.eclipse.swt.widgets.Control
          extended by org.eclipse.swt.widgets.ProgressBar
              extended by org.mailster.gui.MemoryProgressBar
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class MemoryProgressBar
extends org.eclipse.swt.widgets.ProgressBar

---
Mailster (C) 2007-2009 De Oliveira Edouard

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

See  Mailster Web Site
---

MemoryProgressBar.java - A custom widget that displays available memory.

Version:
$Revision: 1.8 $, $Date: 2009/04/10 00:05:10 $
Author:
Edouard De Oliveira

Field Summary
static int DEFAULT_TIMEOUT
           
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
MemoryProgressBar(org.eclipse.swt.widgets.Composite parent, int style)
           
MemoryProgressBar(org.eclipse.swt.widgets.Composite parent, int style, int timeout)
           
 
Method Summary
protected  void checkSubclass()
           
private  void startRefreshThread(long timeout)
           
 
Methods inherited from class org.eclipse.swt.widgets.ProgressBar
computeSize, getMaximum, getMinimum, getSelection, getState, setMaximum, setMinimum, setSelection, setState
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addDragDetectListener, addFocusListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTraverseListener, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getRegion, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setEnabled, setFocus, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, setRegion, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, 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, setData, setData, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_TIMEOUT

public static final int DEFAULT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

MemoryProgressBar

public MemoryProgressBar(org.eclipse.swt.widgets.Composite parent,
                         int style)

MemoryProgressBar

public MemoryProgressBar(org.eclipse.swt.widgets.Composite parent,
                         int style,
                         int timeout)
Method Detail

startRefreshThread

private void startRefreshThread(long timeout)

checkSubclass

protected void checkSubclass()
Overrides:
checkSubclass in class org.eclipse.swt.widgets.Widget