Examples of DocsFolderItem


Examples of com.gadglet.client.gwt.google.DocsFolderItem

   
    documentsListPanel.clear();
     
    Label emptyFolder = new Label(prefs.getMsg("gadgetMsgNoResults"));
    emptyFolder.setStyleName("errorMsg");
    DocsFolderItem dh = null;
 
    HorizontalPanel  docRecord = null;
   
    Anchor doc = null;
    Image docIcon = null;
   
   
    if(itemsList.size() >0){
      for (int y =0; y< itemsList.size(); y++){
        docRecord = new HorizontalPanel();
        docRecord.setSpacing(3);
        dh = new DocsFolderItem(itemsList.get(y));
       
        docIcon = new Image(GadgetUtils.getGadgetIconURL(dh.getDocType(), null, false));
        docRecord.add(docIcon);
       
        doc = new Anchor();
        doc.setHTML(dh.getTitle());
        doc.setHref(dh.getDocURL());
          doc.setTarget("_blank");
       
          docRecord.add(doc);
        
          documentsListPanel.add(docRecord);
View Full Code Here

Examples of com.gadglet.client.gwt.google.DocsFolderItem

 
  @Override
  protected void  processResults(){
   
    selectFolder.setVisible(false);
    DocsFolderItem docsFolderItem = null;
    TreeItem treeItem  = null;
    Tree root = new Tree();
    TreeLabel itemLabel = null;
     
      for (int y =0; y< itemsList.size(); y++){
         
        docsFolderItem = new DocsFolderItem(itemsList.get(y));
         
         // find root level foders
          if (!docsFolderItem.hasParent()){
          
            itemLabel = new TreeLabel(docsFolderItem.getID(),docsFolderItem.getTitle());
           
            //itemLabel.addStyleName("treeItemSelect");
            itemLabel.addClickHandler(new ClickHandler() {
              @Override
            public void onClick(ClickEvent event) {
View Full Code Here

Examples of com.gadglet.client.gwt.google.DocsFolderItem

   
   
  }

  void buildSubFoders(DocsFolderItem currentItem, TreeItem currentTreeItem){
    DocsFolderItem subFolderItem = null;
    TreeItem subTreeItem  = null;
    TreeLabel itemLabel = null;
    for (int y =0; y< itemsList.size(); y++){
      subFolderItem = new DocsFolderItem(itemsList.get(y));
         
      // check for siblings
      if(currentItem.getID().equals(subFolderItem.getParentID()))
      {
        itemLabel = new TreeLabel(subFolderItem.getID(),subFolderItem.getTitle());
        // itemLabel.addStyleName("treeItemSelect");
        itemLabel.addClickHandler(new ClickHandler() {
              @Override
            public void onClick(ClickEvent event) {
                // set the User pref
View Full Code Here

Examples of com.gadglet.client.gwt.google.DocsFolderItem

   
   
   
    Label emptyFolder = new Label(prefs.getMsg("gadgetLabelemptyFolder"));
    emptyFolder.setStyleName("errorMsg");
    DocsFolderItem dh = null;
 
    HorizontalPanel  docRecord = null;
   
    Anchor doc = null;
    Image docIcon = null;
   
   
    if(itemsList.size() >0){
      for (int y =0; y< itemsList.size(); y++){
        docRecord = new HorizontalPanel();
        docRecord.setSpacing(3);
        dh = new DocsFolderItem(itemsList.get(y));
       
        docIcon = new Image(GadgetUtils.getGadgetIconURL(dh.getDocType(), null, false));
        docRecord.add(docIcon);
       
        doc = new Anchor();
        doc.setHTML(dh.getTitle());
        doc.setHref(dh.getDocURL());
          doc.setTarget("_blank");
       
          docRecord.add(doc);
        
          documentListPanel.add(docRecord);
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.