|
|
@ -3,12 +3,7 @@ package com.fr.design.designer.beans.actions; |
|
|
|
import com.fr.design.actions.TemplateComponentAction; |
|
|
|
import com.fr.design.actions.TemplateComponentAction; |
|
|
|
import com.fr.design.designer.beans.actions.behavior.UpdateBehavior; |
|
|
|
import com.fr.design.designer.beans.actions.behavior.UpdateBehavior; |
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
import com.fr.plugin.ExtraClassManager; |
|
|
|
|
|
|
|
import com.fr.stable.ReportFunctionProcessor; |
|
|
|
|
|
|
|
import com.fr.stable.fun.FunctionProcessor; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
|
|
|
|
|
|
|
public abstract class FormWidgetEditAction extends TemplateComponentAction<FormDesigner> { |
|
|
|
public abstract class FormWidgetEditAction extends TemplateComponentAction<FormDesigner> { |
|
|
@ -32,17 +27,6 @@ public abstract class FormWidgetEditAction extends TemplateComponentAction<FormD |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
public void actionPerformed(ActionEvent evt) { |
|
|
|
super.actionPerformed(evt); |
|
|
|
super.actionPerformed(evt); |
|
|
|
// 记录功能点
|
|
|
|
|
|
|
|
FunctionProcessor processor = ExtraClassManager.getInstance().getFunctionProcessor(); |
|
|
|
|
|
|
|
if (processor != null) { |
|
|
|
|
|
|
|
FunctionProcessor functionProcessor; |
|
|
|
|
|
|
|
if (evt.getSource() instanceof JButton) { |
|
|
|
|
|
|
|
functionProcessor = ReportFunctionProcessor.FORM_WIDGET_EDIT_TOOLBAR; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
functionProcessor = ReportFunctionProcessor.FORM_WIDGET_EDIT_POPUPMENU; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
processor.recordFunction(functionProcessor); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void setUpdateBehavior(UpdateBehavior updateBehavior) { |
|
|
|
public void setUpdateBehavior(UpdateBehavior updateBehavior) { |
|
|
|