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

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


        {
            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

        buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().flagControls());

        Label ignoreButton = new Label("Ignore");
        ignoreButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().flagIgnoreButton());
        buttonsPanel.add(ignoreButton);
        ignoreButton.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent ev)
            {
                buttonsPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().waitActive());
                if (singleView)
View Full Code Here

        });

        Label deleteButton = new Label("Delete");
        deleteButton.addStyleName(StaticResourceBundle.INSTANCE.coreCss().flagDeleteButton());
        buttonsPanel.add(deleteButton);
        deleteButton.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent event)
            {
                if (new WidgetJSNIFacadeImpl().confirm("Are you sure you want to delete this activity?"))
                {
View Full Code Here

        }
        if (indent)
        {
            label.addStyleName(style.sourceFilterIndented());
        }
        label.addClickHandler(new ClickHandler()
        {
            public void onClick(final ClickEvent inEvent)
            {
                selectSource(source);
            }
View Full Code Here

                                        hashTags.setVisible(true);
                                    }

                                    final String hashTagFinal = hashTag;
                                    final Label tagLbl = new Label(hashTagFinal);
                                    tagLbl.addClickHandler(new ClickHandler()
                                    {
                                        public void onClick(final ClickEvent event)
                                        {
                                            String postText = postBox.getText();
                                            postText = postText.substring(0, postText.length() - lastWord.length())
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

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.