From 49f8daea8780f79ebbec7fec8dacf0dff884329b Mon Sep 17 00:00:00 2001 From: Juuxel <6596629+Juuxel@users.noreply.github.com> Date: Sat, 16 May 2020 22:31:54 +0300 Subject: Add documentation for WListPanel constructor --- src/main/java/io/github/cottonmc/cotton/gui/widget/WListPanel.java | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main/java/io') diff --git a/src/main/java/io/github/cottonmc/cotton/gui/widget/WListPanel.java b/src/main/java/io/github/cottonmc/cotton/gui/widget/WListPanel.java index 9416f95..876d43a 100644 --- a/src/main/java/io/github/cottonmc/cotton/gui/widget/WListPanel.java +++ b/src/main/java/io/github/cottonmc/cotton/gui/widget/WListPanel.java @@ -54,6 +54,13 @@ public class WListPanel extends WClippedPanel { protected WScrollBar scrollBar = new WScrollBar(Axis.VERTICAL); private int lastScroll = -1; + /** + * Constructs a list panel. + * + * @param data the list data + * @param supplier the widget supplier that creates unconfigured widgets + * @param configurator the widget configurator that configures widgets to display the passed data + */ public WListPanel(List data, Supplier supplier, BiConsumer configurator) { this.data = data; this.supplier = supplier; -- cgit