|
|
@ -7,11 +7,15 @@ import com.fr.chart.web.ChartHyperRelateFloatLink; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.designer.TargetComponent; |
|
|
|
import com.fr.design.designer.TargetComponent; |
|
|
|
|
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
import com.fr.design.fun.HyperlinkProvider; |
|
|
|
import com.fr.design.fun.HyperlinkProvider; |
|
|
|
import com.fr.design.gui.controlpane.NameObjectCreator; |
|
|
|
import com.fr.design.gui.controlpane.NameObjectCreator; |
|
|
|
import com.fr.design.gui.controlpane.NameableCreator; |
|
|
|
import com.fr.design.gui.controlpane.NameableCreator; |
|
|
|
import com.fr.design.gui.imenutable.UIMenuNameableCreator; |
|
|
|
import com.fr.design.gui.imenutable.UIMenuNameableCreator; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.BaseJForm; |
|
|
|
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
import com.fr.design.module.DesignModuleFactory; |
|
|
|
import com.fr.design.module.DesignModuleFactory; |
|
|
|
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.js.EmailJavaScript; |
|
|
|
import com.fr.js.EmailJavaScript; |
|
|
@ -75,6 +79,11 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane { |
|
|
|
return Inter.getLocText("FR-Designer_Add_Hyperlink"); |
|
|
|
return Inter.getLocText("FR-Designer_Add_Hyperlink"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected AddItemMenuDef getAddItemMenuDef (NameableCreator[] creators) { |
|
|
|
|
|
|
|
return new AddVanChartItemMenuDef(creators); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void populate(NameJavaScriptGroup nameHyperlink_array) { |
|
|
|
public void populate(NameJavaScriptGroup nameHyperlink_array) { |
|
|
|
java.util.List<NameObject> list = new ArrayList<NameObject>(); |
|
|
|
java.util.List<NameObject> list = new ArrayList<NameObject>(); |
|
|
|
if (nameHyperlink_array != null) { |
|
|
|
if (nameHyperlink_array != null) { |
|
|
@ -218,4 +227,36 @@ public class VanChartHyperLinkPane extends VanChartUIListControlPane { |
|
|
|
} |
|
|
|
} |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected class AddVanChartItemMenuDef extends AddItemMenuDef{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public AddVanChartItemMenuDef(NameableCreator[] creators) { |
|
|
|
|
|
|
|
super(creators); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected boolean whetherAdd(String itemName){ |
|
|
|
|
|
|
|
JTemplate jTemplate = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
|
|
|
if (jTemplate == null) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
//先屏蔽掉这个,之后还有别的
|
|
|
|
|
|
|
|
String[] names = {Inter.getLocText("FR-Hyperlink_Chart_Float"), Inter.getLocText("FR-Hyperlink_Chart_Cell")}; |
|
|
|
|
|
|
|
for (String name : names){ |
|
|
|
|
|
|
|
if(!jTemplate.isJWorkBook() && ComparatorUtils.equals(itemName,name)){ |
|
|
|
|
|
|
|
if(jTemplate.getEditingReportIndex() == BaseJForm.ELEMENTCASE_TAB && ComparatorUtils.equals(itemName, names[0])){ |
|
|
|
|
|
|
|
//表单报表块中图表悬浮元素超链,只屏蔽联动悬浮元素
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} else if(jTemplate.getEditingReportIndex() == BaseJForm.FORM_TAB) { |
|
|
|
|
|
|
|
//表单图表超链屏蔽掉联动悬浮元素和联动单元格
|
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
String formName = Inter.getLocText("Hyperlink-Form_link"); |
|
|
|
|
|
|
|
return !(jTemplate.isJWorkBook() && ComparatorUtils.equals(itemName, formName)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|