19 package org.turro.elephant.util;
21 import org.turro.string.Phrases;
22 import org.zkoss.zkmax.ui.util.Toast;
36 this.type =
"warning";
46 this.position =
"top_center";
51 this.position =
"bottom_center";
56 this.duration = duration;
66 Toast.show(phrases.newLine(
"<br/>").toString(), type, position, duration, closable);
71 private final Phrases phrases = Phrases.start();
79 phrases.
add(word, withSpace);
84 phrases.
add(word, enclose);
88 public Toasts add(String value, String enclose,
boolean withSpace) {
89 phrases.
add(value, enclose, withSpace);
94 phrases.
format(word, args);
118 private String type, position;
119 private int duration;
120 private boolean closable;
125 position =
"top_center";
Toasts add(String word, String enclose)
Toasts add(String word, boolean withSpace)
static Toasts message(String message)
Toasts add(String value, String enclose, boolean withSpace)
Toasts format(String word, Object... args)
Toasts duration(int duration)