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

com.extjs.gxt.ui.client.event.EditorEvent Maven / Gradle / Ivy

/*
 * Sencha GXT 2.3.1a - Sencha for GWT
 * Copyright(c) 2007-2013, Sencha, Inc.
 * [email protected]
 * 
 * http://www.sencha.com/products/gxt/license/
 */
 package com.extjs.gxt.ui.client.event;

import com.extjs.gxt.ui.client.core.El;
import com.extjs.gxt.ui.client.widget.Editor;

/**
 * Editor event type.
 * 
 * @see Editor
 */
public class EditorEvent extends DomEvent {

  /**
   * The underlying element bound to the editor.
   */
  private El boundEl;

  /**
   * The source editor.
   */
  private Editor editor;

  /**
   * The start value.
   */
  private Object startValue;

  /**
   * The current field value.
   */
  private Object value;

  public EditorEvent(Editor editor) {
    super(editor);
    this.editor = editor;
  }

  /**
   * Returns the bound element.
   * 
   * @return the element
   */
  public El getBoundEl() {
    return boundEl;
  }

  /**
   * Returns the source editor.
   * 
   * @return the editor
   */
  public Editor getEditor() {
    return editor;
  }

  /**
   * Returns the start value.
   * 
   * @return the start value
   */
  public Object getStartValue() {
    return startValue;
  }

  /**
   * Returns the value.
   * 
   * @return the value
   */
  public Object getValue() {
    return value;
  }

  /**
   * Sets the bound element.
   * 
   * @param boundEl the element
   */
  public void setBoundEl(El boundEl) {
    this.boundEl = boundEl;
  }

  /**
   * Sets the source editor.
   * 
   * @param editor the editor
   */
  public void setEditor(Editor editor) {
    this.editor = editor;
  }

  /**
   * Sets the start value.
   * 
   * @param startValue the start value
   */
  public void setStartValue(Object startValue) {
    this.startValue = startValue;
  }

  /**
   * Sets the value.
   * 
   * @param value the value
   */
  public void setValue(Object value) {
    this.value = value;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy