Package gg.xp.xivsupport.gui.tables
Class CustomRightClickOption
java.lang.Object
gg.xp.xivsupport.gui.tables.CustomRightClickOption
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
configureTable
(JTable table, CustomTableModel<?> model, Supplier<List<CustomRightClickOption>> optionsProvier) static void
configureTable
(JTable table, CustomTableModel<?> model, List<CustomRightClickOption> options) void
doAction
(CustomTableModel<?> object) static <X> CustomRightClickOption
static <X> CustomRightClickOption
static <X,
Y> CustomRightClickOption forRowWithConverter
(String label, Class<X> initialClass, Function<X, @Nullable Y> conversion, Consumer<Y> action) getLabel()
boolean
shouldAppear
(CustomTableModel<?> object)
-
Method Details
-
forRow
public static <X> CustomRightClickOption forRow(String label, Class<X> expectedClass, Consumer<X> action) -
forRow
public static <X> CustomRightClickOption forRow(String label, Class<X> expectedClass, Consumer<X> action, Predicate<X> shouldAppear) -
forRowWithConverter
public static <X,Y> CustomRightClickOption forRowWithConverter(String label, Class<X> initialClass, Function<X, @Nullable Y> conversion, Consumer<Y> action) -
getLabel
-
shouldAppear
-
doAction
-
configureTable
public static void configureTable(JTable table, CustomTableModel<?> model, List<CustomRightClickOption> options) -
configureTable
public static void configureTable(JTable table, CustomTableModel<?> model, Supplier<List<CustomRightClickOption>> optionsProvier)
-