Package com.google.gwt.user.cellview.client

Examples of com.google.gwt.user.cellview.client.TextHeader


           
          },
          "Remove package");

      // add common columns
      packagesTable_.addColumn(loadedColumn, new TextHeader(""));
      packagesTable_.addColumn(nameColumn, new TextHeader("Name"));
      packagesTable_.addColumn(descColumn, new TextHeader("Description"));
      packagesTable_.addColumn(versionColumn, new TextHeader("Version"));
      packagesTable_.setColumnWidth(loadedColumn, 30, Unit.PX);

      // set up Packrat-specific columns
      if (packratContext_ != null &&
          packratContext_.isModeOn())
      {
         Column<PackageInfo, PackageInfo> packratVersionColumn =
            new Column<PackageInfo, PackageInfo>(new VersionCell(true)) {

               @Override
               public PackageInfo getValue(PackageInfo object)
               {
                  return object;
               }
         };
     
         TextColumn<PackageInfo> packratSourceColumn =
               new TextColumn<PackageInfo>() {
                  @Override
                  public String getValue(PackageInfo pkgInfo)
                  {
                     if (pkgInfo.getInPackratLibary())
                     {
                        String source = pkgInfo.getPackratSource();
                        if (source.equals("github"))
                           return "GitHub";
                        else if (source.equals("Bioconductor"))
                           return "BioC";
                        else if (source.equals("source"))
                           return "Source";
                        else
                           return source;
                     }
                     else
                        return "";
                  }
         };

         packagesTable_.addColumn(packratVersionColumn, new TextHeader("Packrat"));
         packagesTable_.addColumn(packratSourceColumn, new TextHeader("Source"));

         // distribute columns for extended package information
         packagesTable_.setColumnWidth(nameColumn, 20, Unit.PCT);
         packagesTable_.setColumnWidth(descColumn, 40, Unit.PCT);
         packagesTable_.setColumnWidth(versionColumn, 15, Unit.PCT);
         packagesTable_.setColumnWidth(packratVersionColumn, 15, Unit.PCT);
         packagesTable_.setColumnWidth(packratSourceColumn, 10, Unit.PCT);
        
         // highlight rows that are out of sync in packrat
         packagesTable_.setRowStyles(new PackageRowStyles());
      }
      else
      {
         // distribute columns for non-extended package information
         packagesTable_.setColumnWidth(nameColumn, 25, Unit.PCT);
         packagesTable_.setColumnWidth(descColumn, 60, Unit.PCT);
         packagesTable_.setColumnWidth(versionColumn, 15, Unit.PCT);
      }
    
      // remove column is common
      packagesTable_.addColumn(removeColumn, new TextHeader(""));
      packagesTable_.setColumnWidth(removeColumn, 35, Unit.PX);

      packagesTable_.setTableBuilder(new
            PackageTableBuilder(packagesTable_));
      packagesTable_.setSkipRowHoverCheck(true);
View Full Code Here


                presenter.open( row );
            }
        } );

        inboxPagedTable.addColumn( openColumn,
                                   new TextHeader( InboxConstants.INSTANCE.open() ) );

        initWidget( uiBinder.createAndBindUi( this ) );
    }
View Full Code Here

                             "downloading",
                             "resizable=no,scrollbars=yes,status=no" );
            }
        } );

        pagedJarTable.addColumn( downloadColumn, new TextHeader( "Download" ) );

        initWidget( uiBinder.createAndBindUi( this ) );
    }
View Full Code Here

                    }
                } ).loadPOMStringFromJar( row.getPath() );
            }
        } );
        columnPicker.addColumn( openColumn,
                                new TextHeader( "View Artifact Detail" ),
                                true );
    }
View Full Code Here

                               String value) {
                openSelectedCommand.open( row.getUserName() );
            }
        } );
        columnPicker.addColumn( openColumn,
                                new TextHeader( constants.Open() ),
                                true );

        cellTable.setWidth( "100%" );
        columnPickerButton = columnPicker.createToggleButton();
    }   
View Full Code Here

                               String value) {
                clientFactory.getPlaceController().goTo( new AssetEditorPlace( row.getUuid() ));
            }
        } );
        columnPicker.addColumn( openColumn,
                                new TextHeader( constants.Open() ),
                                true );

    }
View Full Code Here

                               String value) {
                openSelectedCommand.open(row.getUserName());
            }
        });
        columnPicker.addColumn(openColumn,
                new TextHeader(constants.Open()),
                true);

        cellTable.setWidth("100%");
        columnPickerButton = columnPicker.createToggleButton();
    }
View Full Code Here

                               String value) {
                clientFactory.getPlaceController().goTo( new AssetEditorPlace( row.getUuid() ) );
            }
        } );
        columnPicker.addColumn( openColumn,
                new TextHeader( constants.Open() ),
                true );

        cellTable.setWidth( "100%" );
        columnPickerButton = columnPicker.createToggleButton();
View Full Code Here

                }
            }
        } );

        table.addColumn( aliasColumn,
                         new TextHeader( GlobalsEditorConstants.INSTANCE.alias() ) );
        table.addColumn( classNameColumn,
                         new TextHeader( GlobalsEditorConstants.INSTANCE.className() ) );
        table.addColumn( deleteGlobalColumn,
                         GlobalsEditorConstants.INSTANCE.remove() );

        //Link data
        dataProvider.addDataDisplay( table );
View Full Code Here

                               String value) {
                clientFactory.getPlaceController().goTo( new AssetEditorPlace( row.getUuid() ));
            }
        } );
        columnPicker.addColumn( openColumn,
                                new TextHeader( constants.Open() ),
                                true );

    }
View Full Code Here

TOP

Related Classes of com.google.gwt.user.cellview.client.TextHeader

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.