Package buildcraft.core.gui

Examples of buildcraft.core.gui.GuiList$Button


        final HTML html = new HTML(text);
        html.getElement().getStyle().setBackgroundColor(color);
        html.setSize("100%", "100%");
        layout.add(html);

        Button button = new Button(text, new ClickHandler() {
            public void onClick(ClickEvent event) {
                layout.selectWidget(html);
            }
        });

        button.getElement().getStyle().setMarginLeft(10, Style.Unit.PX);

        buttons.add(button);

    }
View Full Code Here


        drawers.addDrawer(drawer);

        drawer = new Drawer("Console", createHTML("Console Content", "#ffff99"), DrawerLayout.Position.BOTTOM);
        drawers.addDrawer(drawer);

        Button button = new Button("Show text in status bar");
        button.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                drawers.setStatusMessage("A message in status bar");
            }
        });
        drawers.setContent(button);
View Full Code Here

TOP

Related Classes of buildcraft.core.gui.GuiList$Button

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.