|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.util.ClickRepeater
public class ClickRepeater
A utility class that continues to fire a "click" event when the user holds the mouse key down.
Constructor Summary | |
---|---|
ClickRepeater(El el)
Creates a new click repeater. |
Method Summary | |
---|---|
protected void |
click()
|
void |
doAttach()
|
void |
doDetach()
|
protected int |
easeOutExpo(long t,
int b,
int c,
int d)
|
boolean |
fireEvent(EventType eventType)
Fires an event. |
int |
getDelay()
Returns the amount before events are fired once the user holds the mouse down. |
El |
getEl()
Returns the "click" element. |
int |
getInterval()
Returns the amount of time between "clicks". |
java.lang.String |
getPressClass()
Returns the press CSS style name. |
protected void |
handleMouseDown()
|
protected void |
handleMouseOut()
|
protected void |
handleMouseReturn()
|
protected void |
handleMouseUp()
|
boolean |
isAccelerate()
Returns true if acceleration is enabled. |
void |
setAccelerate(boolean accelerate)
True if autorepeating should start slowly and accelerate (defaults to false). |
void |
setDelay(int delay)
The initial delay before the repeating event begins firing (defaults to 250). |
void |
setInterval(int interval)
Sets the interval (defaults to 250). |
void |
setPressClass(java.lang.String pressClass)
A CSS class name to be applied to the element while pressed. |
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClickRepeater(El el)
el
- the element to be clickedMethod Detail |
---|
public void doAttach()
doAttach
in interface ComponentAttachable
public void doDetach()
doDetach
in interface ComponentAttachable
public boolean fireEvent(EventType eventType)
BaseObservable
fireEvent
in class BaseObservable
eventType
- the event type
true
if any listeners cancel the event.public int getDelay()
public El getEl()
public int getInterval()
public java.lang.String getPressClass()
public boolean isAccelerate()
public void setAccelerate(boolean accelerate)
accelerate
- true to acceleratepublic void setDelay(int delay)
delay
- the delay in millisecondspublic void setInterval(int interval)
interval
- the interval in millisecondspublic void setPressClass(java.lang.String pressClass)
pressClass
- the style nameprotected void click()
protected int easeOutExpo(long t, int b, int c, int d)
protected void handleMouseDown()
protected void handleMouseOut()
protected void handleMouseReturn()
protected void handleMouseUp()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |