Package org.joshy.sketch.controls

Examples of org.joshy.sketch.controls.Menu.addItem()


    @Override
    public Menu buildPageMenu(VectorDocContext context) {
        Menu menu = new Menu();
        menu.setTitle("Page");
        menu.addItem("Add Title Page", new AddTitlePage(context));
        menu.addItem("Add Content Page", new AddContentPage(context));
        menu.addItem("Delete Selected Page", new DeletePageAction());
        menu.separator();
        menu.addItem(getString("menus.viewPresentation"), "", new ViewSlideshowAction(context));
        menu.separator();
View Full Code Here


    @Override
    public Menu buildPageMenu(VectorDocContext context) {
        Menu menu = new Menu();
        menu.setTitle("Page");
        menu.addItem("Add Title Page", new AddTitlePage(context));
        menu.addItem("Add Content Page", new AddContentPage(context));
        menu.addItem("Delete Selected Page", new DeletePageAction());
        menu.separator();
        menu.addItem(getString("menus.viewPresentation"), "", new ViewSlideshowAction(context));
        menu.separator();
        menu.addItem("Switch to Standard Theme", new SwitchTheme.Standard(null, context));
View Full Code Here

    public Menu buildPageMenu(VectorDocContext context) {
        Menu menu = new Menu();
        menu.setTitle("Page");
        menu.addItem("Add Title Page", new AddTitlePage(context));
        menu.addItem("Add Content Page", new AddContentPage(context));
        menu.addItem("Delete Selected Page", new DeletePageAction());
        menu.separator();
        menu.addItem(getString("menus.viewPresentation"), "", new ViewSlideshowAction(context));
        menu.separator();
        menu.addItem("Switch to Standard Theme", new SwitchTheme.Standard(null, context));
        menu.addItem("Switch to Cowboy Theme", new SwitchTheme.Cowboy(null, context));
View Full Code Here

        menu.setTitle("Page");
        menu.addItem("Add Title Page", new AddTitlePage(context));
        menu.addItem("Add Content Page", new AddContentPage(context));
        menu.addItem("Delete Selected Page", new DeletePageAction());
        menu.separator();
        menu.addItem(getString("menus.viewPresentation"), "", new ViewSlideshowAction(context));
        menu.separator();
        menu.addItem("Switch to Standard Theme", new SwitchTheme.Standard(null, context));
        menu.addItem("Switch to Cowboy Theme", new SwitchTheme.Cowboy(null, context));
        menu.addItem("Switch to Future Theme", new SwitchTheme.Future(null,context));
        menu.addItem("Switch to Classy Theme", new SwitchTheme.Classy(null,context));
View Full Code Here

        menu.addItem("Add Content Page", new AddContentPage(context));
        menu.addItem("Delete Selected Page", new DeletePageAction());
        menu.separator();
        menu.addItem(getString("menus.viewPresentation"), "", new ViewSlideshowAction(context));
        menu.separator();
        menu.addItem("Switch to Standard Theme", new SwitchTheme.Standard(null, context));
        menu.addItem("Switch to Cowboy Theme", new SwitchTheme.Cowboy(null, context));
        menu.addItem("Switch to Future Theme", new SwitchTheme.Future(null,context));
        menu.addItem("Switch to Classy Theme", new SwitchTheme.Classy(null,context));
        return menu;
    }
View Full Code Here

        menu.addItem("Delete Selected Page", new DeletePageAction());
        menu.separator();
        menu.addItem(getString("menus.viewPresentation"), "", new ViewSlideshowAction(context));
        menu.separator();
        menu.addItem("Switch to Standard Theme", new SwitchTheme.Standard(null, context));
        menu.addItem("Switch to Cowboy Theme", new SwitchTheme.Cowboy(null, context));
        menu.addItem("Switch to Future Theme", new SwitchTheme.Future(null,context));
        menu.addItem("Switch to Classy Theme", new SwitchTheme.Classy(null,context));
        return menu;
    }
View Full Code Here

        menu.separator();
        menu.addItem(getString("menus.viewPresentation"), "", new ViewSlideshowAction(context));
        menu.separator();
        menu.addItem("Switch to Standard Theme", new SwitchTheme.Standard(null, context));
        menu.addItem("Switch to Cowboy Theme", new SwitchTheme.Cowboy(null, context));
        menu.addItem("Switch to Future Theme", new SwitchTheme.Future(null,context));
        menu.addItem("Switch to Classy Theme", new SwitchTheme.Classy(null,context));
        return menu;
    }

    static class AddTitlePage extends SAction {
View Full Code Here

        menu.addItem(getString("menus.viewPresentation"), "", new ViewSlideshowAction(context));
        menu.separator();
        menu.addItem("Switch to Standard Theme", new SwitchTheme.Standard(null, context));
        menu.addItem("Switch to Cowboy Theme", new SwitchTheme.Cowboy(null, context));
        menu.addItem("Switch to Future Theme", new SwitchTheme.Future(null,context));
        menu.addItem("Switch to Classy Theme", new SwitchTheme.Classy(null,context));
        return menu;
    }

    static class AddTitlePage extends SAction {
        private VectorDocContext context;
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.