Interface LeafActionSubject


public interface LeafActionSubject
A widget of the LEAF_ACTION shape as the leaf contract sees it: a pressable leaf the contract can build fresh and count the presses of through the widget's own handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    Builds a fresh widget that accepts a press and returns the root to bind.
    int
     
     
  • Method Details

    • build

      Widget<?> build()
      Builds a fresh widget that accepts a press and returns the root to bind.
    • widget

      Widget<?> widget()
      Returns:
      the widget build() made last: the leaf itself
    • presses

      int presses()
      Returns:
      how many times the widget's own action handler fired since build()