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::
TouchCanceleventTouchStarteventTouchMoveeventTouchEndevent
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault TAdds a touch cancel event handler to the component.default TaddTouchEndHandler(TouchEndEventHandler handler) Adds a touch end event handler to the component.default TaddTouchMoveHandler(TouchMoveEventHandler handler) Adds a touch move event handler.default TAdds 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- TheTouchCancelEventHandlerimplementation- 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- TheTouchEndEventHandlerimplementation- 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- TheTouchMoveEventHandlerimplementation- 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- TheTouchStartEventHandlerimplementation- Returns:
- The component
- See Also:
-