Displays basic toast with provided text as message. Toast will be displayed for given amount of seconds.
168197
public void show (String text, float timeSec) {
		VisTable table = new VisTable();
		table.add(text).grow();
		show(table, timeSec);
	}
1372591
@SuppressWarnings("ConstantConditions")
    private void showResult(String message) {
        Snackbar.make(rootLayout, message, Snackbar.LENGTH_LONG).show();
    }
274907
public void toast(final int strId) {
        if (act == null)
            return;

        act.runOnUiThread(new Runnable() {

            public void run() {
                Toast.makeText(act, strId, Toast.LENGTH_SHORT).show();
            }
        });
    }
302038
@Override
    public void displayMessage(Message message) {
        if (message == null) {
            getRequestPanel().clearView(true);
            getResponsePanel().clearView(false);
            return;
        }

        if (!(message instanceof HttpMessage)) {
            logger.warn("Unable to display message: " + message.getClass().getCanonicalName());
            return;
        }

        HttpMessage httpMessage = (HttpMessage) message;
        if (httpMessage.getRequestHeader().isEmpty()) {
            getRequestPanel().clearView(true);
        } else {
            getRequestPanel().setMessage(httpMessage);
        }

        if (httpMessage.getResponseHeader().isEmpty()) {
            getResponsePanel().clearView(false);
        } else {
            getResponsePanel().setMessage(httpMessage, true);
        }
    }
615039
def Message(self, text):
        
        self.Display(text)
        self.sconf.cached = 1
        self.did_show_result = 0
850521
@Override
    public void onInstantChanged(FloatingLabelInstantPicker source, Instant instant) {
        Toast.makeText(getActivity(), source.getInstantPrinter().print(instant), Toast.LENGTH_SHORT).show();
    }
333506
def showMessage(self, level, message):
        
        self.uiFeedbackLBL.setText(message)
        self.uiLoggerEDIT.log(level, message)
116446
public static void showMessageDialog(Component parent, String msg,
                                         String title, int flags) {
        if (msg.length() > 60) {
            StringBuilder buf = new StringBuilder();
            int len = msg.length();
            int j = 0;
            int i;
            for (i = 0; i < len; i++, j++) {
                char c = msg.charAt(i);
                buf.append(c);
                if (Character.isWhitespace(c)) {
                    int k;
                    for (k = i + 1; k < len; k++) {
                        if (Character.isWhitespace(msg.charAt(k))) {
                            break;
                        }
                    }
                    if (k < len) {
                        int nextWordLen = k - i;
                        if (j + nextWordLen > 60) {
                            buf.append('\n');
                            j = 0;
                        }
                    }
                }
            }
            msg = buf.toString();
        }
        JOptionPane.showMessageDialog(parent, msg, title, flags);
    }
855566
private void notifyStatus(SmsMessage message) {
        URI callback = message.getStatusCallback();
        if (callback != null) {
            String method = message.getStatusCallbackMethod();
            if (method != null && !method.isEmpty()) {

                if (!org.apache.http.client.methods.HttpGet.METHOD_NAME.equalsIgnoreCase(method)
                        && !org.apache.http.client.methods.HttpPost.METHOD_NAME.equalsIgnoreCase(method)) {
                    final Notification notification = notification(WARNING_NOTIFICATION, 14104, method
                            + " is not a valid HTTP method for <Sms>");
                    storage.getNotificationsDao().addNotification(notification);
                    method = org.apache.http.client.methods.HttpPost.METHOD_NAME;
                }
            } else {
                method = org.apache.http.client.methods.HttpPost.METHOD_NAME;
            }


            List<NameValuePair> parameters = populateReqParams(message);
            HttpRequestDescriptor request = new HttpRequestDescriptor(callback, method, parameters);
            downloader().tell(request, self());

        }
    }
222213
public void onMessage(Message msg) {
	        try {
                    LOG.debug("Queuing msg [" + msg.getJMSMessageID() + "]");
                } catch (JMSException e) {
                }
		this.queue.offer(msg);
	}
295997
private void showToast(@Nullable final String text) {
        if (toast != null) {
            toast.cancel();
        }

        toast = Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT);
        toast.show();
    }
1210441
private synchronized void showMessage(final String msg)
	{
		SwingUtilities.invokeLater(new Runnable()
		{
			public void run()
			{
				getMessages().setText(msg);
			}
		});
	}
895998
def show_message(self, message, duration=2500):
        

        self.setText(message)
        self.__duration = duration

        self.__set_position()

        if message:
            self.__fade_in()
        else:
            self.__fade_out()
        return True
787056
def on_make_toast(self, ref):
        
        d = self.declaration
        self.toast = Toast(__id__=ref)
        self.init_widget()
833951
def msg(self, *args, **kwargs):
        ""
        if self.timestamp is None or self._interval_reached():
            self.callback(*args, **kwargs)
            self.reset()
839245
function (message, title, color) {
    /**
     * Container element for all of the messages created from init().
     */
    var tc = document.querySelector(".toast-container");
    if (!tc) {
        /**
         * If there's no container created from the init() function, throw an error.
         */
        throw new Error("toast-container is null.");
    }
    else {
        /**
         * Amount of time before each element is removed.
         */
        var timer_1 = 7;
        /**
         * Declare if the user's mouse is hovering over the message.
         */
        var isHovered_1 = false;
        /**
         * Create elements.
         */
        var toastEl_1 = document.createElement("div");
        var titleEl = document.createElement("h4");
        var messageEl = document.createElement("div");
        var loaderEl = document.createElement("div");
        var leftLoaderEl = document.createElement("div");
        var rightLoaderEl = document.createElement("div");
        var spinnerLoaderEl = document.createElement("div");
        /**
         * Fill contents.
         */
        titleEl.innerText = title;
        messageEl.innerText = message;
        /**
         * Add classes.
         */
        toastEl_1.classList.add("toast");
        toastEl_1.classList.add(color);
        titleEl.classList.add("toast-title");
        messageEl.classList.add("toast-message");
        loaderEl.classList.add("toast-loader");
        leftLoaderEl.classList.add("toast-loader-left");
        leftLoaderEl.classList.add(color);
        rightLoaderEl.classList.add("toast-loader-right");
        spinnerLoaderEl.classList.add("toast-loader-spinner");
        /**
         * Click (makes the message go away entirely).
         */
        toastEl_1.addEventListener("click", function (e) {
            e.currentTarget.classList.add("poof");
            setTimeout(function () {
                if (!tc) {
                    throw (Error("toast-container is null."));
                }
                else {
                    tc.removeChild(toastEl_1);
                    var index = messageQueue.indexOf(message);
                    messageQueue.splice(index, 1);
                }
            }, 200);
        });
        /**
         * MouseEnter (pauses the timer).
         */
        toastEl_1.addEventListener("mouseenter", function (e) {
            var children = e.currentTarget.children[2].children;
            for (var i = 0; i < children.length; i++) {
                children[i].style.animationPlayState = "paused";
            }
            isHovered_1 = true;
        });
        /**
         * MouseLeave (resumes the timer).
         */
        toastEl_1.addEventListener("mouseleave", function (e) {
            var children = e.currentTarget.children[2].children;
            for (var i = 0; i < children.length; i++) {
                children[i].style.animationPlayState = "running";
            }
            isHovered_1 = false;
        });
        /**
         * Append children.
         */
        loaderEl.appendChild(leftLoaderEl);
        loaderEl.appendChild(rightLoaderEl);
        loaderEl.appendChild(spinnerLoaderEl);
        toastEl_1.appendChild(titleEl);
        toastEl_1.appendChild(messageEl);
        toastEl_1.appendChild(loaderEl);
        tc.appendChild(toastEl_1);
        /**
         * Start timer.
         */
        var interval_1 = setInterval(function () {
            if (timer_1 <= 7) {
                toastEl_1.classList.add("active");
            }
            if (!isHovered_1 && timer_1 <= .800) {
                toastEl_1.classList.add("poof");
            }
            if (!isHovered_1) {
                timer_1 -= 0.100;
                if (timer_1 <= 0) {
                    clearInterval(interval_1);
                    if (toastEl_1 && toastEl_1.parentNode === tc) {
                        if (!tc) {
                            throw (Error("toast-container is null."));
                        }
                        else {
                            tc.removeChild(toastEl_1);
                            var index = messageQueue.indexOf(message);
                            messageQueue.splice(index, 1);
                        }
                    }
                }
            }
        }, 100);
    }
}
755556
def show_messages(self):
        """"""
        string = ''
        if self.static_message is not None:
            string += self.static_message.to_text()

        for message in self.dynamic_messages:
            string += message.to_text()

        print(string)