Examples of GuiConfig


Examples of cli_fmw.delegate.collaborator.GUIConfig

        Date t2 = new Date();

        System.out.println("EMC TREE CREATED IN " + (t2.getTime() - t1.getTime()) + " MS");
        setEnabledComponents();

        GUIConfig config = UserInfoAbstract.get().getGuiConfig();
        showECP = config.getBoolean(GUIConfig.P_SHOW_ECP);

        StateSaver.attachTo(this);
    }
View Full Code Here

Examples of cli_fmw.delegate.collaborator.GUIConfig

            groupMenu.add(item);
        }*/
    }

    private void initPanelMenuAndToolbar(Set<UserPanel> avialiablePanels) {
        GUIConfig guiConfig = UserInfoAbstract.get().getGuiConfig();

        Map<UserPanelGroup, Menu> groupMenuMap = new HashMap<UserPanelGroup, Menu>();
        SortedSet<Menu> rootSet = new TreeSet<Menu>();

        mainMenu.removeAll();
View Full Code Here

Examples of cli_fmw.delegate.collaborator.GUIConfig

        }
    }

    protected void initToolbar() {

        GUIConfig guiConfig = UserInfoAbstract.get().getGuiConfig();

        //CLOSE BUTTON
        saveButton.setFont(smallSystemFont);
        saveButton.setActionCommand("SAVE");
        saveButton.setToolTipText("Сохранить");
        if (guiConfig.getBoolean("")) {
            saveButton.setText("Сохранить");
        }
        saveButton.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                try {
                    Persistentable persist = (Persistentable) getActivePage();
                    persist.save();
                } catch (Exception ex) {
                    MessageBox.showExceptionOnly(ex);
                }
            }
        });
        saveButton.setIcon(new ImageIcon(getClass().getResource("/resources/icons/toolbar/save.png")));
        saveButton.setEnabled(false);
        mainToolbar.add(saveButton);

        //RESTORE BUTTON
        restoreButton.setFont(smallSystemFont);
        restoreButton.setActionCommand("Restore");
        restoreButton.setToolTipText("Отменить все изменения");
        if (guiConfig.getBoolean("")) {
            restoreButton.setText("Отменить");
        }
        restoreButton.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent arg0) {
                GUIConfig config = UserInfoAbstract.get().getGuiConfig();
                boolean confirm = config.getBoolean(GUIConfig.P_CONFIRM_UNDO);
                if (confirm){
                    DialogRestore dr = new DialogRestore(mainWindow, getAuditManager());
                    dr.setVisible(true);
                    if (dr.getDlgResult() == ModalDialog.DLG_OK){
                        Persistentable persistent = (Persistentable) getActivePage();
                        persistent.restore();
                    }
                    if (!dr.needConfirm()){
                        config.setValue(GUIConfig.P_CONFIRM_UNDO, false);
                        try {
                            UserInfoAbstract.get().getCollaboratorLocal().saveGuiConfig(config);
                        } catch (ClipsException ex) {
                            MessageBox.showException(new ClipsException("Не удалось сохранить конфигурацию интерфейса", ex));
                        }
View Full Code Here

Examples of cli_fmw.delegate.collaborator.GUIConfig

                tfOldPass.setText("");
                tfPassword.setText("");
                tfPassword1.setText("");
                password = new char[0];
                oldPassword = new char[0];
                config = new GUIConfig(backupConfig);
                setScreenFields();
                fireContainerEventStateChanged();
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

Examples of cpw.mods.fml.client.config.GuiConfig

    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.general")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

Examples of cpw.mods.fml.client.config.GuiConfig

    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.armor-balance")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

Examples of cpw.mods.fml.client.config.GuiConfig

    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("tools.tool-balance")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
          this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

Examples of cpw.mods.fml.client.config.GuiConfig

    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory(Configuration.CATEGORY_GENERAL)).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, false, false,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

Examples of cpw.mods.fml.client.config.GuiConfig

    }

    @Override
    protected GuiScreen buildChildScreen()
    {
      return new GuiConfig(this.owningScreen,
          new ConfigElement(Mekanism.configuration.getCategory("usage")).getChildElements(),
          this.owningScreen.modID, Configuration.CATEGORY_GENERAL, false, false,
          GuiConfig.getAbridgedConfigPath(Mekanism.configuration.toString()));
    }
View Full Code Here

Examples of cpw.mods.fml.client.config.GuiConfig

            @Override
            protected GuiScreen buildChildScreen()
            {
                // This GuiConfig object specifies the configID of the object and as such will force-save when it is closed. The parent
                // GuiConfig object's entryList will also be refreshed to reflect the changes.
                return new GuiConfig(this.owningScreen,
                        (new ConfigElement(ForgeModContainer.getConfig().getCategory(Configuration.CATEGORY_GENERAL))).getChildElements(),
                        this.owningScreen.modID, Configuration.CATEGORY_GENERAL, this.configElement.requiresWorldRestart() || this.owningScreen.allRequireWorldRestart,
                        this.configElement.requiresMcRestart() || this.owningScreen.allRequireMcRestart,
                        GuiConfig.getAbridgedConfigPath(ForgeModContainer.getConfig().toString()));
            }
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.