diff options
Diffstat (limited to 'webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/TextFieldCellEditorFactory.js')
-rw-r--r-- | webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/TextFieldCellEditorFactory.js | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/TextFieldCellEditorFactory.js b/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/TextFieldCellEditorFactory.js deleted file mode 100644 index 5496904aa2..0000000000 --- a/webapps/qooxdoo-0.6.5-sdk/frontend/framework/source/class/qx/ui/table/TextFieldCellEditorFactory.js +++ /dev/null @@ -1,60 +0,0 @@ -/* ************************************************************************ - - qooxdoo - the new era of web development - - http://qooxdoo.org - - Copyright: - 2006 STZ-IDA, Germany, http://www.stz-ida.de - - License: - LGPL: http://www.gnu.org/licenses/lgpl.html - EPL: http://www.eclipse.org/org/documents/epl-v10.php - See the LICENSE file in the project's top-level directory for details. - - Authors: - * Til Schneider (til132) - -************************************************************************ */ - -/* ************************************************************************ - -#module(ui_table) - -************************************************************************ */ - -/** - * A cell editor factory creating text fields. - */ -qx.OO.defineClass("qx.ui.table.TextFieldCellEditorFactory", qx.ui.table.CellEditorFactory, -function() { - qx.ui.table.CellEditorFactory.call(this); -}); - - -// overridden -qx.Proto.createCellEditor = function(cellInfo) { - var cellEditor = new qx.ui.form.TextField; - cellEditor.setAppearance("table-editor-textfield"); - cellEditor.originalValue = cellInfo.value; - cellEditor.setValue("" + cellInfo.value); - - cellEditor.addEventListener("appear", function() { - this.selectAll(); - }); - - return cellEditor; -} - - -// overridden -qx.Proto.getCellEditorValue = function(cellEditor) { - // Workaround: qx.ui.form.TextField.getValue() delivers the old value, so we use the - // value property of the DOM element directly - var value = cellEditor.getElement().value; - - if (typeof cellEditor.originalValue == "number") { - value = parseFloat(value); - } - return value; -} |