|
|
@ -7,13 +7,13 @@ import com.fr.design.hyperlink.AbstractHyperLinkPane; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.layout.FRGUIPaneFactory; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.design.utils.gui.GUICoreUtils; |
|
|
|
import com.fr.form.ui.ElementCaseEditorProvider; |
|
|
|
import com.fr.form.ui.ElementCaseEditorProvider; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.js.FormHyperlinkProvider; |
|
|
|
import com.fr.js.FormHyperlinkProvider; |
|
|
|
import com.fr.stable.ParameterProvider; |
|
|
|
import com.fr.stable.ParameterProvider; |
|
|
|
import com.fr.stable.bridge.StableFactory; |
|
|
|
import com.fr.stable.bridge.StableFactory; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.*; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import java.awt.*; |
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.util.HashMap; |
|
|
|
import java.util.HashMap; |
|
|
|
|
|
|
|
|
|
|
|
public class FormHyperlinkPane extends AbstractHyperLinkPane<FormHyperlinkProvider> { |
|
|
|
public class FormHyperlinkPane extends AbstractHyperLinkPane<FormHyperlinkProvider> { |
|
|
@ -35,7 +35,15 @@ public class FormHyperlinkPane extends AbstractHyperLinkPane<FormHyperlinkProvid |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(BORDER_WIDTH, BORDER_WIDTH, BORDER_WIDTH, BORDER_WIDTH)); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(BORDER_WIDTH, BORDER_WIDTH, BORDER_WIDTH, BORDER_WIDTH)); |
|
|
|
northPane = new FormHyperlinkNorthPane(needRenamePane()); |
|
|
|
northPane = new FormHyperlinkNorthPane(needRenamePane()); |
|
|
|
this.add(northPane, BorderLayout.NORTH); |
|
|
|
JPanel panel = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
panel.add(northPane, BorderLayout.NORTH); |
|
|
|
|
|
|
|
if (needAnimatePane()) { |
|
|
|
|
|
|
|
JPanel animatePane = createAnimateTypeUIButtonGroup(); |
|
|
|
|
|
|
|
animatePane.setBorder(BorderFactory.createEmptyBorder(0, 8, 10, 10)); |
|
|
|
|
|
|
|
panel.add(animatePane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.add(panel, BorderLayout.NORTH); |
|
|
|
|
|
|
|
|
|
|
|
parameterViewPane = new ReportletParameterViewPane(getChartParaType(), getValueEditorPane(), getValueEditorPane()); |
|
|
|
parameterViewPane = new ReportletParameterViewPane(getChartParaType(), getValueEditorPane(), getValueEditorPane()); |
|
|
|
this.add(parameterViewPane, BorderLayout.CENTER); |
|
|
|
this.add(parameterViewPane, BorderLayout.CENTER); |
|
|
@ -63,6 +71,7 @@ public class FormHyperlinkPane extends AbstractHyperLinkPane<FormHyperlinkProvid |
|
|
|
|
|
|
|
|
|
|
|
ParameterProvider[] parameters = formHyperlink.getParameters(); |
|
|
|
ParameterProvider[] parameters = formHyperlink.getParameters(); |
|
|
|
parameterViewPane.populate(parameters); |
|
|
|
parameterViewPane.populate(parameters); |
|
|
|
|
|
|
|
populateAnimateType(formHyperlink.getAnimateType()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -71,6 +80,8 @@ public class FormHyperlinkPane extends AbstractHyperLinkPane<FormHyperlinkProvid |
|
|
|
formHyperlink.setType(getHyperlinkType()); |
|
|
|
formHyperlink.setType(getHyperlinkType()); |
|
|
|
updateBean(formHyperlink); |
|
|
|
updateBean(formHyperlink); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formHyperlink.setAnimateType(updateAnimateType()); |
|
|
|
|
|
|
|
|
|
|
|
return formHyperlink; |
|
|
|
return formHyperlink; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -91,6 +102,13 @@ public class FormHyperlinkPane extends AbstractHyperLinkPane<FormHyperlinkProvid |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static class ChartNoRename extends FormHyperlinkPane { |
|
|
|
public static class ChartNoRename extends FormHyperlinkPane { |
|
|
|
|
|
|
|
public ChartNoRename(HashMap hyperLinkEditorMap, boolean needRenamePane) { |
|
|
|
|
|
|
|
super(hyperLinkEditorMap, needRenamePane); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ChartNoRename() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
protected boolean needRenamePane() { |
|
|
|
protected boolean needRenamePane() { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
@ -99,4 +117,18 @@ public class FormHyperlinkPane extends AbstractHyperLinkPane<FormHyperlinkProvid |
|
|
|
return ParameterTableModel.CHART_NORMAL_USE; |
|
|
|
return ParameterTableModel.CHART_NORMAL_USE; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static class ChartHasAnimateType extends ChartNoRename { |
|
|
|
|
|
|
|
public ChartHasAnimateType(HashMap hyperLinkEditorMap, boolean needRenamePane) { |
|
|
|
|
|
|
|
super(hyperLinkEditorMap, needRenamePane); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ChartHasAnimateType() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected boolean needAnimatePane() { |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|