Interface MapObjectivesDialog.FieldInterpreter<T>

Enclosing class:
MapObjectivesDialog

public static interface MapObjectivesDialog.FieldInterpreter<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    build(arc.scene.ui.layout.Table cont, CharSequence name, MapObjectivesDialog.TypeInfo type, Field field, Runnable remover, arc.func.Boolc indexer, arc.func.Prov<T> get, arc.func.Cons<T> set)
    Builds the interpreter for (not-necessarily) a possibly annotated field.
  • Method Details

    • build

      void build(arc.scene.ui.layout.Table cont, CharSequence name, MapObjectivesDialog.TypeInfo type, @Nullable Field field, @Nullable Runnable remover, @Nullable arc.func.Boolc indexer, arc.func.Prov<T> get, arc.func.Cons<T> set)
      Builds the interpreter for (not-necessarily) a possibly annotated field. Implementations must add exactly 2 columns to the table.
      Parameters:
      name - May be empty.
      remover - If this callback is not null, this interpreter should add a button that invokes the callback to signal element removal.
      indexer - If this callback is not null, this interpreter should add 2 buttons that invoke the callback to signal element rearrangement with the following values:
      • true: Swap element with previous index.
      • false: Swap element with next index.