diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-05-16 22:31:54 +0300 |
---|---|---|
committer | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-05-16 22:31:54 +0300 |
commit | 49f8daea8780f79ebbec7fec8dacf0dff884329b (patch) | |
tree | 815937b3158740fffee695a0b21968582f3387c0 /src | |
parent | c30b2cbc144ca4aa7ee385e0422dadf017d7a916 (diff) | |
download | LibGui-49f8daea8780f79ebbec7fec8dacf0dff884329b.tar.gz LibGui-49f8daea8780f79ebbec7fec8dacf0dff884329b.tar.bz2 LibGui-49f8daea8780f79ebbec7fec8dacf0dff884329b.zip |
Add documentation for WListPanel constructor
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/cottonmc/cotton/gui/widget/WListPanel.java | 7 |
1 files changed, 7 insertions, 0 deletions
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<D, W extends WWidget> 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<D> data, Supplier<W> supplier, BiConsumer<D, W> configurator) { this.data = data; this.supplier = supplier; |