ElegantJ Data Entry Masks Java API Specification v1.1

com.elegantj.awt.spinner
Class AWTContinuousActionButton

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Button
          extended bycom.elegantj.awt.spinner.AWTContinuousActionButton
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.io.Externalizable, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable, TimerListener
Direct Known Subclasses:
AWTDirectionButton

public class AWTContinuousActionButton
extends java.awt.Button
implements java.io.Externalizable, java.awt.event.MouseListener, TimerListener

Overriden the awt Button

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Button
java.awt.Button.AccessibleAWTButton
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  int m_nSkipNTicks
           
 Timer m_timer
           
static long ms_lDefaultDelay
          default delay (the time for which the button must be kept pressed)
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AWTContinuousActionButton()
           
 
Method Summary
 long getDelay()
          Method which returns the delay
 boolean isFocusTraversable()
          Overriden isFocusTraversable
 boolean isMousePressed()
          Method which returns the is mouse pressed
 void mouseClicked(java.awt.event.MouseEvent evt)
          Implementation of the MouseListener
 void mouseDragged(java.awt.event.MouseEvent evt)
          Implementation of the MouseListener
 void mouseEntered(java.awt.event.MouseEvent evt)
          Implementation of the MouseListener
 void mouseExited(java.awt.event.MouseEvent evt)
          Implementation of the MouseListener
 void mousePressed(java.awt.event.MouseEvent evt)
          Implementation of the MouseListener
 void mouseReleased(java.awt.event.MouseEvent event)
          Implementation of the MouseListener
 void readExternal(java.io.ObjectInput in)
          Implementation of the Externalizable
 void setBackground(java.awt.Color background)
          Method which sets the background for the button
 void setDelay(long delay)
          Method which sets the delay
 void setEnabled(boolean bEnabled)
          Method which sets the enability
 void setForeground(java.awt.Color foreground)
          Method which sets the foreground for the button
 void timerStarted(TimerEvent evt)
          Implementation of the TimerListener
 void timerStopped(TimerEvent evt)
          Implementation of the TimerListener
 void timerTick(TimerEvent evt)
          Implementation of the TimerListener
 void writeExternal(java.io.ObjectOutput out)
          Implementation of the Externalizable
 
Methods inherited from class java.awt.Button
addActionListener, addNotify, getAccessibleContext, getActionCommand, getActionListeners, getLabel, getListeners, paramString, processActionEvent, processEvent, removeActionListener, setActionCommand, setLabel
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ms_lDefaultDelay

public static final long ms_lDefaultDelay
default delay (the time for which the button must be kept pressed)

See Also:
Constant Field Values

m_timer

public Timer m_timer

m_nSkipNTicks

protected int m_nSkipNTicks
Constructor Detail

AWTContinuousActionButton

public AWTContinuousActionButton()
Method Detail

setDelay

public void setDelay(long delay)
Method which sets the delay

Parameters:
delay - The dealy

getDelay

public long getDelay()
Method which returns the delay

Returns:
delay The dealy

setForeground

public void setForeground(java.awt.Color foreground)
Method which sets the foreground for the button

Parameters:
foreground - The foreground for the button

setBackground

public void setBackground(java.awt.Color background)
Method which sets the background for the button

Parameters:
background - The background for the button

setEnabled

public void setEnabled(boolean bEnabled)
Method which sets the enability

Parameters:
bEnabled - The enability for the button

isMousePressed

public boolean isMousePressed()
Method which returns the is mouse pressed


mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
Implementation of the MouseListener

Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent event)
Implementation of the MouseListener

Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Implementation of the MouseListener

Specified by:
mouseClicked in interface java.awt.event.MouseListener

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent evt)
Implementation of the MouseListener


mouseExited

public void mouseExited(java.awt.event.MouseEvent evt)
Implementation of the MouseListener

Specified by:
mouseExited in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent evt)
Implementation of the MouseListener

Specified by:
mouseEntered in interface java.awt.event.MouseListener

timerTick

public void timerTick(TimerEvent evt)
Implementation of the TimerListener

Specified by:
timerTick in interface TimerListener

timerStarted

public void timerStarted(TimerEvent evt)
Implementation of the TimerListener

Specified by:
timerStarted in interface TimerListener

timerStopped

public void timerStopped(TimerEvent evt)
Implementation of the TimerListener

Specified by:
timerStopped in interface TimerListener

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Implementation of the Externalizable

Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Implementation of the Externalizable

Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException

isFocusTraversable

public boolean isFocusTraversable()
Overriden isFocusTraversable


ElegantJ Data Entry Masks Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.