PlotFillsForm.js
854 Bytes
/**
* Project : AMDA-NG
* Name : PlotFillsForm.js
* @class amdaPlotComp.PlotFillsForm
* @extends amdaPlotComp.PlotStandardForm
* @brief Form to define a list of fill
* @author Benjamin Renard
* @version $Id: PlotFillsForm.js benjamin $
*/
Ext.define('amdaPlotComp.PlotFillsForm', {
extend: 'amdaPlotComp.PlotStandardForm',
setObject : function(object) {
this.object = object;
if (this.object != null)
this.loadRecord(this.object);
},
getFormItems: function() {
var me = this;
return [
{
xtype: 'button',
text: 'Add new fill',
iconCls: 'icon-add',
handler : function() {
var fillObject = me.object.createNewFill();
me.crtTree.buildPanelAdditionalObjectsNode(me.object, fillObject);
}
}
];
}
});