forked from fanruan/design
Browse Source
* commit '8ef2ea935c62eea663b3ce7e29112587390803de': 填报校验改进,designer暂时依赖engine-writemaster
superman
9 years ago
5 changed files with 92 additions and 96 deletions
@ -0,0 +1,35 @@
|
||||
package com.fr.design.report; |
||||
|
||||
import com.fr.design.beans.BasicBeanPane; |
||||
import com.fr.design.layout.FRGUIPaneFactory; |
||||
import com.fr.report.write.ValueVerifier; |
||||
|
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* Created by richie on 16/6/12. |
||||
*/ |
||||
public class BuildInVerifierPane extends BasicBeanPane<ValueVerifier> { |
||||
private ValueVerifierEditPane valueVerifierEditPane; |
||||
|
||||
public BuildInVerifierPane() { |
||||
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||
valueVerifierEditPane = new ValueVerifierEditPane(); |
||||
this.add(valueVerifierEditPane, BorderLayout.CENTER); |
||||
} |
||||
|
||||
@Override |
||||
public void populateBean(ValueVerifier ob) { |
||||
valueVerifierEditPane.populate(ob); |
||||
} |
||||
|
||||
@Override |
||||
public ValueVerifier updateBean() { |
||||
return valueVerifierEditPane.update(); |
||||
} |
||||
|
||||
@Override |
||||
protected String title4PopupWindow() { |
||||
return "BuiltIn"; |
||||
} |
||||
} |
@ -0,0 +1,37 @@
|
||||
package com.fr.design.report; |
||||
|
||||
import com.fr.design.beans.BasicBeanPane; |
||||
import com.fr.design.layout.FRGUIPaneFactory; |
||||
import com.fr.report.write.WClassVerifier; |
||||
|
||||
import java.awt.*; |
||||
|
||||
/** |
||||
* Created by richie on 16/6/12. |
||||
*/ |
||||
public class CustomVerifierPane extends BasicBeanPane<WClassVerifier> { |
||||
private CustomVerifyJobPane pane; |
||||
|
||||
public CustomVerifierPane() { |
||||
this.setLayout(FRGUIPaneFactory.createBorderLayout()); |
||||
pane = new CustomVerifyJobPane(); |
||||
this.add(pane, BorderLayout.CENTER); |
||||
} |
||||
|
||||
@Override |
||||
public void populateBean(WClassVerifier ob) { |
||||
this.pane.populateBean(ob.getClassVerifyJob()); |
||||
} |
||||
|
||||
@Override |
||||
public WClassVerifier updateBean() { |
||||
WClassVerifier verifier = new WClassVerifier(); |
||||
verifier.setClassVerifyJob(this.pane.updateBean()); |
||||
return verifier; |
||||
} |
||||
|
||||
@Override |
||||
protected String title4PopupWindow() { |
||||
return "custom"; |
||||
} |
||||
} |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue