org.zaval.lw
Class LwSpeedButton

java.lang.Object
  |
  +--org.zaval.util.ValidationObject
        |
        +--org.zaval.lw.LwCanvas
              |
              +--org.zaval.lw.LwStButton
                    |
                    +--org.zaval.lw.LwSpeedButton
All Implemented Interfaces:
Drawable, java.util.EventListener, Layoutable, LwComponent, LwMouseListener, LwMouseMotionListener, java.lang.Runnable, Validationable

public class LwSpeedButton
extends LwStButton

This is state button component that allows to customize acceleration for repeatable action event generation.


Fields inherited from class org.zaval.lw.LwStButton
ST_DISABLED, ST_ONSURFACE, ST_OUTSURFACE, ST_PRESSED
 
Fields inherited from class org.zaval.lw.LwCanvas
bits, height, insets, parent, psHeight, psWidth, skins, width, x, y
 
Fields inherited from class org.zaval.util.ValidationObject
isValidFlag
 
Constructor Summary
LwSpeedButton()
           
 
Method Summary
 void mousePressed(LwMouseEvent e)
          Invoked when the mouse button has been pressed on a light weight component.
 void run()
           
 void setFastTime(int ft)
          Sets the acceleration time.
 void setTriggerCounter(int tc)
          Sets the trigger counter.
 
Methods inherited from class org.zaval.lw.LwStButton
addActionListener, endDragged, fireByPress, getState, isFireByPress, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, perform, removeActionListener, setEnabled, setState, startDragged, stateChanged, sync, viewManChanged
 
Methods inherited from class org.zaval.lw.LwCanvas
calcPreferredSize, canHaveFocus, getBackground, getBounds, getHeight, getInsets, getLocation, getLwComponentAt, getLwParent, getOrigin, getPreferredSize, getSize, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isOpaque, isVisible, paint, recalc, repaint, repaint, requestFocus, setBackground, setInsets, setLocation, setLwParent, setOpaque, setPSSize, setSize, setViewMan, setVisible, toString, update, validate, vrp
 
Methods inherited from class org.zaval.util.ValidationObject
isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.zaval.util.Validationable
isValid
 

Constructor Detail

LwSpeedButton

public LwSpeedButton()
Method Detail

setFastTime

public void setFastTime(int ft)
Sets the acceleration time.
Parameters:
ft/code> - the acceleration time.

setTriggerCounter

public void setTriggerCounter(int tc)
Sets the trigger counter. The counter defines the number of generated action events after that the fast time should be set as the repeatable time.
Parameters:
tc/code> - the trigger counter.

mousePressed

public void mousePressed(LwMouseEvent e)
Description copied from interface: LwMouseListener
Invoked when the mouse button has been pressed on a light weight component.
Overrides:
mousePressed in class LwStButton
Following copied from interface: org.zaval.lw.event.LwMouseListener
Parameters:
e - the specified mouse event.

run

public void run()
Overrides:
run in class LwStButton


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org