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

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


            body.add(ellipsis);

            final InlineLabel more = new InlineLabel("show more");
            more.addStyleName(StaticResourceBundle.INSTANCE.coreCss().showMoreCommentLink());
            more.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            more.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent inEvent)
                {
                    // remove the truncated segment, ... and "show more"
                    if (shortTextToReplace != null)
View Full Code Here


            deleteLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().delete());
            deleteLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());

            actionsPanel.add(deleteLink);

            deleteLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    if (jsniFacade.confirm("Are you sure you want to delete this comment?"))
                    {
View Full Code Here

        InlineLabel seperator = new InlineLabel();
        seperator.addStyleName(StaticResourceBundle.INSTANCE.coreCss().filterSeperator());
        panel.add(seperator);

        seperator.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                updateHistory();
            }
View Full Code Here

        {
            Label commentLink = new InlineLabel("Comment");
            commentLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            actionsPanel.add(commentLink);

            commentLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    commentsPanel.activatePostComment();
                }
View Full Code Here

            insertActionSeparator(actionsPanel);
            Label shareLink = new InlineLabel("Share");
            shareLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            actionsPanel.add(shareLink);

            shareLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    onShare(msg);
                }
View Full Code Here

            Label link = new InlineLabel("Stick");
            link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
            actionsPanel.add(link);

            link.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent inEvent)
                {
                    // Note: for now we assume the destination entity is a group (because that's all we've implemented
                    // sticky activities for). Update here if that if sticky activities are allowed on other kinds of
View Full Code Here

                insertActionSeparator(actionsPanel);
              Label flagLink = new InlineLabel("Flag as Inappropriate");
              flagLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
              actionsPanel.add(flagLink);
            
              flagLink.addClickHandler(new ClickHandler()
              {
                  public void onClick(final ClickEvent event)
                  {
                      if (new WidgetJSNIFacadeImpl()
                              .confirm("Flagged activities will be sent to the system administrators for review. "
View Full Code Here

            insertActionSeparator(actionsPanel, null);
            Label shareLink = new InlineLabel("Share");
            shareLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
            actionsPanel.add(shareLink);

            shareLink.addClickHandler(new ClickHandler()
            {
                public void onClick(final ClickEvent event)
                {
                    Dialog.showCentered(new ShareMessageDialogContent(msg));
                }
View Full Code Here

        Label link = new InlineLabel("Unstick");
        link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().linkedLabel());
        link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().ownerOnlyInline());
        actionsPanel.add(link);

        link.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                GroupStickyActivityModel.getInstance().delete(msg.getDestinationStream().getDestinationEntityId());
            }
View Full Code Here

          container.add(new InlineHTML(", "));
        }
        InlineLabel contributorLabel = new InlineLabel(contributor.getName());
        contributorLabel.addStyleName(secondaryLinkStyle ? "secondaryLink" : "primaryLink");
        contributorLabel.addStyleName("nowrap");
        contributorLabel.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent e) {
            // TODO: this isn't great, but it works.
            // The right way to do this would probably be to store all content items in the
            // ClientCache and fire a history change event here to load the page, instead
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.