Package org.metaworks

Examples of org.metaworks.Instance


              public void windowGainedFocus(WindowEvent e) {
               
                try {

                  final Type deployOrNot = new Type("Select forms to deploy");
                  final Instance deployInstance = deployOrNot.createInstance();

                  new ForLoop(){

                    public void logic(Object target) {
                      OpenedForm openedForm = (OpenedForm) target;
                     
                      File file = new File(openedForm.localFilePath);
                      if(openedForm.lastModified != file.lastModified()){
                        deployOrNot.addFieldDescriptor(new FieldDescriptor(openedForm.formName, Boolean.class, null, null));
                        deployInstance.setFieldValue(openedForm.formName, true);
                        openedForm.lastModified = file.lastModified();
                      }
                    }
                   
                  }.run(openedForms);
View Full Code Here


     
      settings.store(new FileOutputStream(GlobalContext.SETTING_FILE), null);
     
      for(Enumeration enumeration = settings.keys(); enumeration.hasMoreElements(); ){
        String k = (String)enumeration.nextElement();
        Instance rec = settingsTable.createInstance();
        rec.setFieldValue("property", k);
        rec.setFieldValue("value", settings.get(k));
        app.addInstance(rec);       
      }
    }catch(Exception e){
      e.printStackTrace();
    }   
View Full Code Here

TOP

Related Classes of org.metaworks.Instance

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.