Examples of UIFactoryTypes


Examples of net.jini.lookup.ui.attribute.UIFactoryTypes

                    if(!desc.role.equals(role)) {
                        continue;
                    }
                    for (Object attribute : desc.attributes) {
                        if (attribute instanceof UIFactoryTypes) {
                            UIFactoryTypes factoryTypes =
                                (UIFactoryTypes) attribute;
                            boolean found;
                            found = factoryTypes.isAssignableTo(
                                JComponentFactory.class);
                            if (found) {
                                // Should also look through required packages
                                // here
                                list.add(desc);
View Full Code Here

Examples of net.jini.lookup.ui.attribute.UIFactoryTypes

            throw new IllegalArgumentException("jars are null");
        if(className == null)
            throw new IllegalArgumentException("className is null");
        UIDescriptor desc = new UIDescriptor();
        desc.role = role;
        UIFactoryTypes types  ;
        MarshalledObject factory;
        URL[] urls = new URL[jars.length];
       
        for(int i = 0; i < urls.length; i++) {
            urls[i] = new URL(codebase+(codebase.endsWith("/")?"":"/")+jars[i]);
        }
       
        if(typeName.equals(JComponentFactory.TYPE_NAME)) {
            types = new UIFactoryTypes( Collections.singleton(JComponentFactory.TYPE_NAME));
            factory = new MarshalledObject<UIComponentFactory>(new UIComponentFactory(urls, className));
            desc.toolkit = JComponentFactory.TOOLKIT;
        } else if(typeName.equals(JDialogFactory.TYPE_NAME)) {
            types = new UIFactoryTypes(
                Collections.singleton(JDialogFactory.TYPE_NAME));
            factory = new MarshalledObject<UIDialogFactory>(new UIDialogFactory(urls, className));
            desc.toolkit = JDialogFactory.TOOLKIT;
        } else if(typeName.equals(JFrameFactory.TYPE_NAME)) {
            types = new UIFactoryTypes(
                Collections.singleton(JFrameFactory.TYPE_NAME));
            factory = new MarshalledObject<UIFrameFactory>(new UIFrameFactory(urls, className));
            desc.toolkit = JFrameFactory.TOOLKIT;
        } else if(typeName.equals(JWindowFactory.TYPE_NAME)) {
            types = new UIFactoryTypes(
                Collections.singleton(JWindowFactory.TYPE_NAME));
            factory = new MarshalledObject<UIWindowFactory>(new UIWindowFactory(urls, className));
            desc.toolkit = JWindowFactory.TOOLKIT;
        } else {
            throw new IllegalArgumentException("unknown typeName "+typeName);
View Full Code Here

Examples of net.jini.lookup.ui.attribute.UIFactoryTypes

        if(factory==null)
            throw new IllegalArgumentException("factory is null");
        UIDescriptor desc = new UIDescriptor();
        desc.role = role;
        desc.toolkit = JComponentFactory.TOOLKIT;
        desc.attributes = Collections.singleton(new UIFactoryTypes(Collections.singleton(JComponentFactory.TYPE_NAME)));
        desc.factory = new MarshalledObject<JComponentFactory>(factory);
        return (desc);
    }
View Full Code Here

Examples of net.jini.lookup.ui.attribute.UIFactoryTypes

        if(factory==null)
            throw new IllegalArgumentException("factory is null");
        UIDescriptor desc = new UIDescriptor();
        desc.role = role;
        desc.toolkit = JDialogFactory.TOOLKIT;
        desc.attributes = Collections.singleton(new UIFactoryTypes(Collections.singleton(JDialogFactory.TYPE_NAME)));
        desc.factory = new MarshalledObject<JDialogFactory>(factory);
        return (desc);
    }
View Full Code Here

Examples of net.jini.lookup.ui.attribute.UIFactoryTypes

        if(factory==null)
            throw new IllegalArgumentException("factory is null");
        UIDescriptor desc = new UIDescriptor();
        desc.role = role;
        desc.toolkit = JFrameFactory.TOOLKIT;
        desc.attributes = Collections.singleton(new UIFactoryTypes(Collections.singleton(JFrameFactory.TYPE_NAME)));
        desc.factory = new MarshalledObject<JFrameFactory>(factory);
        return (desc);
    }
View Full Code Here

Examples of net.jini.lookup.ui.attribute.UIFactoryTypes

        if(factory==null)
            throw new IllegalArgumentException("factory is null");
        UIDescriptor desc = new UIDescriptor();
        desc.role = role;
        desc.toolkit = JWindowFactory.TOOLKIT;
        desc.attributes = Collections.singleton(new UIFactoryTypes(Collections.singleton(JWindowFactory.TYPE_NAME)));
        desc.factory = new MarshalledObject<JWindowFactory>(factory);
        return (desc);
    }
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.