Package com.google.gwt.cell.client

Examples of com.google.gwt.cell.client.ClickableTextCell


   * @param headerText
   * @param valueUpdater
   * @param sortable
   */
  public CustomColumn(String propertyName, boolean sortable, FieldUpdater<T,V> fieldUpdater) {
    super((Cell)new ClickableTextCell());
    this.fieldUpdater = fieldUpdater;
    this.sortable = sortable;
    this.propertyName = propertyName;

    setSortable(isSortable());
View Full Code Here


   private void createNameColumn(SafeHtmlRenderer<String> renderer)
   {
      // the name of the object (simple text column)
      objectNameColumn_ = new Column<RObjectEntry, String>(
              new ClickableTextCell(renderer))
              {
                  @Override
                  public String getValue(RObjectEntry object)
                  {
                     return object.rObject.getName();
View Full Code Here

   private void createDescriptionColumn(SafeHtmlRenderer<String> renderer)
   {
      // the description *or* value of the object; when clicked, we'll view
      // or edit the data inside the object.
      objectDescriptionColumn_ = new Column<RObjectEntry, String>(
              new ClickableTextCell(renderer))
              {
                  @Override
                  public String getValue(RObjectEntry object)
                  {
                     return object.getDisplayValue();
View Full Code Here

               sb.appendHtmlConstant(object);
               return sb.toSafeHtml();
            }
         };
      objectExpandColumn_ = new Column<RObjectEntry, String>(
         new ClickableTextCell(expanderRenderer))
         {
            @Override
            public String getValue(RObjectEntry object)
            {
               String imageUri = "";
View Full Code Here

      super(cell);
      columnName_ = columnName;
      columnWidth_ = columnWidth;
      columnType_ = columnType;
      setSortable(true);
      header_ = new Header<String>(new ClickableTextCell())
      {
         @Override
         public String getValue()
         {
            return columnName_;
View Full Code Here

            }
         }
      });

      columns_.add(new ObjectGridColumn(
              new ClickableTextCell(filterRenderer_), "Name",
              selectionEnabled() ? 20 : 25,
              ObjectGridColumn.COLUMN_NAME, host_)
              {
                  @Override
                  public String getValue(RObjectEntry object)
                  {
                     return object.rObject.getName();
                  }
              });
      columns_.add(new ObjectGridColumn(
              new ClickableTextCell(), "Type", 15,
              ObjectGridColumn.COLUMN_TYPE, host_)
              {
                  @Override
                  public String getValue(RObjectEntry object)
                  {
                     return object.rObject.getType();
                  }
              });
      columns_.add(new ObjectGridColumn(
              new ClickableTextCell(), "Length", 10,
              ObjectGridColumn.COLUMN_LENGTH, host_)
              {
                  @Override
                  public String getValue(RObjectEntry object)
                  {
                     return (new Integer(object.rObject.getLength())).toString();
                  }
              });
      columns_.add(new ObjectGridColumn(
              new ClickableTextCell(), "Size", 12,
              ObjectGridColumn.COLUMN_SIZE, host_)
              {
                  @Override
                  public String getValue(RObjectEntry object)
                  {
                     return StringUtil.formatFileSize(object.rObject.getSize());
                  }
              });
      columns_.add(new ObjectGridColumn(
              new ClickableTextCell(filterRenderer_),
              "Value", 38,
              ObjectGridColumn.COLUMN_VALUE, host_)
              {
                  @Override
                  public String getValue(RObjectEntry object)
View Full Code Here

        dataGrid.addColumn( column );
        dataGrid.setColumnWidth( column, 10, Style.Unit.PCT );
    }

    private void addTextColumn() {
        Column<Failure, String> column = new Column<Failure, String>( new ClickableTextCell() ) {
            @Override
            public String getValue( Failure failure ) {
                return makeMessage( failure );
            }
View Full Code Here

        col.setSortable(true);
        return col;
    }

    private Column<T, String> createXColumn() {
        Column<T, String> col = new Column<T, String>(new ClickableTextCell()) {

            @Override
            public String getValue(T t) {
                return "x";
            }
View Full Code Here

  
   public LinkColumn(final ListDataProvider<T> dataProvider,
                     final OperationWithInput<T> onClicked,
                     final boolean alwaysUnderline)
   {
      super(new ClickableTextCell(){
        
         // render anchor using custom styles. detect selection and
         // add selected style to invert text color
         @Override
         protected void render(Context context,
View Full Code Here

         public String getValue(T obj) {
            return obj.getAsString(key_);
         }
      };
     
      header_ = new Header<String>(new ClickableTextCell()) {
         @Override
         public String getValue() {
            return headerLabel_;
         }
      };
View Full Code Here

TOP

Related Classes of com.google.gwt.cell.client.ClickableTextCell

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.