Package com.jbstrap.ui
Interface Touchable<T extends Component<?>>
- Type Parameters:
T
- The component type
- All Known Implementing Classes:
ActivityStreamItem
,Badge
,BaseLoginPage
,BasePage
,Blockquote
,Button
,CheckboxItem
,CodeViewer
,Container
,DatePicker
,DateRangePicker
,DropDownButton
,FileMiniature
,Header
,IBox
,Image
,IntegerItem
,Link
,ListItem
,LoadButton
,NavBarItem
,NumberItem
,Paragraph
,PasswordItem
,RadioButtonItem
,Row
,SelectorItem
,Small
,Span
,Sparkline
,StaticTextItem
,SwitchItem
,TableCell
,TableHeader
,TableRow
,TabPage
,TextItem
,Timeline
,TimelineItem
,Treeview
,TreeviewNode
,UI.RootLayout
,Wizard
,WizardStep
public interface Touchable<T extends Component<?>>
Components that can handle touch events.
Components that implement this interface can handle touch events. These events are fired when the user uses the application on a device that has a touchscreen.
These touch events are::
TouchCancel
eventTouchStart
eventTouchMove
eventTouchEnd
event
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
Adds a touch cancel event handler to the component.default T
addTouchEndHandler
(TouchEndEventHandler handler) Adds a touch end event handler to the component.default T
addTouchMoveHandler
(TouchMoveEventHandler handler) Adds a touch move event handler.default T
Adds a touch start event handler to the component.
-
Method Details
-
addTouchCancelHandler
Adds a touch cancel event handler to the component. The event is fired when the touch event is cancelled by the device. Each device cancels the touch event differently, and certain devices use this event. If the device fires the event, the event handler will also be called.- Parameters:
handler
- TheTouchCancelEventHandler
implementation- Returns:
- The component
- See Also:
-
addTouchEndHandler
Adds a touch end event handler to the component. The specified handler will be used, when the user takes their finger off the component.- Parameters:
handler
- TheTouchEndEventHandler
implementation- Returns:
- The component
- See Also:
-
addTouchMoveHandler
Adds a touch move event handler. The handler will be used, when the user moves their finger on the screen.- Parameters:
handler
- TheTouchMoveEventHandler
implementation- Returns:
- The component
- See Also:
-
addTouchStartHandler
Adds a touch start event handler to the component. The handler will be used, when the user touches component.- Parameters:
handler
- TheTouchStartEventHandler
implementation- Returns:
- The component
- See Also:
-