Package com.google.gwt.cell.client

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


      }
    });

    // Add a date column to show the birthday.
    Column<Contact, Date> dateColumn = new Column<Contact, Date>(
        new DatePickerCell()) {
      @Override
      public Date getValue(Contact object) {
        return object.birthday;
      }
    };
View Full Code Here


        }
         
        });
       
        //Columna inicio
        DatePickerCell tx_inicio = new DatePickerCell(DateTimeFormat.getFormat(ffecha));
       
        Column<TareaDTO, Date> col_inicio = new Column<TareaDTO, Date>(tx_inicio) {
          @Override
          public Date getValue(TareaDTO object) {
            return object.inicio;
          }
        };
        PSeleccion.tabla.addColumn(col_inicio, constants.inicio());
        col_inicio.setFieldUpdater(new FieldUpdater<TareaDTO, Date>(){

        @Override
        public void update(int index, TareaDTO object, Date value) {
          // TODO Auto-generated method stub   
          object.inicio = value;
         
          if(object.inicio.before(PSeleccion.fecha_ini)){
            PSeleccion.canvas.clear();
            PSeleccion.crea_gantt();
            PSeleccion.cargarTareas();
          }
         
          PSeleccion.actualizarDibujo(PSeleccion.proyecto.tareas.indexOf(object), object.inicio, object.fin);
        }
         
        });
       
        //Columna fin
        DatePickerCell tx_fin = new DatePickerCell(DateTimeFormat.getFormat(ffecha));
        Column<TareaDTO, Date> col_fin = new Column<TareaDTO, Date>(tx_fin) {
          @Override
          public Date getValue(TareaDTO object) {
            return object.fin;
          }
View Full Code Here

      addColumn(nameColumn, "Name");
      addColumnStyleName(1, "columnFill");
      addColumnStyleName(1, resources.cellTableStyle().columnName());

      dateColumn =
          new Column<TaskProxy, Date>(new DatePickerCell(DateTimeFormat
              .getFormat(PredefinedFormat.MONTH_ABBR_DAY))) {
            @Override
            public Date getValue(TaskProxy task) {
              Date dueDate = task.getDueDate();
              return dueDate == null ? new Date() : dueDate;
View Full Code Here

TOP

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

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.