richie
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