Examples of ULCDialog


Examples of com.ulcjava.base.application.ULCDialog

        instance = new ULCDialogManager(application);
    }

    public ULCDialog createDialog() {
        return new ULCDialog(application.getMainUlcFrame());
    }
View Full Code Here

Examples of com.ulcjava.base.application.ULCDialog

        ULCDialogViewerFactory ulcDialogViewerFactory = new ULCDialogViewerFactory(ulcFactory.getClientResource());
        ulcDialogViewerFactory.setUlcViewerCreatorMap(ulcFactory.getUlcViewerCreatorMap());
        ulcDialogViewerFactory.startDialog();

        try {
            ULCDialog dialog = createDialog();
            DataModel copy = null;

            String fieldName = model.getFieldName();

            if (fieldName != null) {
                dialog.setTitle(ulcFactory.getClientResource().getLabel(fieldName));
            }

            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);

            dialog.add(boxPane);
            dialog.setVisible(true);

            return dialog;
        } catch (Exception e) {
            e.printStackTrace();
            return null;
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.