Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void bindWTs(WorkTask oldWT, WorkTask newWT){
- BindingGroup newBG=new BindingGroup();
- for (Field cField : newWT.getClass().getDeclaredFields()) {
- String fieldName = cField.getName();
- if(fieldName.toUpperCase().startsWith("PROP")){
- }
- else{
- newBG.addBinding(org.jdesktop.beansbinding.Bindings.createAutoBinding(READ_WRITE,oldWT,org.jdesktop.beansbinding.BeanProperty.create(cField.getName().toString()),newWT,org.jdesktop.beansbinding.BeanProperty.create(cField.getName().toString())));
- }
- }
- newBG.bind();
- newWT.setMyBindings(newBG);
- }
Add Comment
Please, Sign In to add comment