Examples of ULCViewerCreator


Examples of com.nexirius.ulc.ulcviewer.ULCViewerCreator

    public ULCFrame getMainUlcFrame() {
        return mainFrame;
    }

    public boolean popupEdit(DataModel dataModel) {
        ULCViewerCreator ulcViewerCreator = null;
        try {
            ulcViewerCreator = getUlcFactory().getUlcViewerCreatorMap().getUlcViewerCreator(dataModel.getClass(), true);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
View Full Code Here

Examples of com.nexirius.ulc.ulcviewer.ULCViewerCreator

        if (commands != null) {
            for (DataModelCommand m = commands.firstItem(); m != null; m = commands.nextItem()) {
                if (m.getCommandName().equals(name)) {
                    MenuItemULCEditor viewer = null;
                    try {
                        viewer = (MenuItemULCEditor) factory.createUlcViewer(new ULCViewerCreator(MenuItemULCEditor.class), m);
                        menuItem = (ULCMenuItem) viewer.getULCComponent(factory);
                    } catch (Exception e) {
                        e.printStackTrace()//TODO
                    }
                }
View Full Code Here

Examples of com.nexirius.ulc.ulcviewer.ULCViewerCreator

    public void init() {
        try {
            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);
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.