Examples of FormatBean


Examples of eu.planets_project.tb.gui.backing.service.FormatBean

            fmt = new URI( p.getValue() );
        } catch (URISyntaxException e) {
            e.printStackTrace();
            return null;
        }
        return new FormatBean( ServiceBrowser.fr.getFormatForUri( fmt ) );
    }
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.service.FormatBean

      if (tmpComponent != null && (tmpComponent instanceof UIData)) {
        Object tmpRowData = ((UIData) tmpComponent).getRowData();
        if (tmpRowData instanceof FormatBean ) {
            ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
            FormatBean fb = (FormatBean) tmpRowData;
            if( fb.equals( sb.getSelectedOutputFormat() ) ) {
                sb.setSelectedOutputFormat(null);
            } else {
                sb.setSelectedOutputFormat( fb );
            }
        }
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.service.FormatBean

        List<PathwayBean> paths = new ArrayList<PathwayBean>();
        for( ServiceDescription sd : sds ) {
            log.info("Inspecting "+sd.getName());
            for( MigrationPath path : sd.getPaths() ) {
                ServiceRecordBean srb = new ServiceRecordBean(sd);
                FormatBean in = new FormatBean( ServiceBrowser.fr.getFormatForUri( path.getInputFormat() ) );
                FormatBean out = new FormatBean( ServiceBrowser.fr.getFormatForUri( path.getOutputFormat() ) );
                PathwayBean pb = new PathwayBean( srb, in, out );
                paths.add(pb);
            }
        }
        return paths;
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.service.FormatBean

        Set<Format> formats =  this.getMigrationInputFormats( endpoint, out );       
           
        // Now build the full output:
        Set<FormatBean> fmts = new HashSet<FormatBean>();
        for( Format f : this.getMigrationInputFormats(null, null) ) {
            FormatBean formatBean = new FormatBean(f);
            // Make this modify if selected:
            if( formatBean.equals( this.getSelectedInputFormat() ) ) formatBean.setSelected(true);
            // Modify if enabled:
            if( ( this.getSelectedInputFormat() != null  && ! this.getSelectedInputFormat().equals(formatBean) )
                    || ! formats.contains( f ) ) formatBean.setEnabled(false);
           
            fmts.add( formatBean );
        }
        ArrayList<FormatBean> list = new ArrayList<FormatBean>(fmts);
        Collections.sort(list);
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.service.FormatBean

        Set<Format> formats = this.getMigrationOutputFormats( endpoint, in );
       
        // Now build the full output:
        Set<FormatBean> fmts = new HashSet<FormatBean>();
        for( Format f : this.getMigrationOutputFormats(null, null) ) {
            FormatBean formatBean = new FormatBean(f);
            // Modify if selected:
            if( formatBean.equals( this.getSelectedOutputFormat() ) ) formatBean.setSelected(true);
            // Modify if enabled:
            if( ( this.getSelectedOutputFormat() != null && ! this.getSelectedOutputFormat().equals(formatBean) )
                    || ! formats.contains( f ) ) formatBean.setEnabled(false);
           
            fmts.add( formatBean );
        }
        ArrayList<FormatBean> list = new ArrayList<FormatBean>(fmts);
        Collections.sort(list);
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.service.FormatBean

        List<SelectItem> slist = new ArrayList<SelectItem>();
        List<FormatBean> fbList = new ArrayList<FormatBean>();
       
        // Use the FormatBean to ensure consistent sorting.
        for( Format fmt : formats ) {
            fbList.add(new FormatBean(fmt));
        }
        Collections.sort(fbList);
       
        // Now map:
        for( FormatBean fb : fbList ) {
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.service.FormatBean

      if (tmpComponent != null && (tmpComponent instanceof UIData)) {
        Object tmpRowData = ((UIData) tmpComponent).getRowData();
        if (tmpRowData instanceof FormatBean ) {
            ServiceBrowser sb = (ServiceBrowser)JSFUtil.getManagedObject("ServiceBrowser");
            FormatBean fb = (FormatBean) tmpRowData;
            if( fb.equals( sb.getSelectedInputFormat() )) {
                sb.setSelectedInputFormat(null);
            } else {
                sb.setSelectedInputFormat( fb );
            }
        }
View Full Code Here

Examples of eu.planets_project.tb.gui.backing.service.FormatBean

    public List<FormatBean> getIdentifyResultList() {
        IdentifyResult ir = this.runIdentifyService();
        if( ir == null ) return null;
        List<FormatBean> fmts = new ArrayList<FormatBean>();
        for( URI type : ir.getTypes() ) {
            FormatBean fb = new FormatBean( ServiceBrowser.fr.getFormatForUri( type ) );
            fmts.add(fb);
        }
        return fmts;
    }
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.