|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.core.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(Widget target,
XElement el)
Creates a new click repeater. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addClickHandler(ClickRepeaterEvent.ClickRepeaterHandler handler)
Adds a ClickRepeaterEvent handler. |
int |
getDelay()
Returns the amount before events are fired once the user holds the mouse down. |
XElement |
getEl()
Returns the "click" element. |
int |
getInterval()
Returns the amount of time between "clicks". |
java.lang.String |
getPressClass()
Returns the press CSS style name. |
Widget |
getTarget()
|
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 java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClickRepeater(Widget target,
XElement el)
target - the target widgetel - the element to be clicked| Method Detail |
|---|
public HandlerRegistration addClickHandler(ClickRepeaterEvent.ClickRepeaterHandler handler)
ClickRepeaterEvent.HasClickRepeaterHandlersClickRepeaterEvent handler.
addClickHandler in interface ClickRepeaterEvent.HasClickRepeaterHandlershandler - the handler
public int getDelay()
public XElement getEl()
public int getInterval()
public java.lang.String getPressClass()
public Widget getTarget()
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 name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||