Package com.nexirius.ulc.ulcviewer

Examples of com.nexirius.ulc.ulcviewer.ULCViewer


        DataModelEnumeration fields = model.getEnumeration();
        while (fields.hasMore()) {
            DataModel child = fields.next();
            try {
                ULCViewer editor = factory.createDefaultUlcEditor(child);

                fieldPane.add(new ULCLabel(factory.getClientResource().getLabel(child.getFieldName())));
                fieldPane.add(ULCBoxPane.BOX_EXPAND_EXPAND, editor.getULCComponent(factory));
            } catch (Exception e) {
                e.printStackTrace()//TODO
            }
        }

        ULCBoxPane buttonPane = new ULCBoxPane(0, 1);

        if (model.getMethods() != null) {
            Enumeration methods = model.getMethods().elements();
            while (methods.hasMoreElements()) {
                DataModelCommand child = (DataModelCommand) methods.nextElement();
                try {
                    ULCViewer editor = factory.createDefaultUlcEditor(child);
                    buttonPane.add(editor.getULCComponent(factory));
                } catch (Exception e) {
                    e.printStackTrace()//TODO
                }
            }
        }
View Full Code Here


            ULCViewerFactory ulcFactory = getUlcFactory();

            //ulcFactory.getUlcViewerCreatorMap().register(ItemModel.class, new ULCViewerCreator(ItemULCEditor.class));
            ulcFactory.getUlcViewerCreatorMap().register(ItemListModel.class, new ULCViewerCreator(ItemListULCViewer.class));

            ULCViewer editor = ulcFactory.createDefaultUlcEditor(mainModel);
            ULCComponent ulcComponent = editor.getULCComponent(ulcFactory);

            getMainULCPanel().add(ULCBoxPane.BOX_EXPAND_EXPAND, ulcComponent);
        } catch (Exception e) {
            e.printStackTrace()//TODO
        }
View Full Code Here

TOP

Related Classes of com.nexirius.ulc.ulcviewer.ULCViewer

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.