Examples of DcMenu


Examples of net.datacrow.console.components.DcMenu

       
        menu.setPreferredSize(new Dimension(100, 22));
        menu.setMaximumSize(new Dimension(100, 22));
        menu.setMinimumSize(new Dimension(50, 22));
       
        DcMenu menuFilter = ComponentFactory.getMenu(DcResources.getText("lblFileTypes"));
        DcMenuItem menuFileTypes = ComponentFactory.getMenuItem(DcResources.getText("lblFileTypes"));
        menuFilter.add(menuFileTypes);
       
        menu.add(menuFilter);
       
        menuFileTypes.addActionListener(this);
        menuFileTypes.setActionCommand("filterFileTypes");
View Full Code Here

Examples of net.datacrow.console.components.DcMenu

        button.setLayout(layout);
        return button;
    }
   
    public static final DcMenu getMenu(String text) {
        DcMenu menu = new DcMenu(text);
        return menu;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcMenu

        this.module = module;
      build();
    }
   
    private void build() {
        DcMenu menuAdministration = new AdministrationMenu(module);
        DcMenu menuTools = ComponentFactory.getMenu(DcResources.getText("lblTools"));
        DcMenu menuModules = ComponentFactory.getMenu(DcResources.getText("lblModules"));
        DcMenu menuSettings = ComponentFactory.getMenu(DcResources.getText("lblSettings"));
        DcMenu menuFile = ComponentFactory.getMenu(DcResources.getText("lblFile"));
        DcMenu menuFilter = ComponentFactory.getMenu(DcResources.getText("lblFilter"));
        DcMenu menuPlugins = ComponentFactory.getMenu(DcResources.getText("lblPlugins"));
        DcMenu menuUser = ComponentFactory.getMenu(DcResources.getText("lblUser"));
        DcMenu menuXp = ComponentFactory.getMenu(DcResources.getText("lblXpMode"));
        DcMenu menuWebServer = ComponentFactory.getMenu(DcResources.getText("lblWebServer"));
        DcMenu menuHelp = ComponentFactory.getMenu(DcResources.getText("lblHelp"));
       
        // webserver menu
        if (DataCrow.isWebModuleInstalled())
            PluginHelper.add(menuWebServer, "WebServer");
       
        // xp menu
        PluginHelper.add(menuXp, "BeginnerMode");
        PluginHelper.add(menuXp, "ExpertMode");
       
        // view menu
        DcMenu menuView = ComponentFactory.getMenu(DcResources.getText("lblView"));
        for (int view : module.getSupportedViews())
            PluginHelper.add(menuView, "ChangeView", null, null, null, view, -1);  
       
        menuView.addSeparator();
        PluginHelper.add(menuView, "ToggleQuickFilterBar");
        PluginHelper.add(menuView, "ToggleModuleList");
        PluginHelper.add(menuView, "ToggleQuickView");
        PluginHelper.add(menuView, "ToggleGroupingPane");
        PluginHelper.add(menuView, "ToggleToolbarLabels");
        PluginHelper.add(menuView, "ToggleToolbar");

        // modules menu
        DcMenu subMenuModule = ComponentFactory.getMenu(DcResources.getText("lblActiveModule"));
        for (DcModule module : DcModules.getModules()) {
            if (module.isSelectableInUI())
                PluginHelper.add(subMenuModule, "OpenModule", module.getIndex());
        }
       
        PluginHelper.add(menuModules, "CreateModuleWizard");
        PluginHelper.add(menuModules, "CopyModuleWizard");
        PluginHelper.add(menuModules, "AlterModuleWizard");
        PluginHelper.add(menuModules, "RelateModuleWizard");
        PluginHelper.add(menuModules, "DeleteModuleWizard");
        menuModules.addSeparator();
        PluginHelper.add(menuModules, "ExportModuleWizard");
        PluginHelper.add(menuModules, "ImportModuleWizard");  
        menuModules.addSeparator();
        menuModules.add(subMenuModule);
       
        // help menu
        PluginHelper.add(menuHelp, "Help");
        PluginHelper.add(menuHelp, "TipOfTheDay");
        menuHelp.addSeparator();
        PluginHelper.add(menuHelp, "About");
        PluginHelper.add(menuHelp, "Donate");
        menuHelp.addSeparator();
        PluginHelper.add(menuHelp, "ToolSelectWizard");
       
        // filter menu
        PluginHelper.add(menuFilter, "Filter");
        PluginHelper.add(menuFilter, "ApplyFilter");
        menuFilter.addSeparator();
        PluginHelper.add(menuFilter, "UndoFilter");
       
        // tools menu
        if (module.getImporterClass() != null)
            PluginHelper.add(menuTools, "FileImport");

        // tools menu
       
        if (module.deliversOnlineService()) {
            menuTools.addSeparator();

            if (module.getIndex() == DcModules._AUDIOCD)
              PluginHelper.add(menuTools, "RetrieveAudioCDInformation");

            PluginHelper.add(menuTools, "OnlineSearch");
            menuTools.addSeparator();
        }
       
        if (module.getSynchronizer() != null) {
            PluginHelper.add(menuTools, "MassUpdate");
            menuTools.addSeparator();
        }  
       
        // file menu
        DcMenu menuCreateNew = ComponentFactory.getMenu(IconLibrary._icoAdd,
                                DcResources.getText("lblNewItem", module.getObjectName()));
        boolean templatesPresent = false;
        if (module.getTemplateModule() != null) {
            Templates.refresh();
            for (DcTemplate template : Templates.getTemplates(module.getTemplateModule().getIndex())) {
View Full Code Here

Examples of net.datacrow.console.components.DcMenu

        DcMenu menu = new DcMenu(text);
        return menu;
    }

    public static final DcMenu getMenu(ImageIcon icon, String text) {
        DcMenu menu = new DcMenu(text);
        menu.setFont(getSystemFont());
        menu.setIcon(icon);
        return menu;
    }
View Full Code Here

Examples of net.datacrow.console.components.DcMenu

public class ContainerTreePanelMenuBar extends TreePanelMenuBar {

    public ContainerTreePanelMenuBar(int modIdx, TreePanel treePanel) {
        super(modIdx, treePanel);
       
        DcMenu menuView = ComponentFactory.getMenu(DcResources.getText("lblView"));

        DcMenuItem menuViewFlat = ComponentFactory.getMenuItem(DcResources.getText("lblFlatView"));
        DcMenuItem menuViewHierarchy = ComponentFactory.getMenuItem(DcResources.getText("lblHierarchicalView"));
        DcMenuItem menuViewContainers = ComponentFactory.getMenuItem(DcResources.getText("lblViewContainers"));
        DcMenuItem menuViewItems = ComponentFactory.getMenuItem(DcResources.getText("lblViewItems"));
       
        menuView.add(menuViewFlat);
        menuView.add(menuViewHierarchy);
        menuView.addSeparator();
        menuView.add(menuViewContainers);
        menuView.add(menuViewItems);
       
        menuViewFlat.setActionCommand("flatView");
        menuViewHierarchy.setActionCommand("hierView");
        menuViewContainers.setActionCommand("viewContainers");
        menuViewItems.setActionCommand("viewItems");
View Full Code Here

Examples of net.datacrow.console.components.DcMenu

       
        menu.setPreferredSize(new Dimension(100, 22));
        menu.setMaximumSize(new Dimension(100, 22));
        menu.setMinimumSize(new Dimension(50, 22));
       
        DcMenu menuFilter = ComponentFactory.getMenu(DcResources.getText("lblFileTypes"));
        DcMenuItem menuFileTypes = ComponentFactory.getMenuItem(DcResources.getText("lblFileTypes"));
        menuFilter.add(menuFileTypes);
       
        menu.add(menuFilter);
       
        menuFileTypes.addActionListener(this);
        menuFileTypes.setActionCommand("filterFileTypes");
View Full Code Here

Examples of net.datacrow.console.components.DcMenu

public class FieldTreePanelMenuBar extends TreePanelMenuBar {

    public FieldTreePanelMenuBar(int modIdx, TreePanel treePanel) {
        super(modIdx, treePanel);
       
        DcMenu menuFields = ComponentFactory.getMenu(DcResources.getText("lblGroupBy"));
       
        DcMenuItem miGroupBy = ComponentFactory.getMenuItem(DcResources.getText("msgSelectFields"));
        miGroupBy.setActionCommand("groupBy");
        miGroupBy.addActionListener(this);
        menuFields.add(miGroupBy);
       
        add(menuFields);
    }
View Full Code Here

Examples of net.datacrow.console.components.DcMenu

   
    public TreePanelMenuBar(int modIdx, TreePanel treePanel) {
        this.modIdx = modIdx;
        this.treePanel = treePanel;

        DcMenu menuEdit = ComponentFactory.getMenu(DcResources.getText("lblEdit"));
        DcMenuItem menuExpandAll = ComponentFactory.getMenuItem(DcResources.getText("lblExpandAll"));
        DcMenuItem menuCollapseAll = ComponentFactory.getMenuItem(DcResources.getText("lblCollapseAll"));
       
        menuCollapseAll.addActionListener(this);
        menuCollapseAll.setActionCommand("collapseAll");
       
        menuExpandAll.addActionListener(this);
        menuExpandAll.setActionCommand("expandAll");
       
        menuEdit.add(menuCollapseAll);
        menuEdit.add(menuExpandAll);
       
       

       
        setPreferredSize(new Dimension(100, 22));
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.