Browse Source

代码修改

master
mengao 7 years ago
parent
commit
59696f6e66
  1. 4
      designer_base/src/com/fr/design/gui/controlpane/AbstractNameableCreator.java
  2. 4
      designer_base/src/com/fr/design/gui/controlpane/NameableCreator.java
  3. 2
      designer_chart/src/com/fr/design/mainframe/chart/gui/other/ChartInteractivePane.java

4
designer_base/src/com/fr/design/gui/controlpane/AbstractNameableCreator.java

@ -4,7 +4,7 @@ import com.fr.base.BaseUtils;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.general.ComparatorUtils; import com.fr.general.ComparatorUtils;
import com.fr.general.NameObject; import com.fr.general.NameObject;
import com.fr.js.AbstractJavaScript; import com.fr.js.JavaScript;
import javax.swing.*; import javax.swing.*;
@ -75,7 +75,7 @@ public abstract class AbstractNameableCreator implements NameableCreator {
* get clazzOfObject * get clazzOfObject
* @return clazzOfObject * @return clazzOfObject
*/ */
public Class <? extends AbstractJavaScript>getClazz() { public Class <? extends JavaScript> getHyperlink() {
return this.clazzOfObject; return this.clazzOfObject;
} }

4
designer_base/src/com/fr/design/gui/controlpane/NameableCreator.java

@ -2,7 +2,7 @@ package com.fr.design.gui.controlpane;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.gui.ilist.ListModelElement; import com.fr.design.gui.ilist.ListModelElement;
import com.fr.js.AbstractJavaScript; import com.fr.js.JavaScript;
import com.fr.stable.Nameable; import com.fr.stable.Nameable;
import javax.swing.*; import javax.swing.*;
@ -18,7 +18,7 @@ public interface NameableCreator {
public Class<? extends BasicBeanPane> getUpdatePane(); public Class<? extends BasicBeanPane> getUpdatePane();
public Class <? extends AbstractJavaScript>getClazz(); public Class <? extends JavaScript> getHyperlink();
public Object acceptObject2Populate(Object ob); public Object acceptObject2Populate(Object ob);

2
designer_chart/src/com/fr/design/mainframe/chart/gui/other/ChartInteractivePane.java

@ -663,7 +663,7 @@ public class ChartInteractivePane extends BasicScrollPane<Chart> implements UIOb
Set<HyperlinkProvider> providers = ExtraDesignClassManager.getInstance().getArray(HyperlinkProvider.XML_TAG); Set<HyperlinkProvider> providers = ExtraDesignClassManager.getInstance().getArray(HyperlinkProvider.XML_TAG);
for (HyperlinkProvider provider : providers) { for (HyperlinkProvider provider : providers) {
NameableCreator nc = provider.createHyperlinkCreator(); NameableCreator nc = provider.createHyperlinkCreator();
paneMap.put(nc.getClazz(), nc.getUpdatePane()); paneMap.put(nc.getHyperlink(), nc.getUpdatePane());
} }
List<UIMenuNameableCreator> list = refreshList(paneMap); List<UIMenuNameableCreator> list = refreshList(paneMap);

Loading…
Cancel
Save