Class ExamplesPicker<T>

java.lang.Object
org.jhotdraw8.draw.popup.AbstractPicker<T>
org.jhotdraw8.draw.popup.ExamplesPicker<T>
Type Parameters:
T - the type of the examples
All Implemented Interfaces:
Picker<T>

public class ExamplesPicker<T> extends AbstractPicker<T>
Picker for picking an example from a set of provided examples.
  • Constructor Details

    • ExamplesPicker

      public ExamplesPicker(ImmutableList<String> examples, org.jhotdraw8.base.converter.Converter<T> converter)
  • Method Details

    • show

      public void show(javafx.scene.Node anchor, double screenX, double screenY, T initialValue, BiConsumer<Boolean,T> callback)
      Parameters:
      anchor - anchor node will be blocked by the picker
      screenX - desired screen coordinate
      screenY - desired screen coordinate
      initialValue - initial value
      callback - callback when a value was selected (true), or reset to the initial value (false).