Package com.google.gwt.cell.client

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


    } else {
      final ArrayList<String> optionList = new ArrayList<String>();
      for (final String o : options) {
        optionList.add(o);
      }
      final SelectionCell optionsCell = new SelectionCell(optionList);
 
      return new Column<Dto, String>(optionsCell) {
        @Override
        public String getValue(Dto object) {
          return String.valueOf(object.get(fieldName));
View Full Code Here


        });
        return col;
    }

    private Column<T, String> createPriorityColumn(List<String> priorityNames) {
        Column<T, String> col = new Column<T, String>(new SelectionCell(
            priorityNames)) {

            @Override
            public String getValue(T t) {
                return presenter.getPriority(t);
View Full Code Here

        col.setSortable(true);
        return col;
    }

    private Column<T, String> createStatusColumn(List<String> statusNames) {
        Column<T, String> col = new Column<T, String>(new SelectionCell(
            statusNames)) {

            @Override
            public String getValue(T t) {
                return presenter.getStatus(t);
View Full Code Here

    final Category[] categories = ContactDatabase.get().queryCategories();
    List<String> categoryNames = new ArrayList<String>();
    for (Category category : categories) {
      categoryNames.add(category.getDisplayName());
    }
    SelectionCell categoryCell = new SelectionCell(categoryNames);
    Column<ContactInfo, String> categoryColumn = new Column<ContactInfo, String>(
        categoryCell) {
      @Override
      public String getValue(ContactInfo object) {
        return object.getCategory().getDisplayName();
View Full Code Here

    final Category[] categories = ContactDatabase.get().queryCategories();
    List<String> categoryNames = new ArrayList<String>();
    for (Category category : categories) {
      categoryNames.add(category.getDisplayName());
    }
    SelectionCell categoryCell = new SelectionCell(categoryNames);
    Column<ContactInfo, String> categoryColumn = new Column<ContactInfo, String>(categoryCell) {
      @Override
      public String getValue(ContactInfo object) {
        return object.getCategory().getDisplayName();
      }
View Full Code Here

   * @author Pal Hargitai
   */
  public class BoodschapEenheidColumn extends Column<Boodschap.Builder, String> {
    /** Default constructor. */
    public BoodschapEenheidColumn() {
      super(new SelectionCell(HoeveelheidEenheid.EENHEDEN));
      setFieldUpdater(new BoodschapEenheidUpdate());
    }
View Full Code Here

        final List<String> sessionTypes = new ArrayList<String>(SessionType.values().length);
        for (final SessionType activeType : SessionType.values()) {
            sessionTypes.add(activeType.toString().toLowerCase());
        }

        final SelectionCell typeCell = new SelectionCell(sessionTypes);
        final Column<ServiceKSessionConfig, String> typeColumn = new Column<ServiceKSessionConfig, String>(typeCell) {
            @Override
            public String getValue(ServiceKSessionConfig object) {
                return object.getType().toString().toLowerCase();
            }
View Full Code Here

                    return object.getName();
                }
            };
        }
        else {
            nameCol = new Column<Property, String>(new SelectionCell(options)) {
                @Override
                public String getValue(Property object) {
                    return object.getName();
                }
            };
View Full Code Here

        dataProvider.addDataDisplay(table);

        // Add Name column
        Column<FSActionData, String> nameCol = null;

        nameCol = new Column<FSActionData, String>(new SelectionCell(Arrays.asList("", "delete", "mkdir", "move",
                "chmod", "touchz"))) {
            @Override
            public String getValue(FSActionData object) {
                return object.getOp();
            }
View Full Code Here

        final List<String> sessionTypes = new ArrayList<String>(SessionType.values().length);
        for (final SessionType activeType : SessionType.values()) {
            sessionTypes.add(activeType.toString().toLowerCase());
        }

        final SelectionCell typeCell = new SelectionCell(sessionTypes);
        final Column<ServiceKSessionConfig, String> typeColumn = new Column<ServiceKSessionConfig, String>(typeCell) {
            @Override
            public String getValue(ServiceKSessionConfig object) {
                return object.getType().toString().toLowerCase();
            }
View Full Code Here

TOP

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

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.