10 changed files with 47 additions and 30 deletions
@ -1,17 +0,0 @@
|
||||
package com.fr.design.designer.beans.actions; |
||||
|
||||
import com.fr.design.actions.TemplateComponentAction; |
||||
import com.fr.design.mainframe.FormDesigner; |
||||
|
||||
public abstract class FormEditAction extends TemplateComponentAction<FormDesigner> { |
||||
|
||||
protected FormEditAction(FormDesigner t) { |
||||
super(t); |
||||
} |
||||
|
||||
@Override |
||||
public void update() { |
||||
this.setEnabled(true); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,39 @@
|
||||
package com.fr.design.designer.beans.actions; |
||||
|
||||
import com.fr.design.actions.TemplateComponentAction; |
||||
import com.fr.design.mainframe.FormDesigner; |
||||
import com.fr.plugin.ExtraClassManager; |
||||
import com.fr.stable.ReportFunctionProcessor; |
||||
import com.fr.stable.fun.FunctionProcessor; |
||||
|
||||
import javax.swing.JButton; |
||||
import java.awt.event.ActionEvent; |
||||
|
||||
public abstract class FormWidgetEditAction extends TemplateComponentAction<FormDesigner> { |
||||
|
||||
protected FormWidgetEditAction(FormDesigner t) { |
||||
super(t); |
||||
} |
||||
|
||||
@Override |
||||
public void update() { |
||||
this.setEnabled(true); |
||||
} |
||||
|
||||
@Override |
||||
public void actionPerformed(ActionEvent 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); |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue