|
|
|
@ -10,12 +10,17 @@ import com.fr.design.DesignModelAdapter;
|
|
|
|
|
import com.fr.design.DesignState; |
|
|
|
|
import com.fr.design.DesignerEnvManager; |
|
|
|
|
import com.fr.design.ExtraDesignClassManager; |
|
|
|
|
import com.fr.design.actions.help.alphafine.AlphaFineConfigManager; |
|
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
|
import com.fr.design.data.DesignTableDataManager; |
|
|
|
|
import com.fr.design.data.datapane.TableDataTreePane; |
|
|
|
|
import com.fr.design.event.TargetModifiedEvent; |
|
|
|
|
import com.fr.design.event.TargetModifiedListener; |
|
|
|
|
import com.fr.design.file.*; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListPane; |
|
|
|
|
import com.fr.design.file.MutilTempalteTabPane; |
|
|
|
|
import com.fr.design.file.NewTemplatePane; |
|
|
|
|
import com.fr.design.file.SaveSomeTemplatePane; |
|
|
|
|
import com.fr.design.file.TemplateTreePane; |
|
|
|
|
import com.fr.design.fun.TitlePlaceProcessor; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
|
import com.fr.design.gui.imenu.UIMenuHighLight; |
|
|
|
@ -54,8 +59,20 @@ import javax.swing.border.MatteBorder;
|
|
|
|
|
import java.awt.*; |
|
|
|
|
import java.awt.datatransfer.DataFlavor; |
|
|
|
|
import java.awt.datatransfer.Transferable; |
|
|
|
|
import java.awt.dnd.*; |
|
|
|
|
import java.awt.event.*; |
|
|
|
|
import java.awt.dnd.DnDConstants; |
|
|
|
|
import java.awt.dnd.DropTarget; |
|
|
|
|
import java.awt.dnd.DropTargetDragEvent; |
|
|
|
|
import java.awt.dnd.DropTargetDropEvent; |
|
|
|
|
import java.awt.dnd.DropTargetEvent; |
|
|
|
|
import java.awt.dnd.DropTargetListener; |
|
|
|
|
import java.awt.event.ComponentAdapter; |
|
|
|
|
import java.awt.event.ComponentEvent; |
|
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
import java.awt.event.MouseListener; |
|
|
|
|
import java.awt.event.WindowAdapter; |
|
|
|
|
import java.awt.event.WindowEvent; |
|
|
|
|
import java.awt.event.WindowListener; |
|
|
|
|
import java.awt.image.BufferedImage; |
|
|
|
|
import java.io.File; |
|
|
|
|
import java.io.IOException; |
|
|
|
@ -65,15 +82,13 @@ import java.util.List;
|
|
|
|
|
import java.util.logging.Level; |
|
|
|
|
|
|
|
|
|
public class DesignerFrame extends JFrame implements JTemplateActionListener, TargetModifiedListener { |
|
|
|
|
public static final String DESIGNER_FRAME_NAME = "designer_frame"; |
|
|
|
|
public static final Dimension MIN_SIZE = new Dimension(100, 100); |
|
|
|
|
private static final long serialVersionUID = -8732559571067484460L; |
|
|
|
|
private static final int LEFT_ALIGN_GAP = -5; |
|
|
|
|
private static final int MENU_HEIGHT = 26; |
|
|
|
|
private static final Integer SECOND_LAYER = new Integer(100); |
|
|
|
|
private static final Integer TOP_LAYER = new Integer((200)); |
|
|
|
|
|
|
|
|
|
public static final String DESIGNER_FRAME_NAME = "designer_frame"; |
|
|
|
|
public static final Dimension MIN_SIZE = new Dimension(100, 100); |
|
|
|
|
|
|
|
|
|
private static java.util.List<App<?>> appList = new java.util.ArrayList<App<?>>(); |
|
|
|
|
|
|
|
|
|
private ToolBarMenuDock ad; |
|
|
|
@ -139,82 +154,45 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
closeMode.paintIcon(this, g, 0, 0); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 注册app. |
|
|
|
|
* |
|
|
|
|
* @param app |
|
|
|
|
* 注册app. |
|
|
|
|
*/ |
|
|
|
|
public static void registApp(App<?> app) { |
|
|
|
|
if (app != null) { |
|
|
|
|
appList.add(app); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void removeApp(App<?> app) { |
|
|
|
|
|
|
|
|
|
if (app != null) { |
|
|
|
|
appList.remove(app); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected DesktopCardPane getCenterTemplateCardPane() { |
|
|
|
|
return centerTemplateCardPane; |
|
|
|
|
private MouseListener closeMouseListener = new MouseAdapter() { |
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
closeMode = UIConstants.CLOSE_PRESS_AUTHORITY; |
|
|
|
|
closeButton.setBackground(UIConstants.NORMAL_BACKGROUND); |
|
|
|
|
closeButton.repaint(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 初始menuPane的方法 方便OEM时修改该组件 |
|
|
|
|
*/ |
|
|
|
|
protected void initMenuPane(){ |
|
|
|
|
menuPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
menuPane.add(new UIMenuHighLight(), BorderLayout.SOUTH); |
|
|
|
|
menuPane.add(initNorthEastPane(ad), BorderLayout.EAST); |
|
|
|
|
basePane.add(menuPane, BorderLayout.NORTH); |
|
|
|
|
this.resetToolkitByPlus(null); |
|
|
|
|
public void mouseExited(MouseEvent e) { |
|
|
|
|
closeMode = UIConstants.CLOSE_OF_AUTHORITY; |
|
|
|
|
closeButton.setBackground(UIConstants.NORMAL_BACKGROUND); |
|
|
|
|
closeButton.repaint(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param ad |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
protected JPanel initNorthEastPane(final ToolBarMenuDock ad) { |
|
|
|
|
//hugh: private修改为protected方便oem的时候修改右上的组件构成
|
|
|
|
|
//顶部日志+登陆按钮
|
|
|
|
|
final JPanel northEastPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
//优先级为-1,保证最后全面刷新一次
|
|
|
|
|
GeneralContext.listenPluginRunningChanged(new PluginEventListener(-1) { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void on(PluginEvent event) { |
|
|
|
|
|
|
|
|
|
refreshNorthEastPane(northEastPane, ad); |
|
|
|
|
DesignUtils.refreshDesignerFrame(FRContext.getCurrentEnv()); |
|
|
|
|
public void mouseMoved(MouseEvent e) { |
|
|
|
|
closeMode = UIConstants.CLOSE_OVER_AUTHORITY; |
|
|
|
|
closeButton.setBackground(UIConstants.NORMAL_BACKGROUND); |
|
|
|
|
closeButton.repaint(); |
|
|
|
|
} |
|
|
|
|
}, new PluginFilter() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean accept(PluginContext context) { |
|
|
|
|
|
|
|
|
|
return context.contain(PluginModule.ExtraDesign); |
|
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
|
if (BaseUtils.isAuthorityEditing()) { |
|
|
|
|
BaseUtils.setAuthorityEditing(false); |
|
|
|
|
WestRegionContainerPane.getInstance().replaceDownPane( |
|
|
|
|
TableDataTreePane.getInstance(DesignModelAdapter.getCurrentModelAdapter())); |
|
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().refreshEastPropertiesPane(); |
|
|
|
|
DesignerContext.getDesignerFrame().resetToolkitByPlus( |
|
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().getToolBarMenuDockPlus()); |
|
|
|
|
needToAddAuhtorityPaint(); |
|
|
|
|
refreshDottedLine(); |
|
|
|
|
fireAuthorityStateToNomal(); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
refreshNorthEastPane(northEastPane, ad); |
|
|
|
|
return northEastPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refreshNorthEastPane(JPanel northEastPane, ToolBarMenuDock ad) { |
|
|
|
|
|
|
|
|
|
northEastPane.removeAll(); |
|
|
|
|
TitlePlaceProcessor processor = ExtraDesignClassManager.getInstance().getSingle(TitlePlaceProcessor.MARK_STRING); |
|
|
|
|
if (processor == null) { |
|
|
|
|
processor = new DefaultTitlePlace(); |
|
|
|
|
} |
|
|
|
|
processor.hold(northEastPane, LogMessageBar.getInstance(), ad.createBBSLoginPane()); |
|
|
|
|
if (DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().isEnabled()) { |
|
|
|
|
northEastPane.add(ad.createAlphafinePane(), BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
public void mouseEntered(MouseEvent e) { |
|
|
|
|
closeMode = UIConstants.CLOSE_OVER_AUTHORITY; |
|
|
|
|
closeButton.setBackground(UIConstants.NORMAL_BACKGROUND); |
|
|
|
|
closeButton.repaint(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
public DesignerFrame(ToolBarMenuDock ad) { |
|
|
|
|
|
|
|
|
@ -269,7 +247,6 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
modWindowBounds(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// p:检查所有按钮的可见性和是否可以编辑性.
|
|
|
|
|
checkToolbarMenuEnable(); |
|
|
|
|
|
|
|
|
@ -292,6 +269,82 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
initMenuPane(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 注册app. |
|
|
|
|
* |
|
|
|
|
* @param app 注册app. |
|
|
|
|
*/ |
|
|
|
|
public static void registApp(App<?> app) { |
|
|
|
|
if (app != null) { |
|
|
|
|
appList.add(app); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public static void removeApp(App<?> app) { |
|
|
|
|
|
|
|
|
|
if (app != null) { |
|
|
|
|
appList.remove(app); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected DesktopCardPane getCenterTemplateCardPane() { |
|
|
|
|
return centerTemplateCardPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 初始menuPane的方法 方便OEM时修改该组件 |
|
|
|
|
*/ |
|
|
|
|
protected void initMenuPane() { |
|
|
|
|
menuPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
menuPane.add(new UIMenuHighLight(), BorderLayout.SOUTH); |
|
|
|
|
menuPane.add(initNorthEastPane(ad), BorderLayout.EAST); |
|
|
|
|
basePane.add(menuPane, BorderLayout.NORTH); |
|
|
|
|
this.resetToolkitByPlus(null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @param ad |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
protected JPanel initNorthEastPane(final ToolBarMenuDock ad) { |
|
|
|
|
//hugh: private修改为protected方便oem的时候修改右上的组件构成
|
|
|
|
|
//顶部日志+登陆按钮
|
|
|
|
|
final JPanel northEastPane = FRGUIPaneFactory.createBorderLayout_S_Pane(); |
|
|
|
|
//优先级为-1,保证最后全面刷新一次
|
|
|
|
|
GeneralContext.listenPluginRunningChanged(new PluginEventListener(-1) { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void on(PluginEvent event) { |
|
|
|
|
|
|
|
|
|
refreshNorthEastPane(northEastPane, ad); |
|
|
|
|
DesignUtils.refreshDesignerFrame(FRContext.getCurrentEnv()); |
|
|
|
|
} |
|
|
|
|
}, new PluginFilter() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean accept(PluginContext context) { |
|
|
|
|
|
|
|
|
|
return context.contain(PluginModule.ExtraDesign); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
refreshNorthEastPane(northEastPane, ad); |
|
|
|
|
return northEastPane; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void refreshNorthEastPane(JPanel northEastPane, ToolBarMenuDock ad) { |
|
|
|
|
|
|
|
|
|
northEastPane.removeAll(); |
|
|
|
|
TitlePlaceProcessor processor = ExtraDesignClassManager.getInstance().getSingle(TitlePlaceProcessor.MARK_STRING); |
|
|
|
|
if (processor == null) { |
|
|
|
|
processor = new DefaultTitlePlace(); |
|
|
|
|
} |
|
|
|
|
processor.hold(northEastPane, LogMessageBar.getInstance(), ad.createBBSLoginPane()); |
|
|
|
|
if (AlphaFineConfigManager.isALPHALicAvailable() && DesignerEnvManager.getEnvManager().getAlphaFineConfigManager().isEnabled()) { |
|
|
|
|
northEastPane.add(ad.createAlphaFinePane(), BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void initTitleIcon() { |
|
|
|
|
try { |
|
|
|
|
@SuppressWarnings("unchecked") |
|
|
|
@ -316,7 +369,6 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
return arrayList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected void laoyoutWestPane() { |
|
|
|
|
basePane.add(WestRegionContainerPane.getInstance(), BorderLayout.WEST); |
|
|
|
|
} |
|
|
|
@ -402,46 +454,6 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
addDottedLine(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private MouseListener closeMouseListener = new MouseAdapter() { |
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
closeMode = UIConstants.CLOSE_PRESS_AUTHORITY; |
|
|
|
|
closeButton.setBackground(UIConstants.NORMAL_BACKGROUND); |
|
|
|
|
closeButton.repaint(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void mouseExited(MouseEvent e) { |
|
|
|
|
closeMode = UIConstants.CLOSE_OF_AUTHORITY; |
|
|
|
|
closeButton.setBackground(UIConstants.NORMAL_BACKGROUND); |
|
|
|
|
closeButton.repaint(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void mouseMoved(MouseEvent e) { |
|
|
|
|
closeMode = UIConstants.CLOSE_OVER_AUTHORITY; |
|
|
|
|
closeButton.setBackground(UIConstants.NORMAL_BACKGROUND); |
|
|
|
|
closeButton.repaint(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void mouseReleased(MouseEvent e) { |
|
|
|
|
if (BaseUtils.isAuthorityEditing()) { |
|
|
|
|
BaseUtils.setAuthorityEditing(false); |
|
|
|
|
WestRegionContainerPane.getInstance().replaceDownPane( |
|
|
|
|
TableDataTreePane.getInstance(DesignModelAdapter.getCurrentModelAdapter())); |
|
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().refreshEastPropertiesPane(); |
|
|
|
|
DesignerContext.getDesignerFrame().resetToolkitByPlus( |
|
|
|
|
HistoryTemplateListPane.getInstance().getCurrentEditingTemplate().getToolBarMenuDockPlus()); |
|
|
|
|
needToAddAuhtorityPaint(); |
|
|
|
|
refreshDottedLine(); |
|
|
|
|
fireAuthorityStateToNomal(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void mouseEntered(MouseEvent e) { |
|
|
|
|
closeMode = UIConstants.CLOSE_OVER_AUTHORITY; |
|
|
|
|
closeButton.setBackground(UIConstants.NORMAL_BACKGROUND); |
|
|
|
|
closeButton.repaint(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 刷新CloseButton |
|
|
|
|
*/ |
|
|
|
@ -531,10 +543,8 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 检查 |
|
|
|
|
* |
|
|
|
|
* @param flag |
|
|
|
|
* 组件是否可见 |
|
|
|
|
* @param al |
|
|
|
|
* 组件名称 |
|
|
|
|
* @param flag 组件是否可见 |
|
|
|
|
* @param al 组件名称 |
|
|
|
|
*/ |
|
|
|
|
public void checkCombineUp(boolean flag, ArrayList<String> al) { |
|
|
|
|
combineUp.checkComponentsByNames(flag, al); |
|
|
|
@ -551,8 +561,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 重置相关的工具条. |
|
|
|
|
* |
|
|
|
|
* @param plus |
|
|
|
|
* 工具条中相关信息 |
|
|
|
|
* @param plus 工具条中相关信息 |
|
|
|
|
*/ |
|
|
|
|
public void resetToolkitByPlus(ToolBarMenuDockPlus plus) { |
|
|
|
|
if (plus == null) { |
|
|
|
@ -741,8 +750,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 添加 模板, 并激活. |
|
|
|
|
* |
|
|
|
|
* @param jt |
|
|
|
|
* 添加的模板. |
|
|
|
|
* @param jt 添加的模板. |
|
|
|
|
*/ |
|
|
|
|
public void addAndActivateJTemplate(JTemplate<?, ?> jt) { |
|
|
|
|
if (jt == null || jt.getEditingFILE() == null) { |
|
|
|
@ -758,8 +766,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 激活已经存在的模板 |
|
|
|
|
* |
|
|
|
|
* @param jt |
|
|
|
|
* 模板 |
|
|
|
|
* @param jt 模板 |
|
|
|
|
*/ |
|
|
|
|
public void activateJTemplate(JTemplate<?, ?> jt) { |
|
|
|
|
if (jt == null || jt.getEditingFILE() == null) { |
|
|
|
@ -773,8 +780,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 对象侦听 |
|
|
|
|
* |
|
|
|
|
* @param e |
|
|
|
|
* 事件 |
|
|
|
|
* @param e 事件 |
|
|
|
|
*/ |
|
|
|
|
public void targetModified(TargetModifiedEvent e) { |
|
|
|
|
this.checkToolbarMenuEnable(); |
|
|
|
@ -783,8 +789,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 模板关闭时 处理. |
|
|
|
|
* |
|
|
|
|
* @param jt |
|
|
|
|
* 模板 |
|
|
|
|
* @param jt 模板 |
|
|
|
|
*/ |
|
|
|
|
public void templateClosed(JTemplate<?, ?> jt) { |
|
|
|
|
} |
|
|
|
@ -792,8 +797,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 模板打开时 处理. |
|
|
|
|
* |
|
|
|
|
* @param jt |
|
|
|
|
* 模板 |
|
|
|
|
* @param jt 模板 |
|
|
|
|
*/ |
|
|
|
|
public void templateOpened(JTemplate<?, ?> jt) { |
|
|
|
|
} |
|
|
|
@ -801,8 +805,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 模板保存时 处理. |
|
|
|
|
* |
|
|
|
|
* @param jt |
|
|
|
|
* 模板 |
|
|
|
|
* @param jt 模板 |
|
|
|
|
*/ |
|
|
|
|
public void templateSaved(JTemplate<?, ?> jt) { |
|
|
|
|
this.checkToolbarMenuEnable(); |
|
|
|
@ -811,8 +814,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 打开模板文件,如果是已经打开的就激活此模板所对应的JInternalFrame |
|
|
|
|
* |
|
|
|
|
* @param tplFile |
|
|
|
|
* 文件 |
|
|
|
|
* @param tplFile 文件 |
|
|
|
|
*/ |
|
|
|
|
public void openTemplate(FILE tplFile) { |
|
|
|
|
// 测试连接,如果连接失败,则提示
|
|
|
|
@ -849,12 +851,8 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 是否不合版本的设计器 |
|
|
|
|
* |
|
|
|
|
* @param jt |
|
|
|
|
* 当前模板 |
|
|
|
|
* |
|
|
|
|
* @param jt 当前模板 |
|
|
|
|
* @return 是否不合版本 |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @date 2014-10-14-下午6:30:37 |
|
|
|
|
*/ |
|
|
|
|
private boolean inValidDesigner(JTemplate jt) { |
|
|
|
@ -864,10 +862,7 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 打开指定的文件 |
|
|
|
|
* |
|
|
|
|
* @param tplFile |
|
|
|
|
* 指定的文件 |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @param tplFile 指定的文件 |
|
|
|
|
* @date 2014-10-14-下午6:31:05 |
|
|
|
|
*/ |
|
|
|
|
private void openFile(FILE tplFile) { |
|
|
|
@ -913,12 +908,8 @@ public class DesignerFrame extends JFrame implements JTemplateActionListener, Ta
|
|
|
|
|
/** |
|
|
|
|
* 激活指定的模板 |
|
|
|
|
* |
|
|
|
|
* @param tplFile |
|
|
|
|
* 模板文件 |
|
|
|
|
* @param jt |
|
|
|
|
* 当前报表 |
|
|
|
|
* |
|
|
|
|
* |
|
|
|
|
* @param tplFile 模板文件 |
|
|
|
|
* @param jt 当前报表 |
|
|
|
|
* @date 2014-10-14-下午6:31:23 |
|
|
|
|
*/ |
|
|
|
|
private void activeTemplate(FILE tplFile, JTemplate jt) { |
|
|
|
|