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 Details

    • addClickHandler

      default T addClickHandler(ClickEventHandler handler)
      Adds a single click event handler to the component. This handler runs when the user clicks once on the component.
      Parameters:
      handler - The ClickEventHandler implementation
      Returns:
      The component
      See Also:
    • addDoubleClickHandler

      default T addDoubleClickHandler(DoubleClickEventHandler handler)
      Adds a double click event handler to the component. This handler runs when the user clicks twice on the component.
      Parameters:
      handler - A DoubleClickEventHandler implementation
      Returns:
      The component
      See Also: