yaoh.wu
7 years ago
5 changed files with 84 additions and 52 deletions
@ -1,42 +1,43 @@ |
|||||||
package com.fr.design.gui.xpane; |
package com.fr.design.gui.xpane; |
||||||
|
|
||||||
|
import com.fr.design.form.javascript.FormEmailPane; |
||||||
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.frpane.HyperlinkGroupPane; |
import com.fr.design.gui.frpane.HyperlinkGroupPane; |
||||||
import com.fr.design.form.javascript.FormEmailPane; |
|
||||||
import com.fr.design.gui.frpane.HyperlinkGroupPaneActionProvider; |
import com.fr.design.gui.frpane.HyperlinkGroupPaneActionProvider; |
||||||
import com.fr.general.ComparatorUtils; |
import com.fr.general.ComparatorUtils; |
||||||
import com.fr.general.Inter; |
import com.fr.general.Inter; |
||||||
import com.fr.js.EmailJavaScript; |
import com.fr.js.EmailJavaScript; |
||||||
|
|
||||||
public class FormHyperlinkGroupPane extends HyperlinkGroupPane{ |
public class FormHyperlinkGroupPane extends HyperlinkGroupPane { |
||||||
private static FormHyperlinkGroupPane singleton; |
private static FormHyperlinkGroupPane singleton; |
||||||
|
|
||||||
protected FormHyperlinkGroupPane(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) { |
protected FormHyperlinkGroupPane(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) { |
||||||
super(hyperlinkGroupPaneActionProvider); |
super(hyperlinkGroupPaneActionProvider); |
||||||
} |
} |
||||||
|
|
||||||
public synchronized static FormHyperlinkGroupPane getInstance(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) { |
public synchronized static FormHyperlinkGroupPane getInstance(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) { |
||||||
if (singleton == null) { |
if (singleton == null) { |
||||||
singleton = new FormHyperlinkGroupPane(hyperlinkGroupPaneActionProvider); |
singleton = new FormHyperlinkGroupPane(hyperlinkGroupPaneActionProvider); |
||||||
} |
} |
||||||
return singleton; |
return singleton; |
||||||
} |
} |
||||||
|
|
||||||
/** |
/** |
||||||
* 生成添加按钮的NameableCreator |
* 生成添加按钮的NameableCreator |
||||||
* 由于表单报表块的单元格超链和单元格条件属性超链中的emailPane都要用表单的emailPane,这里调整下 |
* 由于表单报表块的单元格超链和单元格条件属性超链中的emailPane都要用表单的emailPane,这里调整下 |
||||||
* |
* |
||||||
* @return 返回Nameable按钮数组. |
* @return 返回Nameable按钮数组. |
||||||
*/ |
*/ |
||||||
public NameableCreator[] createNameableCreators() { |
@Override |
||||||
NameableCreator[] creators = super.createNameableCreators(); |
public NameableCreator[] createNameableCreators() { |
||||||
for (int i=0; i<creators.length; i++) { |
NameableCreator[] creators = super.createNameableCreators(); |
||||||
if (ComparatorUtils.equals(creators[i].menuName(), Inter.getLocText("FR-Designer_Email"))) { |
for (int i = 0; i < creators.length; i++) { |
||||||
creators[i] = new NameObjectCreator(Inter.getLocText("FR-Designer_Email"), EmailJavaScript.class, FormEmailPane.class); |
if (ComparatorUtils.equals(creators[i].menuName(), Inter.getLocText("FR-Designer_Email"))) { |
||||||
break; |
creators[i] = new NameObjectCreator(Inter.getLocText("FR-Designer_Email"), EmailJavaScript.class, FormEmailPane.class); |
||||||
} |
break; |
||||||
} |
} |
||||||
return creators; |
} |
||||||
} |
return creators; |
||||||
|
} |
||||||
} |
} |
Loading…
Reference in new issue