Package io.mateu.mdd.vaadin.util
Class VaadinHelper
- java.lang.Object
-
- io.mateu.mdd.vaadin.util.VaadinHelper
-
public class VaadinHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description VaadinHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidchoose(String caption, Set possibleValues, Consumer onOk, Runnable onClose)static voidconfirm(String msg, Runnable onOk)static voidfill(EditorViewComponent evc, String caption, Constructor c, Consumer onOk, Runnable onClose)static voidfill(String caption, Constructor c, Consumer onOk, Runnable onClose)static <K,V>
voidgetPair(String caption, Class<K> keyType, Class<V> valueType, BiConsumer<K,V> f)static <T> voidgetValue(String caption, Class<T> type, Consumer<T> f)static voidsaveOrDiscard(String msg, EditorViewComponent editor, Runnable afterSave)
-
-
-
Method Detail
-
choose
public static void choose(String caption, Set possibleValues, Consumer onOk, Runnable onClose)
-
getPair
public static <K,V> void getPair(String caption, Class<K> keyType, Class<V> valueType, BiConsumer<K,V> f)
-
fill
public static void fill(String caption, Constructor c, Consumer onOk, Runnable onClose)
-
fill
public static void fill(EditorViewComponent evc, String caption, Constructor c, Consumer onOk, Runnable onClose)
-
saveOrDiscard
public static void saveOrDiscard(String msg, EditorViewComponent editor, Runnable afterSave)
-
-