Package com.google.gwt.cell.client

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


      ListHandler<ContactInfo> sortHandler) {
    // Checkbox column. This table will uses a checkbox column for selection.
    // Alternatively, you can call dataGrid.setSelectionEnabled(true) to enable
    // mouse selection.
    Column<ContactInfo, Boolean> checkColumn =
        new Column<ContactInfo, Boolean>(new CheckboxCell(true, false)) {
          @Override
          public Boolean getValue(ContactInfo object) {
            // Get the value from the selection model.
            return selectionModel.isSelected(object);
          }
View Full Code Here


     
    initWidget(uiBinder.createAndBindUi(this));
  }

  private void initTableColumns(final MultiSelectionModel<DjangoPackage> selectionModel){
    Column<DjangoPackage, Boolean> checkColumn = new Column<DjangoPackage, Boolean>(new CheckboxCell(true)) {
      @Override
      public Boolean getValue(DjangoPackage object) {
        // Get the value from the selection model.
        return selectionModel.isSelected(object);
      }
View Full Code Here

    }

    private final CellTable<T> cellTable;

    public SelectionColumn(CellTable<T> cellTable) {
        super(new CheckboxCell(true));
        this.cellTable = cellTable;
        addUpdater();
    }
View Full Code Here

    private class CheckColumn extends Column<TransUnitReplaceInfo, Boolean> {

        private SelectionModel<TransUnitReplaceInfo> selectionModel;

        public CheckColumn(SelectionModel<TransUnitReplaceInfo> selectionModel) {
            super(new CheckboxCell(true, false));
            this.selectionModel = selectionModel;
        }
View Full Code Here

        private boolean checked;
        private HandlerManager handlerManager;

        public CheckboxHeader() {
            super(new CheckboxCell());
            checked = false;
        }
View Full Code Here

    private static TasksTableResources resources = GWT.create(TasksTableResources.class);

    public TasksTable() {
      super(20, resources);

      doneColumn = new Column<TaskProxy, Boolean>(new CheckboxCell()) {
        @Override
        public Boolean getValue(TaskProxy object) {
          return object.isDone() == Boolean.TRUE;
        }
      };
View Full Code Here

    }

    private final CellTable<T> cellTable;

    public SelectionColumn(CellTable<T> cellTable) {
        super(new CheckboxCell(true));
        this.cellTable = cellTable;
        addUpdater();
    }
View Full Code Here

    }

    // Make a new Cell for Boolean columns
    private DecisionTableCellValueAdaptor< ? extends Comparable< ? >, DTColumnConfig> makeBooleanCell() {
        return new DecisionTableCellValueAdaptor<Boolean, DTColumnConfig>( new CheckboxCell() );
    }
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

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.