|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.parameter; |
|
|
|
package com.fr.design.parameter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
import com.fr.base.Parameter; |
|
|
|
import com.fr.design.border.FineBorderFactory; |
|
|
|
import com.fr.design.border.FineBorderFactory; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
|
import com.fr.design.constants.UIConstants; |
|
|
@ -23,6 +24,8 @@ import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
import java.awt.event.MouseAdapter; |
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
import java.awt.event.MouseEvent; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import static com.fine.theme.utils.FineUIScale.scale; |
|
|
|
|
|
|
|
|
|
|
|
public class ParameterPropertyPane extends JPanel{ |
|
|
|
public class ParameterPropertyPane extends JPanel{ |
|
|
|
private ParameterToolBarPane toolbarPane; |
|
|
|
private ParameterToolBarPane toolbarPane; |
|
|
|
private ParaDefinitePane paraPane; |
|
|
|
private ParaDefinitePane paraPane; |
|
|
@ -32,8 +35,7 @@ public class ParameterPropertyPane extends JPanel{ |
|
|
|
|
|
|
|
|
|
|
|
private static ParameterPropertyPane THIS; |
|
|
|
private static ParameterPropertyPane THIS; |
|
|
|
private boolean isEditing = false; |
|
|
|
private boolean isEditing = false; |
|
|
|
private static final int PADDING_MIDDLE = 10; |
|
|
|
private static final int ADD_PARA_PANE_MAX_HEIGHT = scale(120); |
|
|
|
private static final int ADD_PARA_PANE_MAX_HEIGHT = 95; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static final ParameterPropertyPane getInstance() { |
|
|
|
public static final ParameterPropertyPane getInstance() { |
|
|
|
if (THIS == null) { |
|
|
|
if (THIS == null) { |
|
|
@ -138,7 +140,7 @@ public class ParameterPropertyPane extends JPanel{ |
|
|
|
private void setEditor(FormDesigner editor) { |
|
|
|
private void setEditor(FormDesigner editor) { |
|
|
|
if (formHierarchyTreePaneWrapper == null) { |
|
|
|
if (formHierarchyTreePaneWrapper == null) { |
|
|
|
formHierarchyTreePaneWrapper = new JPanel(new BorderLayout()); |
|
|
|
formHierarchyTreePaneWrapper = new JPanel(new BorderLayout()); |
|
|
|
formHierarchyTreePaneWrapper.setBorder(BorderFactory.createEmptyBorder(0, PADDING_MIDDLE, 0, 0)); |
|
|
|
formHierarchyTreePaneWrapper.setBorder(new ScaledEmptyBorder(0, 10, 0, 0)); |
|
|
|
this.add(formHierarchyTreePaneWrapper, BorderLayout.CENTER); |
|
|
|
this.add(formHierarchyTreePaneWrapper, BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
|
formHierarchyTreePaneWrapper.remove(FormHierarchyTreePane.getInstance()); |
|
|
|
formHierarchyTreePaneWrapper.remove(FormHierarchyTreePane.getInstance()); |
|
|
|