neil
9 years ago
13 changed files with 183 additions and 113 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
@ -0,0 +1,40 @@
|
||||
package com.fr.design.fun; |
||||
|
||||
import com.fr.data.Verifier; |
||||
import com.fr.design.beans.BasicBeanPane; |
||||
import com.fr.stable.fun.Level; |
||||
import com.fr.stable.fun.Provider; |
||||
|
||||
/** |
||||
* Created by richie on 16/6/8. |
||||
*/ |
||||
public interface VerifyDefineProvider extends Level, Provider { |
||||
|
||||
String MARK_STRING = "VerifyDefineProvider"; |
||||
|
||||
int CURRENT_LEVEL = 1; |
||||
|
||||
/** |
||||
* 对应的校验类 |
||||
* @return 校验类 |
||||
*/ |
||||
Class<? extends Verifier> classForVerifier(); |
||||
|
||||
/** |
||||
* 校验设置的界面 |
||||
* @return 界面 |
||||
*/ |
||||
Class<? extends BasicBeanPane> appearanceForVerifier(); |
||||
|
||||
/** |
||||
* 此种类型的校验的名字 |
||||
* @return 名字 |
||||
*/ |
||||
String nameForVerifier(); |
||||
|
||||
/** |
||||
* 菜单图标 |
||||
* @return 图标路径 |
||||
*/ |
||||
String iconPath(); |
||||
} |
@ -0,0 +1,20 @@
|
||||
package com.fr.design.fun.impl; |
||||
|
||||
import com.fr.design.fun.VerifyDefineProvider; |
||||
import com.fr.stable.fun.impl.AbstractProvider; |
||||
|
||||
/** |
||||
* Created by richie on 16/6/8. |
||||
*/ |
||||
public abstract class AbstractVerifyDefineProvider extends AbstractProvider implements VerifyDefineProvider { |
||||
|
||||
@Override |
||||
public int currentAPILevel() { |
||||
return CURRENT_LEVEL; |
||||
} |
||||
|
||||
@Override |
||||
public String mark4Provider() { |
||||
return getClass().getName(); |
||||
} |
||||
} |
Loading…
Reference in new issue