Package com.jbstrap.ui
Interface Clickable<T extends Component<?>>
- Type Parameters:
T- The component type
- All Known Implementing Classes:
ActivityStreamItem,Badge,BaseLoginPage,BasePage,Blockquote,Button,Card,CheckboxItem,CodeViewer,Container,DatePicker,DateRangePicker,DropDownButton,DropDownButton.DropDownMenuItem,FileMiniature,Header,IBox,Image,IntegerItem,Link,ListItem,LoadButton,NavBarFooterButton,NavBarItem,NumberItem,Paragraph,PasswordItem,ProgressBar,RadioButtonItem,Row,SelectorItem,Small,Span,Sparkline,StaticTextItem,SwitchItem,TableCell,TableHeader,TableRow,TabPage,TextItem,Timeline,TimelineItem,Treeview,TreeviewNode,UI.RootLayout,Wizard,WizardStep
public interface Clickable<T extends Component<?>>
Clickable component
Components that implement this interface can handle click events. In the JBStrap framework there are two distinct click events: single click and double-click events. Both event handlers can be added to the components through this interface.
- Since:
- 4.0
- Author:
- JBStrap
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault TaddClickHandler(ClickEventHandler handler) Adds a single click event handler to the component.default TAdds a double click event handler to the component.
-
Method Details
-
addClickHandler
Adds a single click event handler to the component. This handler runs when the user clicks once on the component.- Parameters:
handler- TheClickEventHandlerimplementation- Returns:
- The component
- See Also:
-
addDoubleClickHandler
Adds a double click event handler to the component. This handler runs when the user clicks twice on the component.- Parameters:
handler- ADoubleClickEventHandlerimplementation- Returns:
- The component
- See Also:
-