Interface zebkit.ui.ButtonRepeatMix <zebkit.ui>

Special interface that provides set of method for state components to implement repeatable state.




public void setFireParams (b, firePeriod, [startIn])

Set the mode the button has to fire events. Button can fire event after it has been unpressed or immediately when it has been pressed. Also button can start firing events periodically when it has been pressed and held in the pressed state.


Parameters:
  • b <Boolean>

    true if the button has to fire event by pressed event

  • firePeriod <Integer>

    the period of time the button has to repeat firing events if it has been pressed and held in pressed state. -1 means event doesn't have repeated

  • [startIn] <Integer>

    the timeout when repeat events has to be initiated


public <Integer> firePeriod

Fire button event repeating period. -1 means the button event repeating is disabled.

public <Boolean> isFireByPress

Indicate if the button should fire event by pressed event

public <Integer> startIn

Indicates a time the repeat state events have to start in