public class SimpleForm extends Form<SimpleFormResponse>
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleForm.SimpleFormBuilder |
| Constructor and Description |
|---|
SimpleForm(String title,
String content,
List<ElementButton> buttons,
it.unimi.dsi.fastutil.ints.Int2ObjectMap<Consumer<CloudPlayer>> buttonListeners,
List<BiConsumer<CloudPlayer,SimpleFormResponse>> listeners,
List<Consumer<CloudPlayer>> closeListeners,
List<Consumer<CloudPlayer>> errorListeners) |
| Modifier and Type | Method and Description |
|---|---|
ElementButton |
getButton(int index) |
void |
handleResponse(CloudPlayer p,
com.fasterxml.jackson.databind.JsonNode node) |
public SimpleForm(String title, String content, List<ElementButton> buttons, it.unimi.dsi.fastutil.ints.Int2ObjectMap<Consumer<CloudPlayer>> buttonListeners, List<BiConsumer<CloudPlayer,SimpleFormResponse>> listeners, List<Consumer<CloudPlayer>> closeListeners, List<Consumer<CloudPlayer>> errorListeners)
public ElementButton getButton(int index)
public void handleResponse(CloudPlayer p, com.fasterxml.jackson.databind.JsonNode node)
handleResponse in class Form<SimpleFormResponse>Copyright © 2021. All rights reserved.