Package gov.nasa.arc.mct.gui

Examples of gov.nasa.arc.mct.gui.MenuItemInfo


        return true;
    }
   
    @Override
    protected void populate() {
        addMenuItemInfos("/windows/close.ext", Collections.<MenuItemInfo>singleton(new MenuItemInfo("WINDOW_EXCLUSIVE_CLOSE", MenuItemType.NORMAL)));
        addMenuItemInfos("/windows/list.ext", Collections.<MenuItemInfo>singleton(new MenuItemInfo("LIST_WINDOWS", MenuItemType.RADIO_GROUP)));
        addMenuItemInfos("/windows/redraw.ext", Collections.<MenuItemInfo>singleton(new MenuItemInfo("REDRAW_DATA_ACTION", MenuItemType.NORMAL)));
    }
View Full Code Here


    @Override
    protected void populate() {
        // OPEN
        addMenuItemInfos(OBJECTS_OPEN_EXT, Arrays.asList(
                new MenuItemInfo("OBJECTS_OPEN", MenuItemType.NORMAL),
                new MenuItemInfo(DetectGraphicsDevices.OBJECTS_OPEN_MULTIPLE_MONITORS_MENU, MenuItemType.SUBMENU),
                new MenuItemInfo("OBJECTS_SAVE", MenuItemType.NORMAL),
                new MenuItemInfo("OBJECTS_SAVE_ALL", MenuItemType.NORMAL)
                ));
       
    
        // VIEW OPTIONS
        addMenuItemInfos(OBJECTS_VIEW_EXT, Arrays.asList(
                new MenuItemInfo("OBJECTS_CHANGE_VIEWS", MenuItemType.RADIO_GROUP),
                new MenuItemInfo("OBJECT_REVERT_TO_COMMITTED", MenuItemType.NORMAL)));
       
        // FORMAT Z-ORDER
        addMenuItemInfos(OBJECTS_FORMAT_ZORDER_EXT, Arrays.asList(
                new MenuItemInfo("OBJECTS_FORMATTING_BRING_TO_FRONT", MenuItemType.NORMAL),
                new MenuItemInfo("OBJECTS_FORMATTING_SEND_TO_BACK", MenuItemType.NORMAL)));
       
        // FORMAT PANEL
        addMenuItemInfos(OBJECTS_FORMAT_PANEL_EXT, Arrays.asList(
                new MenuItemInfo("OBJECTS_ALIGNMENT", MenuItemType.SUBMENU),
                new MenuItemInfo("OBJECTS_BORDERS", MenuItemType.SUBMENU),
                new MenuItemInfo("OBJECTS_BORDER_STYLES", MenuItemType.SUBMENU),
                new MenuItemInfo("OBJECTS_PANEL_TITLE_BAR", MenuItemType.CHECKBOX),
                new MenuItemInfo("OBJECTS_COLUMN_HEADER", MenuItemType.CHECKBOX),
                new MenuItemInfo("OBJECTS_ROW_HEADER", MenuItemType.CHECKBOX)));
       
        // DEPRECATED
        addMenuItemInfos(OBJECTS_FORMAT_PANEL_EXT, Collections.<MenuItemInfo>singleton(new MenuItemInfo("OBJECTS_TOGGLE_BORDERS", MenuItemType.CHECKBOX)));
       
        // CREATION
        addMenuItemInfos(OBJECTS_CREATION_EXT, Arrays.asList(
                new MenuItemInfo("OBJECTS_NEW_MENU", MenuItemType.SUBMENU),
                new MenuItemInfo("OBJECTS_DUPLICATE", MenuItemType.NORMAL),
                new MenuItemInfo("OBJECTS_PLACE_OBJS_IN_COLLECTION", MenuItemType.NORMAL)));
       
        // DELETION
        addMenuItemInfos(OBJECTS_DELETION_EXT, Arrays.asList(
                new MenuItemInfo("OBJECTS_REMOVE_MANIFESTATION", MenuItemType.NORMAL),
                new MenuItemInfo("DELETE_OBJECTS", MenuItemType.NORMAL),
                new MenuItemInfo("DELETE_ALL", MenuItemType.NORMAL)));
       
        // EXPORT
        addMenuItemInfos(OBJECTS_PORT_EXT, Arrays.asList(
                new MenuItemInfo("OBJECTS_IMPORT_SUBMENU", MenuItemType.SUBMENU),
                new MenuItemInfo("OBJECTS_EXPORT_SUBMENU", MenuItemType.SUBMENU)));
       
    }
View Full Code Here

    @Override
    protected void populate() {
        addMenuItemInfos(OBJECTS_BORDERS_STYLES_EXT,
                        Collections.<MenuItemInfo>singleton(
                                        new MenuItemInfo(BorderStylesAction.ACTION_KEY, MenuItemType.RADIO_GROUP)));
    }
View Full Code Here

    }

    @Override
    protected void populate() {
        Collection<MenuItemInfo> infos = new ArrayList<MenuItemInfo>();
        infos.add(new MenuItemInfo("PANEL_CHANGE_GRID_SIZE_WINDOW", MenuItemType.RADIO_GROUP));
        addMenuItemInfos(VIEW_GRID_SIZE_SUBMENU_EXT, infos);
    }
View Full Code Here

    }

    @Override
    protected void populate() {
        addMenuItemInfos(OBJECTS_BORDERS_SIDES_EXT, Arrays.asList(
                new MenuItemInfo(BordersLeftAction.ACTION_KEY, MenuItemType.CHECKBOX),
                new MenuItemInfo(BordersRightAction.ACTION_KEY, MenuItemType.CHECKBOX),
                new MenuItemInfo(BordersTopAction.ACTION_KEY, MenuItemType.CHECKBOX),
                new MenuItemInfo(BordersBottomAction.ACTION_KEY, MenuItemType.CHECKBOX)));
       
        addMenuItemInfos(OBJECTS_BORDERS_ALLORNONE_EXT, Collections.<MenuItemInfo>singleton(new MenuItemInfo("OBJECTS_BORDERS_ALL_NONE", MenuItemType.RADIO_GROUP)));
    }
View Full Code Here

    }

    @Override
    protected void populate() {
        Collection<MenuItemInfo> infos = new ArrayList<MenuItemInfo>();
        infos.add(new MenuItemInfo("PANEL_CHANGE_GRID_SIZE", MenuItemType.RADIO_GROUP));
        addMenuItemInfos(VIEW_GRID_SIZE_SUBMENU_EXT, infos);
    }
View Full Code Here

    }

    @Override
    protected void populate() {
        Collection<MenuItemInfo> infos = new ArrayList<MenuItemInfo>();
        infos.add(new MenuItemInfo(AlignLeftAction.ACTION_KEY, MenuItemType.NORMAL));
        infos.add(new MenuItemInfo(AlignRightAction.ACTION_KEY, MenuItemType.NORMAL));
        infos.add(new MenuItemInfo(AlignTopAction.ACTION_KEY, MenuItemType.NORMAL));
        infos.add(new MenuItemInfo(AlignBottomAction.ACTION_KEY, MenuItemType.NORMAL));
        infos.add(new MenuItemInfo(AlignVerticalCenterAction.ACTION_KEY, MenuItemType.NORMAL));
        infos.add(new MenuItemInfo(AlignHorizontalCenterAction.ACTION_KEY, MenuItemType.NORMAL));
        addMenuItemInfos(OBJECTS_ALIGNMENT_ORIENTATION_EXT, infos);

    }
View Full Code Here

  }

  @Override
  public Collection<MenuItemInfo> getMenuItemInfos() {
    return Arrays.asList(               
            new MenuItemInfo(
                OBJECTS_CREATE_EXT_PATH,
                EXECUTABLE_BUTTON_ACTION_MENU,
                MenuItemType.NORMAL,
                ExecutableButtonAction.class),
                    new MenuItemInfo(
                         THIS_EXECUTE_PATH,
                         EXECUTABLE_BUTTON_THIS_MENU,
                           MenuItemType.NORMAL,
                           ExecutableButtonThisAction.class)
    );
View Full Code Here

                                          ViewType.EMBEDDED),
                                    new ViewInfo(PanelInspector.class, "Panel Inspector", ViewType.CENTER_OWNED_INSPECTOR));
    @Override
    public Collection<MenuItemInfo> getMenuItemInfos() {
        return Arrays.asList(
                        new MenuItemInfo("/objects/view.ext", "OBJECTS_CHANGE_VIEWS",
                                        MenuItemType.RADIO_GROUP, ChangeViewAction.class),
                        new MenuItemInfo("/objects/export.ext", bundle.getString("ExportViewAsImageCommandKey"),
                                        MenuItemType.NORMAL, ExportPanelAsImageAction.class),
                        new MenuItemInfo("/objects/deletion.ext", "OBJECTS_REMOVE_MANIFESTATION",
                                        MenuItemType.NORMAL, RemovePanelAction.class),
                        new MenuItemInfo("/objects/format.panel.ext", "OBJECTS_ALIGNMENT",
                                        AlignmentMenu.class),
                        // alignment menu actions
                        new MenuItemInfo(AlignmentMenu.OBJECTS_ALIGNMENT_ORIENTATION_EXT,
                                        AlignLeftAction.ACTION_KEY, MenuItemType.NORMAL,
                                        AlignLeftAction.class),

                        new MenuItemInfo(AlignmentMenu.OBJECTS_ALIGNMENT_ORIENTATION_EXT,
                                        AlignRightAction.ACTION_KEY, MenuItemType.NORMAL,
                                        AlignRightAction.class),
                       
                        new MenuItemInfo(AlignmentMenu.OBJECTS_ALIGNMENT_ORIENTATION_EXT,
                                        AlignTopAction.ACTION_KEY, MenuItemType.NORMAL,
                                        AlignTopAction.class),
                                       
                        new MenuItemInfo(AlignmentMenu.OBJECTS_ALIGNMENT_ORIENTATION_EXT,
                                        AlignBottomAction.ACTION_KEY, MenuItemType.NORMAL,
                                        AlignBottomAction.class),
                                       
                        new MenuItemInfo(AlignmentMenu.OBJECTS_ALIGNMENT_ORIENTATION_EXT,
                                        AlignVerticalCenterAction.ACTION_KEY, MenuItemType.NORMAL,
                                        AlignVerticalCenterAction.class),

                        new MenuItemInfo(AlignmentMenu.OBJECTS_ALIGNMENT_ORIENTATION_EXT,
                                        AlignHorizontalCenterAction.ACTION_KEY,
                                        MenuItemType.NORMAL, AlignHorizontalCenterAction.class),

                        new MenuItemInfo("/objects/format.panel.ext", "OBJECTS_BORDERS",
                                        BordersMenu.class),

                        new MenuItemInfo(BordersMenu.OBJECTS_BORDERS_SIDES_EXT,
                                        BordersBottomAction.ACTION_KEY, MenuItemType.CHECKBOX,
                                        BordersBottomAction.class),

                        new MenuItemInfo(BordersMenu.OBJECTS_BORDERS_SIDES_EXT,
                                        BordersTopAction.ACTION_KEY, MenuItemType.CHECKBOX,
                                        BordersTopAction.class),

                        new MenuItemInfo(BordersMenu.OBJECTS_BORDERS_SIDES_EXT,
                                        BordersLeftAction.ACTION_KEY, MenuItemType.CHECKBOX,
                                        BordersLeftAction.class),

                        new MenuItemInfo(BordersMenu.OBJECTS_BORDERS_SIDES_EXT,
                                        BordersRightAction.ACTION_KEY, MenuItemType.CHECKBOX,
                                        BordersRightAction.class),
                        new MenuItemInfo(BordersMenu.OBJECTS_BORDERS_ALLORNONE_EXT,
                                        BordersAllOrNoneAction.ACTION_KEY,
                                        MenuItemType.RADIO_GROUP, BordersAllOrNoneAction.class),
                        new MenuItemInfo("/objects/format.panel.ext", "OBJECTS_PANEL_TITLE_BAR",
                                        MenuItemType.CHECKBOX, PanelTitleBarAction.class),
                        new MenuItemInfo("/objects/format.zorder.ext",
                                        "OBJECTS_FORMATTING_BRING_TO_FRONT", MenuItemType.NORMAL,
                                        BringToFrontAction.class), new MenuItemInfo(
                                        "/objects/format.zorder.ext",
                                        "OBJECTS_FORMATTING_SEND_TO_BACK", MenuItemType.NORMAL,
                                        SendToBackAction.class),
                        new MenuItemInfo("/objects/additions", // NOI18N
                                        "OBJECTS_VIEW_GRIDS", // NOI18N
                                        GridMenu.class),
                        new MenuItemInfo("/objects/grid.size/sizes.ext", // NOI18N
                                        "PANEL_CHANGE_GRID_SIZE", // NOI18N
                                        MenuItemType.RADIO_GROUP, ChangeGridSizeAction.class),
                        new MenuItemInfo("/objects/additions", // NOI18N
                                         "CHANGE_SNAP", // NOI18N
                                         MenuItemType.CHECKBOX, ChangeSnapAction.class),
                        new MenuItemInfo("/objects/additions", // NOI18N
                                         "RETILE", // NOI18N
                                         MenuItemType.NORMAL, ReTileAction.class),
                        new MenuItemInfo("/view/formatting.ext", // NOI18N
                                         "VIEW_GRIDS", // NOI18N
                                         WindowGridMenu.class),
                        new MenuItemInfo(WindowGridMenu.VIEW_GRID_SIZE_SUBMENU_EXT, // NOI18N
                                         "PANEL_CHANGE_GRID_SIZE_WINDOW", // NOI18N
                                         MenuItemType.RADIO_GROUP, WindowChangeGridSizeAction.class),
                        new MenuItemInfo("/view/formatting.ext", // NOI18N
                                        "VIEW_CHANGE_SNAP", // NOI18N
                                        MenuItemType.CHECKBOX, WindowChangeSnapAction.class),
                        new MenuItemInfo("/view/formatting.ext", // NOI18N
                                        "VIEW_RETILE", // NOI18N
                                        MenuItemType.NORMAL, WindowReTileAction.class),
                        new MenuItemInfo("/view/select.ext", // NOI18N
                                        "VIEW_SELECT_ALL", // NOI18N
                                        MenuItemType.NORMAL, SelectAllAction.class),
                        new MenuItemInfo("/objects/format.panel.ext", "OBJECTS_BORDER_STYLES",
                                          BorderStylesMenu.class),         
                                         
                        new MenuItemInfo(BorderStylesMenu.OBJECTS_BORDERS_STYLES_EXT,
                                         BorderStylesAction.ACTION_KEY,
                                         MenuItemType.RADIO_GROUP,
                                         BorderStylesAction.class),
                                       
                        new MenuItemInfo("/objects/format.panel.ext", "OBJECTS_PANEL_TITLE_BAR",
                                        MenuItemType.CHECKBOX, PanelTitleBarAction.class),
                        new MenuItemInfo("/objects/format.zorder.ext",
                                        "OBJECTS_FORMATTING_BRING_TO_FRONT", MenuItemType.NORMAL,
                                        BringToFrontAction.class), new MenuItemInfo(
                                        "/objects/format.zorder.ext",
                                        "OBJECTS_FORMATTING_SEND_TO_BACK", MenuItemType.NORMAL,
                                        SendToBackAction.class));
    }
View Full Code Here

        }
       
        @Override
        protected void populate() {
            addMenuItemInfos("mock/all.ext", Arrays.asList(
                new MenuItemInfo("MOCK_ACTION", MenuItemType.NORMAL)));
        }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.gui.MenuItemInfo

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.