Package org.woped.editor.controller.vc

Examples of org.woped.editor.controller.vc.ConfigVC


            currentEditor.setDrawMode(-1, false);
        }
            break;

        case AbstractViewEvent.CONFIG:
            ConfigVC config = ((ConfigVC) getMediator().getViewController(ConfigVC.ID_PREFIX));
            if (config == null)
            {
                config = (ConfigVC) getWopedMediator().createViewController(ApplicationMediator.VIEWCONTROLLER_CONFIG);
            }
            if (getMediator().getUi() != null)
            {
                config.setLocation(Utils.getCenterPoint(getMediator().getUi().getBounds(), config.getSize()));
            }
            config.setVisible(true);

            break;

        case AbstractViewEvent.EXIT:
            getMediator().getUi().quit();
View Full Code Here


        case VIEWCONTROLLER_TASKBAR:
            vc = new TaskBarVC(TaskBarVC.ID_PREFIX);
            break;
        case VIEWCONTROLLER_CONFIG:
            if (getUi() != null && getUi().getComponent() instanceof JFrame) {
                vc = new ConfigVC((JFrame) getUi(), true, ConfigVC.ID_PREFIX);
            } else {
                vc = new ConfigVC(true, ConfigVC.ID_PREFIX);
            }
            break;
        default:
            LoggerManager.warn(Constants.EDITOR_LOGGER, "No VC created.");
            break;
View Full Code Here

TOP

Related Classes of org.woped.editor.controller.vc.ConfigVC

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.