Package com.gadglet.client.gwt.ui

Examples of com.gadglet.client.gwt.ui.ContentText


     
        for (index = 0; index < jResponse.getRootItemsNum(); index++) {

       
         
          ContentText text = new ContentText(data.getStringItemValue(
              Params.DISCUSSION_TEXT.getParamName(), index));
         
          final String discussionId = jResponse.getItemKeyValue(index);
         
          results.setWidget(
View Full Code Here


        results.clear();
        int index;
     
        for (index = 0; index < jResponse.getRootItemsNum(); index++){
       
          ContentText text = new ContentText(data.getStringItemValue(
              Params.DISCUSSION_TEXT.getParamName(), index));
          final String discussionId = jResponse.getItemKeyValue(index);
          final String title = data.getStringItemValue(
              Params.DISCUSSION_TEXT.getParamName(), index);
           
View Full Code Here

        int index;

        for (index = 0; index < jResponse.getRootItemsNum(); index++) {

          final ContentText text = new ContentText(
              data.getStringItemValue(
                  Params.DISCUSSION_TEXT.getParamName(),
                  index));

          final String discussionId = jResponse
              .getItemKeyValue(index);

          VerticalPanel discussionItem = new VerticalPanel();
          discussionItem.add(text);

          final ActionLabel view = new ActionLabel(
              prefsUtils.getMsg("gadgetLabelView"));

          view.setTitle(prefsUtils.getMsg("gadgetLabelView"));

          view.addClickHandler(new ClickHandler() {
            @Override
            public void onClick(ClickEvent event) {
              // / view replay ....

              gadgetState.setDiscussionId(discussionId);
              gadgetState.setSingleDiscussion(true);
              gadgetState.setDiscussionTitle(text.getText());

              viewDiscussionsReplyQry
                  .setRequestItemkey(gadgetState
                      .getDiscussionId());
              viewDiscussionsReplyQry
                  .setCustomtContentName("replay");
              viewDiscussionReplys.makeRequest();

            }

          });

          results.setWidget(index, 0, discussionItem);
          results.setWidget(index, 1, view);

          final ActionLabel deleteLabel = new ActionLabel(
              prefsUtils.getMsg("gadgetLabelDelete"));

          deleteLabel.setItemId(jResponse.getItemKeyValue(index));

          if (data.isDeletePermitted(index)) {

            deleteLabel.addClickHandler(new ClickHandler() {
              @Override
              public void onClick(ClickEvent event) {
                changeDiscussionsQry.clearParamList();
                changeDiscussionsQry
                    .setRequestAction(ReqActionTypes.DELETE);
                changeDiscussionsQry
                    .setRequestItemkey(discussionId);
                addDeleteDiscussions.makeRequest();

              }

            });

          } else {
            // delete: "hide" sharing

            deleteLabel.addClickHandler(new ClickHandler() {
              @Override
              public void onClick(ClickEvent event) {
                deleteLabel.mouseOff();
                changeDiscussionsQry.clearParamList();

                changeDiscussionsQry
                    .setRequestAction(ReqActionTypes.DELETE);
                changeDiscussionsQry
                    .setCustomtContentName("sharing");
                changeDiscussionsQry
                    .setRequestItemkey(discussionId);
                addDeleteDiscussions.makeRequest();
                changeDiscussionsQry
                    .setCustomtContentName(null);

              }

            });
          }

          results.setWidget(index, 2, deleteLabel);

          if (data.isSharePermitted(index)) {

            final ActionLabel shareWithLabel = new ActionLabel(
                prefsUtils.getMsg("gadgetLabelShare"));

            shareWithLabel.addClickHandler(new ClickHandler() {

              public void onClick(ClickEvent event) {
                shareWithLabel.mouseOff();
                ShareWithDialogPanel panel = ShareWithDialogPanel
                    .getShareWithDialogPanel();
                panel.showShareWithDialogPanel(discussionId,
                    text.getText());

              }

            });
View Full Code Here

        int index;
     

        for (index = 0; index < data.getRootItemsNum(); index++) {

          final ContentText replayText = new ContentText(
              data.getStringItemValue(
                  Params.DISCUSSION_TEXT.getParamName(),
                  index));

          final String noteId = data.getItemKeyValue(index);
View Full Code Here

TOP

Related Classes of com.gadglet.client.gwt.ui.ContentText

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.