Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.HTML.addClickHandler()


        });


        HTML logout = new HTML("<i class='icon-signout'></i>&nbsp;"+Console.CONSTANTS.common_label_logout());
        logout.addStyleName("footer-link");
        logout.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                Feedback.confirm(
                        Console.CONSTANTS.common_label_logout(),
                        Console.CONSTANTS.logout_confirm(),
View Full Code Here


        if (row == highlightedCellRow && column == highlightedCellColumn) {
          grid.getCellFormatter().addStyleName(row, column, "tty-GridCellSelected");
        }

        HTML cell = new HTML();
        cell.addClickHandler(cellClickHandler(row, column));

        cell.addMouseOverHandler(createMouseOverHandler(row, column));
        cell.addMouseOutHandler(createMouseOutHandler(row, column));

        cellMap.put(key, cell);
View Full Code Here

        final LayoutPanel westPanelWrapper = new LayoutPanel();
        westPanelWrapper.setStyleName("fill-layout");

        final HTML collapseButton = new HTML("<i class='icon-double-angle-left'></i>");
        collapseButton.setStyleName("lhs-toggle");
        collapseButton.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                boolean collapsed = layout.toggleCollapsedState(westPanelWrapper);
                westPanel.setVisible(!collapsed);
                if (collapsed)
View Full Code Here

        }
        toolsPopup.setWidget(toolsList);

        final HTML toolsLink = new HTML("<i class='icon-caret-up'></i>&nbsp;"+"Tools");
        toolsLink.addStyleName("footer-link");
        toolsLink.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent clickEvent) {

                int listHeight = toolsList.getWidgetCount() * 25;

 
View Full Code Here

            }
        });

        HTML settings = new HTML("<i class='icon-wrench'></i>&nbsp;"+Console.CONSTANTS.common_label_settings());
        settings.addStyleName("footer-link");
        settings.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                placeManager.revealPlace(
                        new PlaceRequest(NameTokens.SettingsPresenter)
                );
View Full Code Here

        // TODO: beware of XSS
        final HTML label = new HTML(message.getSeverity().getTag()+"&nbsp;"+actualMessage);

        panel.add(label);

        label.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent clickEvent) {
                if(message.isSticky()) {
                    MessageCenterView.this.lastSticky=null;
                }
                messageDisplay.clear();
View Full Code Here

        }
        HTML version = new HTML(versionToShow);
        version.setTitle("Version Information");
        version.addStyleName("footer-link");
        version.getElement().setAttribute("style", "font-size:10px; align:left");
        version.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(final ClickEvent event) {
                final DefaultWindow window = new DefaultWindow("Version Information");
                DialogueOptions options = new DialogueOptions(Console.CONSTANTS.common_label_done(), new ClickHandler() {
                    @Override
View Full Code Here

        final int width = widget.getOffsetWidth();
        final int height = widget.getOffsetHeight();

        final LayoutPopupPanel p = new LayoutPopupPanel(false);
        HTML html = new HTML("View Source");
        html.addClickHandler(new ClickHandler()
        {
          public void onClick(ClickEvent clickEvent)
          {
            LayoutPopupPanel p2 = new LayoutPopupPanel(true);
            p2.setModal(true);
View Full Code Here

        if(!GWT.isScript())
        {
            HTML rbac = new HTML("<i title='RBAC Diagnostics' style='cursor:pointer;color:#cecece;font-size:30px;font-weight:normal!important' class='icon-eye-open'></i>");
            debugTools.add(rbac);

            rbac.addClickHandler(new ClickHandler() {
                @Override
                public void onClick(ClickEvent event) {
                    RBACContextView.launch();
                }
            });
View Full Code Here

        Widget messageCenter = messageCenterView.asWidget();
        tools.add(messageCenter);

        // logout button
        HTML logout = new HTML("<i class='icon-signout'></i>&nbsp;"+Console.CONSTANTS.common_label_logout());
        logout.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
                Feedback.confirm(
                        Console.CONSTANTS.common_label_logout(),
                        Console.CONSTANTS.logout_confirm(),
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.