Examples of load()


Examples of org.jmule.core.edonkey.metfile.ServerMet.load()

  public void importList(String fileName) throws ServerManagerException {
    ServerMet server_met;
    try {
      server_met = new ServerMet(fileName);
      server_met.load();
    } catch (ServerMetException cause) {
      throw new ServerManagerException(cause);
    }

    List<String> ip_list = server_met.getIPList();
View Full Code Here

Examples of org.jnode.driver.RemovableDeviceAPI.load()

                    argLoad.isSet() ? "load" : "eject");
                return;
            }

            if (argLoad.isSet()) {
                api.load();
            } else {
                api.eject();
            }
        } catch (IOException ex) {
            getError().getPrintWriter().format(fmt_failed, dev.getId(), ex.getLocalizedMessage());
View Full Code Here

Examples of org.joget.apps.form.dao.FormDataDao.load()

                if (formDefId != null) {
                    String tableName = appService.getFormTableName(appDef, formDefId);

                    FormDataDao dao = (FormDataDao) ac.getBean("formDataDao");

                    FormRow formRow = dao.load(formDefId, tableName, value.toString());

                    if (formRow != null && formRow.getCustomProperties() != null && formRow.getCustomProperties().get(field) != null) {
                        value = formRow.getCustomProperties().get(field);
                    }
                }
View Full Code Here

Examples of org.joget.apps.form.model.FormLoadBinder.load()

            formData = new FormData();
        }
        FormLoadBinder binder = (FormLoadBinder) element.getOptionsBinder();
        String primaryKeyValue = (formData != null) ? element.getPrimaryKeyValue(formData) : null;
        if (binder != null && !isAjaxOptionsSupported(element, formData)) {
            FormRowSet data = binder.load(element, primaryKeyValue, formData);
            if (data != null) {
                formData.setOptionsBinderData(binder, data);
            }
        }
        Collection<Element> children = element.getChildren(formData);
View Full Code Here

Examples of org.joshy.sketch.actions.OpenAction.load()

        VectorModeHelper helper = new VectorModeHelper(null);
        VectorDocContext context = helper.createDocContext(null);
        SketchCanvas canvas = new SketchCanvas(context);
        OpenAction action = new OpenAction(null);
        u.p("Url = " + this.getClass().getResource("oldVersion_-1.xml"));
        action.load(this.getClass().getResourceAsStream("oldVersion_-1.xml"),null,"oldVersion_-1.xml",null);
        SketchDocument doc = canvas.getDocument();
        u.p("canvas doc = " + doc);
        for(SNode shape : doc.getCurrentPage().getNodes()) {
            u.p("shape = " + shape);
        }
View Full Code Here

Examples of org.joshy.sketch.actions.swatches.Palette.load()

        String kind = (String) n.getProperty(KIND);
        if(STATIC_LIST.equals(kind)) return null;

        if(PALETTE.equals(kind)) {
            Palette pal = new Palette(this,n);
            pal.load();
            return pal;
        }

        String filepath = null;
        if(n.hasProperty(FILEPATH)) {
View Full Code Here

Examples of org.jostraca.BasicTemplate.load()

    String            tmfp = base+"/basic.jtm";
    BasicTemplatePath tmp01  = new BasicTemplatePath( tmfp );
    tmp01.resolve( new String[]{} );

    tm.load( tmp01 );

    //System.out.println( Constants.CONF_system+":\n"+tm.getPropertySet( Constants.CONF_system ) );
    //System.out.println( Constants.CONF_template+" after:\n"+tm.getPropertySet( Constants.CONF_template ) );
   
    assertEquals( 7, tm.getPropertySet( Constants.CONF_template ).size() );
View Full Code Here

Examples of org.jostraca.resource.PartLoader.load()


  public void testLoad() throws Exception {
    PartLoader pl  = new PartLoader( "<!--part-begin:", "-->", "<!--part-end:", "-->" );
    File       f   = FileUtil.findFile( "org/jostraca/resource/test/partloader.txt" );
    String     foo = pl.load( f, "foo" );
    assertEquals( 5, foo.length() );

    String     bar = pl.load( f, "bar" );
    assertEquals( 53, bar.length() );
  }
View Full Code Here

Examples of org.jostraca.util.OrderedPropertySetManager.load()

    psdefs.put( "test01", ps01 );
    psdefs.put( "test02", ps02 );

    OrderedPropertySetManager opsm01 = new OrderedPropertySetManager( names, psdefs );
   
    PropertySet ops01 = opsm01.load( "test01", Tools.findRelativeSystemPath("src/org/jostraca/util/test/test.conf") );
    assertEquals( "0", ops01.get("a") );
    assertEquals( "1", ops01.get("b") );
    assertEquals( "",  ops01.get("default01") );

    try {
View Full Code Here

Examples of org.jostraca.util.PropertySet.load()

  }


  protected boolean confirmPropertySet( String pTestRoot, PropertySet pReferencePS ) {
    PropertySet testps = new PropertySet();
    testps.load( new File( getTestFolder(), PREFIX_RESULT + pTestRoot + DOT + TXT ) );
    boolean test = testps.equals( pReferencePS );

    if( !test ) {
      displayPropertySets( testps, pReferencePS );
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.