Package io.conducive.client.ui.widgets.html

Examples of io.conducive.client.ui.widgets.html.ListItem


    public Tour add(String heading, String message) {
        return add(null, heading, message, null);
    }

    public Tour add(String id, String heading, String message, Position position) {
        ListItem listItem = new ListItem();
        if (id != null) {
            listItem.getElement().setAttribute("data-id", id);
        }
        listItem.getElement().setAttribute("data-button", "OK");
        if (position != null) {
            listItem.getElement().setAttribute("data-options", "tipLocation: " + (position == Position.TOP ? "top" : "bottom"));
        }
        listItem.wrap(h4().text(heading), div().html(message));
        add(listItem);
        if (items.size() > 0) {
            items.getLast().getElement().setAttribute("data-button", "Next");
        }
        items.add(listItem);
View Full Code Here

TOP

Related Classes of io.conducive.client.ui.widgets.html.ListItem

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.