|
|
|
@ -151,9 +151,9 @@ public class NewFormPane extends BasicPane {
|
|
|
|
|
|
|
|
|
|
private JPanel createNewTemplatePane() { |
|
|
|
|
EmptyLayoutPane jPanel = new EmptyLayoutPane(); |
|
|
|
|
jPanel.addClickListener(new MouseAdapter() { |
|
|
|
|
jPanel.addMouseListener(new MouseAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
setSelectedLayoutPane(jPanel); |
|
|
|
|
dialog.setButtonEnabled(true); |
|
|
|
|
} |
|
|
|
@ -238,9 +238,9 @@ public class NewFormPane extends BasicPane {
|
|
|
|
|
layoutPaneMap.put(moduleName, module); |
|
|
|
|
for (PredefinedLayout layout : layouts) { |
|
|
|
|
PredefinedLayoutPane predefinedLayoutPane = new PredefinedLayoutPane(layout); |
|
|
|
|
predefinedLayoutPane.addClickListener(new MouseAdapter() { |
|
|
|
|
predefinedLayoutPane.addMouseListener(new MouseAdapter() { |
|
|
|
|
@Override |
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
|
setSelectedLayoutPane(predefinedLayoutPane); |
|
|
|
|
dialog.setButtonEnabled(true); |
|
|
|
|
} |
|
|
|
@ -266,7 +266,7 @@ public class NewFormPane extends BasicPane {
|
|
|
|
|
try { |
|
|
|
|
if (StringUtils.isNotEmpty(path)) { |
|
|
|
|
Form form = new Form(); |
|
|
|
|
form.readStream(NewFormPane.class.getResourceAsStream(path), true); |
|
|
|
|
form.readStream(NewFormPane.class.getResourceAsStream(path)); |
|
|
|
|
jForm = StableFactory.getMarkedInstanceObjectFromClass(BaseJForm.XML_TAG, new Object[]{form}, BaseJForm.class); |
|
|
|
|
} else { |
|
|
|
|
jForm = StableFactory.getMarkedInstanceObjectFromClass(BaseJForm.XML_TAG, BaseJForm.class); |
|
|
|
|