public interface ReleasableComponent

Known subtypesFloatingActionButton, ScaleImageButton, ShareButton, Switch, LikeButton, Button, CheckBox, RadioButton, Picker

An Interface that any Component that could be released from the parent Form can implement. E.g. when a button is held down with a finger and dragged outside of the component bounds a release event might be discarded. With this interface we can register our desire for that release event even in that case.

Methods

public abstract boolean isAutoRelease()Returns true if this is an auto-released Component.
public abstract void setAutoRelease(boolean autoRelease)Sets the auto released mode of the Component
public abstract int getReleaseRadius()Indicates a radius in which a pointer release will still have effect.
public abstract void setReleaseRadius(int releaseRadius)Indicates a radius in which a pointer release will still have effect.
public abstract void setReleased()Function that would be called by the parent Form to put the Component in its released state

Method details

isAutoRelease

public abstract boolean isAutoRelease()
Returns true if this is an auto-released Component. An Auto-released Component will be disarmed when a drag is happening within it

setAutoRelease

public abstract void setAutoRelease(boolean autoRelease)
Sets the auto released mode of the Component

getReleaseRadius

public abstract int getReleaseRadius()
Indicates a radius in which a pointer release will still have effect. Notice that this only applies to pointer release events and not to pointer press events

Returns

the releaseRadius

setReleaseRadius

public abstract void setReleaseRadius(int releaseRadius)
Indicates a radius in which a pointer release will still have effect. Notice that this only applies to pointer release events and not to pointer press events

Parameters

releaseRadius int
the releaseRadius to set

setReleased

public abstract void setReleased()
Function that would be called by the parent Form to put the Component in its released state