Class AbstractListSection

    • Constructor Detail

      • AbstractListSection

        public AbstractListSection()
    • Method Detail

      • selectedIndex

        public int selectedIndex()
        Returns:
        the selected row index
      • select

        public void select​(int index)
        Moves the selection to the given index (clamped to the valid range); fires onHighlight when it changes.
        Parameters:
        index - the requested selection index
      • onSelect

        public AbstractListSection onSelect​(java.util.function.IntConsumer handler)
        Sets the handler called with the row index on ENTER.
        Parameters:
        handler - the activation handler
        Returns:
        this AbstractListSection for chaining
      • onHighlight

        public AbstractListSection onHighlight​(java.util.function.IntConsumer handler)
        Sets the handler called with the row index whenever the selection moves.
        Parameters:
        handler - the highlight handler
        Returns:
        this AbstractListSection for chaining