org.zaval.lw
Class LwSpeedButton
java.lang.Object
|
+--org.zaval.lw.LwCanvas
|
+--org.zaval.lw.LwStButton
|
+--org.zaval.lw.LwSpeedButton
- All Implemented Interfaces:
- java.util.EventListener, Layoutable, LwComponent, LwMouseListener, LwMouseMotionListener, java.lang.Runnable, Validationable
- public class LwSpeedButton
- extends LwStButton
This is state button component that allows you to customize acceleration for repeatable action
event generation.
| Fields inherited from class org.zaval.lw.LwCanvas |
bits, bottom, height, isValidValue, left, parent, psHeight, psWidth, right, skins, temporary, top, width, x, y |
| Methods inherited from class org.zaval.lw.LwStButton |
addActionListener, addStateListener, endDragged, fireByPress, getState, isFireByPress, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, perform, removeActionListener, removeStateListener, setEnabled, setState, startDragged, stateChanged, sync, viewManChanged |
| Methods inherited from class org.zaval.lw.LwCanvas |
calcInsets, calcPreferredSize, canHaveFocus, customize, cvp, getBackground, getBottom, getBounds, getHeight, getInsets, getLeft, getLocation, getLwComponentAt, getLwParent, getOrigin, getPreferredSize, getPSImpl, getRight, getSize, getTop, getViewMan, getVisiblePart, getWidth, getX, getY, hasFocus, invalidate, isEnabled, isOpaque, isValid, isVisible, paint, recalc, repaint, repaint, repaint, requestFocus, setBackground, setInsets, setLocation, setLwParent, setOpaque, setPSSize, setSize, setViewMan, setVisible, update, validate, vrp |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LwSpeedButton
public LwSpeedButton()
setFastTime
public void setFastTime(int ft)
- Sets the acceleration time.
- Parameters:
ft - 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 - 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
|