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

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


    // populate the table with values for mindmaps
    int i = 0;
    for (MindMapInfo doc : mindmaps) {
      Anchor link = new Anchor(doc.getTitle());
      link.setStyleName(style.mindmapListLink());
      link.addClickHandler(new ListSelectionHandler(doc, local));
      table.setWidget(i, 0, link);

      Image removeLink = new Image(_resources.removeIcon());
      removeLink.addClickHandler(new ListRemoveHandler(doc, local));
      removeLink.getElement().addClassName(style.removeImg());
View Full Code Here


            }
        }

        Anchor anchor = new Anchor( GoogleDisplayerConstants.INSTANCE.googleDisplayer_resetAnchor() );
        panel.add(anchor);
        anchor.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                filterReset();
                updateVisualization();
            }
        });
View Full Code Here

        gadgetExtInfo.addStyleName(StaticResourceBundle.INSTANCE.coreCss().gadgetExtInfo());
        gadgetExtInfo.add(new HTML("Category: "));
        Anchor category = new Anchor();
        category.setText(inItem.getCategory().getName());

        category.addClickHandler(new ClickHandler()
        {

            public void onClick(final ClickEvent arg0)
            {
                EventBus.getInstance().notifyObservers(
View Full Code Here

        gadgetExtInfo.addStyleName(StaticResourceBundle.INSTANCE.coreCss().gadgetExtInfo());
        gadgetExtInfo.add(new HTML("Category: "));
        Anchor category = new Anchor();
        category.setText(theme.getCategory().getName());

        category.addClickHandler(new ClickHandler()
        {

            public void onClick(final ClickEvent arg0)
            {
                EventBus.getInstance().notifyObservers(
View Full Code Here

        this.setVisible(false);

        unseenActivityCount.addStyleName(StaticResourceBundle.INSTANCE.coreCss().unseenLabel());

        Anchor refreshStream = new Anchor("Refresh Stream");
        refreshStream.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent arg0)
            {
                Session.getInstance().getEventBus().notifyObservers(StreamReinitializeRequestEvent.getEvent());
            }
View Full Code Here

        FlowPanel gadgetExtInfo = new FlowPanel();
        gadgetExtInfo.addStyleName(StaticResourceBundle.INSTANCE.coreCss().gadgetExtInfo());
        gadgetExtInfo.add(new HTML("Category: "));
        Anchor category = new Anchor();
        category.setText(metaData.getGadgetDefinition().getCategory().getName());
        category.addClickHandler(new ClickHandler()
        {

            public void onClick(final ClickEvent arg0)
            {
                EventBus.getInstance().notifyObservers(
View Full Code Here

            fetchers.put(name, fetchable);

            Anchor filterLink = new Anchor(name);
            filterLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionFilterButton());

            filterLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    updateStateIfChanged(name, sortKey, null, null, true);
                }
View Full Code Here

                sortPanels.put(name, sortPanel);
            }

            Anchor sortLink = new Anchor(sortKey);
            sortLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().connectionFilterButton());
            sortLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    updateStateIfChanged(name, sortKey, null, null, true);
                }
View Full Code Here

        undoButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().undoNotification());

        this.clear();
        this.add(new HTML("<div>" + widgetName + " has been removed&nbsp</div>"));
        this.add(undoButton);
        undoButton.addClickHandler(clickHandler);
    }

}
View Full Code Here

        };

        final Anchor transparentLikeLink = new Anchor();
        transparentLikeLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().transparentLikeLink());

        transparentLikeLink.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent arg0)
            {
                if (!isLiked)
                {
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.