|
|
|
@ -23,7 +23,6 @@ import java.awt.*;
|
|
|
|
|
public class ReportFloatPane extends JPanel { |
|
|
|
|
|
|
|
|
|
private static ReportFloatPane THIS; |
|
|
|
|
private ElementCasePaneDelegate elementCasePaneDelegate; |
|
|
|
|
private MenuDef insertFloatMenu; |
|
|
|
|
|
|
|
|
|
private ReportFloatPane() { |
|
|
|
@ -37,6 +36,14 @@ public class ReportFloatPane extends JPanel {
|
|
|
|
|
return THIS; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void refreshInsertFloatMenu(ElementCasePaneDelegate elementCasePaneDelegate) { |
|
|
|
|
UpdateAction[] actions = ActionFactory.createFloatInsertAction(ElementCasePane.class, elementCasePaneDelegate); |
|
|
|
|
insertFloatMenu.clearShortCuts(); |
|
|
|
|
for (int i = 0; i < actions.length; i++) { |
|
|
|
|
insertFloatMenu.addShortCut(actions[i]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initComponent() { |
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
|
|
|
|
|
@ -72,7 +79,7 @@ public class ReportFloatPane extends JPanel {
|
|
|
|
|
insertFloatMenu.setTooltip(Inter.getLocText("FR-Designer_T_Insert_Float")); |
|
|
|
|
insertFloatMenu.setIconPath("com/fr/design/images/control/addPopup.png"); |
|
|
|
|
JTemplate editingTemplate = HistoryTemplateListPane.getInstance().getCurrentEditingTemplate(); |
|
|
|
|
elementCasePaneDelegate = (ElementCasePaneDelegate) editingTemplate.getCurrentElementCasePane(); |
|
|
|
|
ElementCasePaneDelegate elementCasePaneDelegate = (ElementCasePaneDelegate) editingTemplate.getCurrentElementCasePane(); |
|
|
|
|
UpdateAction[] actions = ActionFactory.createFloatInsertAction(ElementCasePane.class, elementCasePaneDelegate); |
|
|
|
|
for (int i = 0; i < actions.length; i++) { |
|
|
|
|
insertFloatMenu.addShortCut(actions[i]); |
|
|
|
|