Package com.google.gwt.cell.client

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


 
   class ActionColumn extends Column<PendingAction, Boolean>
   {
      public ActionColumn()
      {
         super(new CheckboxCell(false, false));
        
         setFieldUpdater(new FieldUpdater<PendingAction,Boolean>() {
            public void update(int index, PendingAction action, Boolean value)
            {
               List<PendingAction> actions = actionsDataProvider_.getList();
View Full Code Here


   // Private methods ---------------------------------------------------------

   private void createColumns()
   {
      checkColumn_ = new Column<RObjectEntry, Boolean>(
            new CheckboxCell(false, false))
            {
               @Override
               public Boolean getValue(RObjectEntry value)
               {
                  return selection_.isSelected(value);
               }
            };
      addColumn(checkColumn_);
      checkHeader_ = new Header<Boolean>(new CheckboxCell())
      {
         @Override
         public Boolean getValue()
         {
            return selectAll_;
View Full Code Here

  
   class LoadedColumn extends Column<PackageInfo, Boolean>
   {
      public LoadedColumn()
      {
         super(new CheckboxCell(false, false));
        
         setFieldUpdater(new FieldUpdater<PackageInfo,Boolean>() {
            @Override
            public void update(int index, PackageInfo packageInfo, Boolean value)
            {
View Full Code Here

   }
  
   private Column<FileSystemItem, Boolean> addSelectionColumn()
   {
      Column<FileSystemItem, Boolean> checkColumn =
         new Column<FileSystemItem, Boolean>(new CheckboxCell(true, false) {
            @Override
            public void render(Context context, Boolean value, SafeHtmlBuilder sb)
            {
               // don't render the check box if its for the parent path
               if (parentPath_ == null || context.getIndex() > 0)
View Full Code Here

                return title;
            }
        };

        Column<DeploymentRecord, Boolean> checkBoxColumn =
                new Column<DeploymentRecord, Boolean>(new CheckboxCell()) {

                    @Override
                    public Boolean getValue(DeploymentRecord object) {
                        return selectionModel.isSelected(object);
                    }
View Full Code Here

                return serverGroup.getProfileName();
            }
        };

        Column<ServerGroupSelection, Boolean> selectedColumn =
                new Column<ServerGroupSelection, Boolean>(new CheckboxCell()) {

                    @Override
                    public Boolean getValue(ServerGroupSelection object) {
                        return selectionModel.isSelected(object);
                    }
View Full Code Here

                setModified(true);
            }
        });

        // columns
        Column<Role, Boolean> checkColumn = new Column<Role, Boolean>(new CheckboxCell(true, false)) {
            @Override
            public Boolean getValue(Role role) {
                // Get the value from the selection model.
                return selectionModel.isSelected(role);
            }
View Full Code Here

        table.setSelectionModel(selectionModel, DefaultSelectionEventManager.<Role>createCheckboxManager());

        // columns
        Column<Role, Boolean> checkColumn = new

                Column<Role, Boolean>(new CheckboxCell(true, false)) {
                    @Override
                    public Boolean getValue(Role role) {
                        // Get the value from the selection model.
                        return selectionModel.isSelected(role);
                    }
View Full Code Here

      final Column<Dto, ?> column;

      if (moduleDto.getFieldById(id) instanceof FieldBoolean) {
        // TODO make this read-only
        column = new Column<Dto, Boolean>(new CheckboxCell()) {
          @Override
          public Boolean getValue(final Dto object) {
            return (Boolean) object.get(id);
          }
        };
View Full Code Here

    }
  }
 
  private void addDeleteColumn() {
    if (allowDelete) { // only attach delete column of the user is allowed to delete
      final Column<Dto, Boolean> delCol = new Column<Dto, Boolean>(new CheckboxCell()) {
        @Override
        public Boolean getValue(Dto object) {
          return false;
        }
      };
      delCol.setFieldUpdater(new FieldUpdater<Dto, Boolean>() {
        @Override
        public void update(int index, Dto object, Boolean value) {
          // mark this item for later deletion
          object.set("deleteFlag", value);
        }
      });

      // TODO how can we observe checkbox state changes?
      final Header<Boolean> h = new Header<Boolean>(new CheckboxCell()) {
        @Override
        public Boolean getValue() {
          return false;
        }
      };
View Full Code Here

TOP

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

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.