All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.extjs.gxt.ui.client.widget.grid.CellEditor Maven / Gradle / Ivy

There is a newer version: 2.3.1-gwt22
Show newest version
/*
 * Sencha GXT 2.3.0 - Sencha for GWT
 * Copyright(c) 2007-2013, Sencha, Inc.
 * [email protected]
 * 
 * http://www.sencha.com/products/gxt/license/
 */
 package com.extjs.gxt.ui.client.widget.grid;

import com.extjs.gxt.ui.client.widget.Editor;
import com.extjs.gxt.ui.client.widget.form.Field;
import com.extjs.gxt.ui.client.widget.form.TriggerField;

/**
 * Cell based Editor for Grid.
 */
public class CellEditor extends Editor {

  /**
   * The current row.
   */
  public int row;

  /**
   * The current column.
   */
  public int col;

  /**
   * Creates a new cell editor.
   * 
   * @param field the editor's field
   */
  public CellEditor(Field field) {
    super(field);
    setAlignment("tl-tl");
    addStyleName("x-small-editor x-grid-editor");
    shim = false;
    setShadow(false);
    if (field instanceof TriggerField) {
      ((TriggerField) field).setMonitorTab(false);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy