|
|
|
@ -88,6 +88,8 @@ public class FormParaDesigner extends FormDesigner implements ParameterDesignerP
|
|
|
|
|
|
|
|
|
|
private static Image paraImage = BaseUtils.readImage("/com/fr/design/images/form/parameter.png"); |
|
|
|
|
|
|
|
|
|
private UpdateAction[] basicMainPaneActions; |
|
|
|
|
|
|
|
|
|
public FormParaDesigner() { |
|
|
|
|
this(new FormParameterUI()); |
|
|
|
|
} |
|
|
|
@ -342,6 +344,14 @@ public class FormParaDesigner extends FormDesigner implements ParameterDesignerP
|
|
|
|
|
return designerActions.toArray(new UpdateAction[designerActions.size()]); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public UpdateAction[] getBasicMainActions() { |
|
|
|
|
if (basicMainPaneActions == null) { |
|
|
|
|
basicMainPaneActions = new UpdateAction[]{new CutAction(this), new CopyAction(this), new PasteAction(this), |
|
|
|
|
new FormDeleteAction(this)}; |
|
|
|
|
} |
|
|
|
|
return basicMainPaneActions; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private boolean searchQueryCreators(XLayoutContainer rootContainer) { |
|
|
|
|
boolean b = false; |
|
|
|
|
for (int i = 0; i < rootContainer.getXCreatorCount(); i++) { |
|
|
|
@ -736,8 +746,12 @@ public class FormParaDesigner extends FormDesigner implements ParameterDesignerP
|
|
|
|
|
* @return 按钮组 a |
|
|
|
|
*/ |
|
|
|
|
public JComponent[] toolBarButton4Form() { |
|
|
|
|
return new JComponent[]{new CutAction(this).createToolBarComponent(), new CopyAction(this).createToolBarComponent(), new PasteAction(this).createToolBarComponent(), |
|
|
|
|
new FormDeleteAction(this).createToolBarComponent()}; |
|
|
|
|
UpdateAction[] actions = getBasicMainActions(); |
|
|
|
|
JComponent[] components = new JComponent[actions.length]; |
|
|
|
|
for (int i = 0; i < actions.length; i++) { |
|
|
|
|
components[i] = actions[i].createToolBarComponent(); |
|
|
|
|
} |
|
|
|
|
return components; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|