|
|
@ -1,5 +1,6 @@ |
|
|
|
package com.fr.design.parameter; |
|
|
|
package com.fr.design.parameter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.dialog.BasicScrollPane; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.design.mainframe.FormDesigner; |
|
|
|
import com.fr.design.mainframe.FormHierarchyTreePane; |
|
|
|
import com.fr.design.mainframe.FormHierarchyTreePane; |
|
|
@ -13,8 +14,7 @@ import java.awt.event.MouseEvent; |
|
|
|
|
|
|
|
|
|
|
|
public class ParameterPropertyPane extends JPanel{ |
|
|
|
public class ParameterPropertyPane extends JPanel{ |
|
|
|
private ParameterToolBarPane toolbarPane; |
|
|
|
private ParameterToolBarPane toolbarPane; |
|
|
|
|
|
|
|
private BasicScrollPane basicScrollPane; |
|
|
|
// private JWorkBook workbook;
|
|
|
|
|
|
|
|
private ParaDefinitePane paraPane; |
|
|
|
private ParaDefinitePane paraPane; |
|
|
|
|
|
|
|
|
|
|
|
public static ParameterPropertyPane THIS; |
|
|
|
public static ParameterPropertyPane THIS; |
|
|
@ -43,12 +43,26 @@ public class ParameterPropertyPane extends JPanel{ |
|
|
|
|
|
|
|
|
|
|
|
public ParameterPropertyPane() { |
|
|
|
public ParameterPropertyPane() { |
|
|
|
toolbarPane = new ParameterToolBarPane(); |
|
|
|
toolbarPane = new ParameterToolBarPane(); |
|
|
|
|
|
|
|
basicScrollPane = new BasicScrollPane() { |
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected JPanel createContentPane() { |
|
|
|
|
|
|
|
return toolbarPane; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
initParameterListener(); |
|
|
|
@Override |
|
|
|
|
|
|
|
public void populateBean(Object ob) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
|
|
protected String title4PopupWindow() { |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
initParameterListener(); |
|
|
|
this.setLayout(new BorderLayout(0, 6)); |
|
|
|
this.setLayout(new BorderLayout(0, 6)); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0)); |
|
|
|
this.setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 0)); |
|
|
|
this.add(toolbarPane, BorderLayout.CENTER); |
|
|
|
this.add(basicScrollPane, BorderLayout.CENTER); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void setEditor(FormDesigner editor) { |
|
|
|
private void setEditor(FormDesigner editor) { |
|
|
@ -68,8 +82,9 @@ public class ParameterPropertyPane extends JPanel{ |
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
SwingUtilities.invokeLater(new Runnable() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
if (paraPane.isWithQueryButton()) |
|
|
|
if (paraPane.isWithQueryButton()) { |
|
|
|
paraPane.addingParameter2Editor(toolbarPane.getTargetParameter(parameterSelectedLabel)); |
|
|
|
paraPane.addingParameter2Editor(toolbarPane.getTargetParameter(parameterSelectedLabel)); |
|
|
|
|
|
|
|
} |
|
|
|
else { |
|
|
|
else { |
|
|
|
paraPane.addingParameter2EditorWithQueryButton(toolbarPane.getTargetParameter(parameterSelectedLabel)); |
|
|
|
paraPane.addingParameter2EditorWithQueryButton(toolbarPane.getTargetParameter(parameterSelectedLabel)); |
|
|
|
} |
|
|
|
} |
|
|
|