|
|
|
@ -11,7 +11,7 @@ import com.fr.grid.selection.Selection;
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.privilege.finegrain.WidgetPrivilegeControl; |
|
|
|
|
import com.fr.report.cell.CellElement; |
|
|
|
|
import com.fr.report.cell.DefaultTemplateCellElement; |
|
|
|
|
import com.fr.report.cell.DefaultPredefinedTemplateCellElement; |
|
|
|
|
import com.fr.report.cell.TemplateCellElement; |
|
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
|
|
|
|
|
@ -59,7 +59,7 @@ public class CellWidgetPropertyPane extends BasicPane {
|
|
|
|
|
|
|
|
|
|
public void populate(TemplateCellElement cellElement) { |
|
|
|
|
if (cellElement == null) {// 利用默认的CellElement.
|
|
|
|
|
cellElement = new DefaultTemplateCellElement(0, 0, null); |
|
|
|
|
cellElement = new DefaultPredefinedTemplateCellElement(0, 0, null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Widget cellWidget = cellElement.getWidget(); |
|
|
|
@ -88,7 +88,7 @@ public class CellWidgetPropertyPane extends BasicPane {
|
|
|
|
|
final TemplateElementCase tplEC = ePane.getEditingElementCase(); |
|
|
|
|
TemplateCellElement editCellElement = tplEC.getTemplateCellElement(cs.getColumn(), cs.getRow()); |
|
|
|
|
if (editCellElement == null) { |
|
|
|
|
editCellElement = new DefaultTemplateCellElement(cs.getColumn(), cs.getRow()); |
|
|
|
|
editCellElement = new DefaultPredefinedTemplateCellElement(cs.getColumn(), cs.getRow()); |
|
|
|
|
} |
|
|
|
|
this.cellElement = editCellElement; |
|
|
|
|
this.populate(editCellElement); |
|
|
|
|