Examples of ULCComponent


Examples of com.ulcjava.base.application.ULCComponent

            if (duplicate) {
                copy = model.duplicate(null, null);
            }

            DialogModel dialogModel = new DialogModel(ulcDialogViewerFactory, dialog, model, copy, ulcDialogListener);
            ULCComponent editorPanel = ulcDialogViewerFactory.createDefaultUlcEditor(duplicate ? copy : model).getULCComponent(ulcDialogViewerFactory);
            ULCComponent buttonPanel = ulcDialogViewerFactory.createDefaultUlcEditor(dialogModel).getULCComponent(ulcDialogViewerFactory);

            ULCBoxPane boxPane = new ULCBoxPane(1, 0);
            boxPane.add(ULCBoxPane.BOX_EXPAND_EXPAND, editorPanel);
            boxPane.add(buttonPanel);
View Full Code Here

Examples of com.ulcjava.base.application.ULCComponent

            //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

Examples of com.ulcjava.base.application.ULCComponent

        GridBagConstraints c1 = new GridBagConstraints(0, 0, 3, 1, 1.0, 1.0, GridBagConstraints.NORTHWEST, GridBagConstraints.BOTH, insets, 0, 0);
        GridBagConstraints bc1 = new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
        GridBagConstraints bc2 = new GridBagConstraints(1, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
        GridBagConstraints bc3 = new GridBagConstraints(2, 1, 1, 1, 1.0, 0.0, GridBagConstraints.NORTHWEST, GridBagConstraints.NONE, insets, 0, 0);
        try {
            ULCComponent table = factory.createUlcViewer(mainModel.getArray(), false).getULCComponent(factory);
            panel.add(table, c1);

            ULCComponent editButton = factory.createUlcViewer(mainModel.getViewableChild(ItemListModel.EDIT_ITEM_COMMAND), true).getULCComponent(factory);
            ULCComponent newButton = factory.createUlcViewer(mainModel.getViewableChild(ItemListModel.NEW_ITEM_COMMAND), true).getULCComponent(factory);
            ULCComponent deleteButton = factory.createUlcViewer(mainModel.getViewableChild(ItemListModel.DELETE_ITEM_COMMAND), true).getULCComponent(factory);

            panel.add(editButton, bc1);
            panel.add(newButton, bc2);
            panel.add(deleteButton, bc3);
        } catch (Exception e) {
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.