org.vafada.swtcalendar
Class RepeatingButton

java.lang.Object
  extended byorg.eclipse.swt.widgets.Widget
      extended byorg.eclipse.swt.widgets.Control
          extended byorg.eclipse.swt.widgets.Button
              extended byorg.vafada.swtcalendar.RepeatingButton
All Implemented Interfaces:
org.eclipse.swt.graphics.Drawable

public class RepeatingButton
extends org.eclipse.swt.widgets.Button

Push button that repeats selection event based on timer.


Field Summary
static int DEFAULT_INITIAL_REPEAT_DELAY
           
static int DEFAULT_REPEAT_DELAY
           
 
Fields inherited from class org.eclipse.swt.widgets.Control
handle
 
Constructor Summary
RepeatingButton(org.eclipse.swt.widgets.Composite parent, int style)
           
 
Method Summary
 void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
           
protected  void checkSubclass()
           
 int getInitialRepeatDelay()
           
 int getRepeatDelay()
           
 void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
           
 void setInitialRepeatDelay(int initialRepeatDelay)
           
 void setRepeatDelay(int repeatDelay)
           
 
Methods inherited from class org.eclipse.swt.widgets.Button
computeSize, getAlignment, getImage, getSelection, getText, setAlignment, setImage, setSelection, setText
 
Methods inherited from class org.eclipse.swt.widgets.Control
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBounds, setBounds, setCapture, setCursor, setEnabled, setFocus, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setRedraw, 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, 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_INITIAL_REPEAT_DELAY

public static final int DEFAULT_INITIAL_REPEAT_DELAY
See Also:
Constant Field Values

DEFAULT_REPEAT_DELAY

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

RepeatingButton

public RepeatingButton(org.eclipse.swt.widgets.Composite parent,
                       int style)
Parameters:
parent - Parent container.
style - Button style.
Method Detail

addSelectionListener

public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)

removeSelectionListener

public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)

getInitialRepeatDelay

public int getInitialRepeatDelay()
Returns:
Returns the initial repeat delay in milliseconds.

setInitialRepeatDelay

public void setInitialRepeatDelay(int initialRepeatDelay)
Parameters:
initialRepeatDelay - The new initial repeat delay in milliseconds.

getRepeatDelay

public int getRepeatDelay()
Returns:
Returns the repeat delay in millisecons.

setRepeatDelay

public void setRepeatDelay(int repeatDelay)
Parameters:
repeatDelay - The new repeat delay in milliseconds.

checkSubclass

protected void checkSubclass()