|
|
@ -329,15 +329,16 @@ public class EditToolBar extends BasicPane { |
|
|
|
private JavaScriptActionPane javaScriptPane; |
|
|
|
private JavaScriptActionPane javaScriptPane; |
|
|
|
private ExportToolBarProvider[] exportToolBarProviders; |
|
|
|
private ExportToolBarProvider[] exportToolBarProviders; |
|
|
|
|
|
|
|
|
|
|
|
private ChangeListener changeListener = new ChangeListener() { |
|
|
|
private ActionListener actionListener = new ActionListener() { |
|
|
|
public void stateChanged(ChangeEvent e) { |
|
|
|
@Override |
|
|
|
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
if (isVerify.isSelected()) { |
|
|
|
if (isVerify.isSelected()) { |
|
|
|
failSubmit.setVisible(true); |
|
|
|
failSubmit.setVisible(true); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
failSubmit.setVisible(false); |
|
|
|
failSubmit.setVisible(false); |
|
|
|
|
|
|
|
failSubmit.setSelected(false); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
public ButtonPane() { |
|
|
|
public ButtonPane() { |
|
|
@ -481,7 +482,7 @@ public class EditToolBar extends BasicPane { |
|
|
|
submitPane.add(isVerify); |
|
|
|
submitPane.add(isVerify); |
|
|
|
submitPane.add(failSubmit); |
|
|
|
submitPane.add(failSubmit); |
|
|
|
submitPane.add(isCurSheet); |
|
|
|
submitPane.add(isCurSheet); |
|
|
|
isVerify.addChangeListener(changeListener); |
|
|
|
isVerify.addActionListener(actionListener); |
|
|
|
return submitPane; |
|
|
|
return submitPane; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -573,6 +574,9 @@ public class EditToolBar extends BasicPane { |
|
|
|
card.show(centerPane, "submit"); |
|
|
|
card.show(centerPane, "submit"); |
|
|
|
Submit submit = ((Submit) widget); |
|
|
|
Submit submit = ((Submit) widget); |
|
|
|
this.isVerify.setSelected(submit.isVerify()); |
|
|
|
this.isVerify.setSelected(submit.isVerify()); |
|
|
|
|
|
|
|
if (!submit.isVerify()) { |
|
|
|
|
|
|
|
this.failSubmit.setVisible(false); |
|
|
|
|
|
|
|
} |
|
|
|
this.failSubmit.setSelected(submit.isFailVerifySubmit()); |
|
|
|
this.failSubmit.setSelected(submit.isFailVerifySubmit()); |
|
|
|
this.isCurSheet.setSelected(submit.isOnlySubmitSelect()); |
|
|
|
this.isCurSheet.setSelected(submit.isOnlySubmitSelect()); |
|
|
|
} |
|
|
|
} |
|
|
|