Package com.nexirius.framework.dataviewer

Examples of com.nexirius.framework.dataviewer.ViewerCreatorMap


        mainModel.appendMethod(new SaveAsCommand());
        mainModel.appendMethod(new ExitCommand());
    }

    public void init() {
        ViewerCreatorMap map = factory.getViewerCreatorMap();

        map.register(MainModel.class, new SwingViewerCreator(MainViewer.class));
        map.register(MediaArrayModel.class, new MediaArrayLayout(), false);

        try {
            // create an editor for the main model
            DataViewer editor = getFactory().createViewer(mainModel, true);
View Full Code Here


    public void preInit() {
        OnlineHelp.init(new MyOnlineHelpManager());
        DialogManager.setErrorAdaptor(this);
        DialogManager.setPopupEditorAdaptor(this);

        ViewerCreatorMap map = getFactory().getViewerCreatorMap();

        map.register(MainModel.class, new SwingViewerCreator(MainEditor.class));
        map.register(MemberModel.class, new SwingViewerCreator(MemberEditor.class));
        map.register(AddressModel.class, new SwingViewerCreator(AddressEditor.class));
        map.register(AddressModel.class, new SwingViewerCreator(AddressViewer.class));
        map.register(PersonModel.class, new SwingViewerCreator(PersonEditor.class));
        map.register(PersonModel.class, new SwingViewerCreator(PersonViewer.class));
        map.register(PhoneModel.class, new SwingViewerCreator(PhoneEditor.class));
        map.register(MemberArrayModel.class, new MemberArrayLayout(400), false);
        map.register(AddressArrayModel.class, new AddressArrayLayout(400), false);
        map.register(PhoneArrayModel.class, new PhoneArrayLayout(400), false);
        map.register(EditListModel.class, new SwingViewerCreator(EditListEditor.class));

        try {
            mainController = new MainController(getFactory());
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

            e.printStackTrace()//TODO
        }
    }

    public void init() {
        ViewerCreatorMap map = getFactory().getViewerCreatorMap();

        map.registerSwingViewer(ItemListModel.class, ItemListViewer.class);
        map.register(ItemArrayModel.class, new ItemArrayLayout(), false);
        //map.registerSwingViewer(DoubleModel.class, DoubleViewer.class);

        try {
            DataViewer viewer = getFactory().createDefaultEditor(mainModel);
            getMainPanel().setLayout(new GridLayout(1, 1));
View Full Code Here

        readSettings(settings);

        mainModel.initSettings(settings);

        String[] locales = getMainModel().getSettings().getLocales().getArray();
        ViewerCreatorMap map = getFactory().getViewerCreatorMap();

        map.register(EntryModel.class, new EntryLayout(locales), true);
        map.register(EntryArrayModel.class, new EntryArrayLayout(locales), false);
        map.register(MainModel.class, new SwingViewerCreator(MainViewer.class));

        try {
            initMainPanel();

            getMainFrame().pack();
View Full Code Here

TOP

Related Classes of com.nexirius.framework.dataviewer.ViewerCreatorMap

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.