UNPKG

@qooxdoo/framework

Version:

The JS Framework for Coders

72 lines (57 loc) 1.76 kB
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2016 Martijn Evers, The Netherlands License: MIT: https://opensource.org/licenses/MIT See the LICENSE file in the project's top-level directory for details. Authors: * Martijn Evers (mever) ************************************************************************ */ /** * Form interface for all form widgets which have an * model object (i.e. {qx.core.Object}) as their primary data type. */ qx.Interface.define("qx.ui.form.IModelForm", { extend: qx.ui.form.IField, /* ***************************************************************************** EVENTS ***************************************************************************** */ events: { /** Fired when the value was modified */ changeValue: "qx.event.type.Data" }, /* ***************************************************************************** MEMBERS ***************************************************************************** */ members: { /* --------------------------------------------------------------------------- VALUE PROPERTY --------------------------------------------------------------------------- */ /** * Sets the element's value. * * @param value {qx.core.Object|null} The new value of the element. */ setValue(value) { return arguments.length == 1; }, /** * Resets the element's value to its initial value. */ resetValue() {}, /** * The element's user set value. * * @return {qx.core.Object|null} The value. */ getValue() {} } });