@qooxdoo/framework
Version:
The JS Framework for Coders
84 lines (64 loc) • 1.95 kB
JavaScript
/* ************************************************************************
qooxdoo - the new era of web development
http://qooxdoo.org
Copyright:
2004-2008 1&1 Internet AG, Germany, http://www.1und1.de
License:
MIT: https://opensource.org/licenses/MIT
See the LICENSE file in the project's top-level directory for details.
Authors:
* Sebastian Werner (wpbasti)
* Fabian Jakobs (fjakobs)
************************************************************************ */
/**
* Each object, which should be managed by a {@link RadioGroup} have to
* implement this interface.
*/
qx.Interface.define("qx.ui.form.IRadioItem",
{
/*
*****************************************************************************
EVENTS
*****************************************************************************
*/
events :
{
/** Fired when the item was checked or unchecked */
"changeValue" : "qx.event.type.Data"
},
/*
*****************************************************************************
MEMBERS
*****************************************************************************
*/
members :
{
/**
* Set whether the item is checked
*
* @param value {Boolean} whether the item should be checked
*/
setValue : function(value) {},
/**
* Get whether the item is checked
*
* @return {Boolean} whether the item it checked
*/
getValue : function() {},
/**
* Set the radiogroup, which manages this item
*
* @param value {qx.ui.form.RadioGroup} The radiogroup, which should
* manage the item.
*/
setGroup : function(value) {
this.assertInstance(value, qx.ui.form.RadioGroup);
},
/**
* Get the radiogroup, which manages this item
*
* @return {qx.ui.form.RadioGroup} The radiogroup, which manages the item.
*/
getGroup : function() {}
}
});