Browse Source

REPORT-5033 PMD

master
MoMeak 7 years ago
parent
commit
1b4555722e
  1. 22
      designer/src/com/fr/design/mainframe/JWorkBook.java
  2. 18
      designer_base/src/com/fr/design/mainframe/JTemplate.java
  3. 2
      designer_base/src/com/fr/design/mainframe/JVirtualTemplate.java
  4. 22
      designer_form/src/com/fr/design/mainframe/JForm.java

22
designer/src/com/fr/design/mainframe/JWorkBook.java

@ -849,28 +849,6 @@ public class JWorkBook extends JTemplate<WorkBook, WorkBookUndoState> {
return true;
}
@Override
public void activeJTemplate(int index, JTemplate jt) {
DesignerContext.getDesignerFrame().activateJTemplate(this);
}
@Override
public void activeOldJTemplate() {
DesignerContext.getDesignerFrame().activateJTemplate(this);
}
@Override
public void activeNewJTemplate() {
DesignerContext.getDesignerFrame().addAndActivateJTemplate(this);
}
@Override
public void closeOverLineTemplate(int index) {
JTemplate overTemplate = HistoryTemplateListPane.getInstance().getHistoryList().get(index);
HistoryTemplateListPane.getInstance().closeVirtualSelectedReport(overTemplate);
HistoryTemplateListPane.getInstance().getHistoryList().set(index, new JVirtualTemplate(overTemplate.getEditingFILE()));
}
@Override
public HyperlinkGroupPane getHyperLinkPane(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) {
return ReportHyperlinkGroupPane.getInstance(hyperlinkGroupPaneActionProvider);

18
designer_base/src/com/fr/design/mainframe/JTemplate.java

@ -890,25 +890,35 @@ public abstract class JTemplate<T extends IOFile, U extends BaseUndoState<?>> ex
* 激活指定的template
*
*/
public abstract void activeJTemplate(int index, JTemplate jt);
public void activeJTemplate(int index, JTemplate jt) {
DesignerContext.getDesignerFrame().activateJTemplate(this);
};
/**
* 激活已存在的模板
*
*/
public abstract void activeOldJTemplate();
public void activeOldJTemplate() {
DesignerContext.getDesignerFrame().activateJTemplate(this);
};
/**
* 激活新的模板
*
*/
public abstract void activeNewJTemplate();
public void activeNewJTemplate() {
DesignerContext.getDesignerFrame().addAndActivateJTemplate(this);
};
/**
* 后台关闭template
*
*/
public abstract void closeOverLineTemplate(int index);
public void closeOverLineTemplate(int index) {
JTemplate overTemplate = HistoryTemplateListPane.getInstance().getHistoryList().get(index);
HistoryTemplateListPane.getInstance().closeVirtualSelectedReport(overTemplate);
HistoryTemplateListPane.getInstance().getHistoryList().set(index, new JVirtualTemplate(overTemplate.getEditingFILE()));
};
/**

2
designer_base/src/com/fr/design/mainframe/JVirtualTemplate.java

@ -71,7 +71,6 @@ public class JVirtualTemplate extends JTemplate {
return null;
}
@Override
public JComponent getCurrentReportComponentPane() {
return null;
}
@ -247,7 +246,6 @@ public class JVirtualTemplate extends JTemplate {
return null;
}
@Override
public HyperlinkGroupPane getHyperLinkPaneNoPop(HyperlinkGroupPaneActionProvider hyperlinkGroupPaneActionProvider) {
return null;
}

22
designer_form/src/com/fr/design/mainframe/JForm.java

@ -143,28 +143,6 @@ public class JForm extends JTemplate<Form, FormUndoState> implements BaseJForm {
return false;
}
@Override
public void activeJTemplate(int index, JTemplate jt) {
DesignerContext.getDesignerFrame().activateJTemplate(this);
}
@Override
public void activeOldJTemplate() {
DesignerContext.getDesignerFrame().activateJTemplate(this);
}
@Override
public void activeNewJTemplate() {
DesignerContext.getDesignerFrame().addAndActivateJTemplate(this);
}
@Override
public void closeOverLineTemplate(int index) {
JTemplate overTemplate = HistoryTemplateListPane.getInstance().getHistoryList().get(index);
HistoryTemplateListPane.getInstance().closeVirtualSelectedReport(overTemplate);
HistoryTemplateListPane.getInstance().getHistoryList().set(index, new JVirtualTemplate(overTemplate.getEditingFILE()));
}
/**
* 返回当前支持的超链界面pane
*

Loading…
Cancel
Save