Package clips.main

Examples of clips.main.ClipsConfig


    public PanelRegister(PageContainer container) throws ClipsException {
        super(container);
        initComponents();
        initWriterList();

        ClipsConfig cfg = ClipsConfig.getInstance();
        tfDir.setText(cfg.getRegisterExportPath().getAbsolutePath());
        tableErrors.getSelectionModel().setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
        tableErrors.getSelectionModel().addListSelectionListener(new ListSelectionListener() {

            @Override
            public void valueChanged(ListSelectionEvent e) {
View Full Code Here


            //MessageBox.showException(ex);
}//GEN-LAST:event_btStartActionPerformed

private void btDirSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btDirSelectActionPerformed
    JFileChooser    dlg = new JFileChooser();
    ClipsConfig cfg = ClipsConfig.getInstance();
    dlg.setCurrentDirectory(cfg.getRegisterExportPath());
    dlg.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int  res = dlg.showOpenDialog(this);
    if (res == JFileChooser.APPROVE_OPTION){
        cfg.setRegisterExportPath(dlg.getSelectedFile());
    }
    tfDir.setText(cfg.getRegisterExportPath().getAbsolutePath());
}//GEN-LAST:event_btDirSelectActionPerformed
View Full Code Here

     * @param itemID
     * @throws java.io.IOException
     */
    @SuppressWarnings("empty-statement")
    private void writeSelectSpecToFile(int specId, int collId) throws IOException {
        ClipsConfig cfg = ClipsConfig.getInstance();
        cfg.setLastLoginGroup(specId);
        cfg.setLastLoginUserID(collId);
    }
View Full Code Here

     *  Чтение номера специальности из файла
     *
     * @throws java.io.FileNotFoundException
     */
    private void readSpecFromFile() throws ClipsException {
        ClipsConfig cfg = ClipsConfig.getInstance();
        if (cfg.getLastLoginGroup() < 0
                || cfg.getLastLoginUserID() < 0) {
            return;
        }
        try {
            DirectoryCollaboratorItem coll = collsDir.getItemFromID(cfg.getLastLoginUserID());
            selectItems(coll);
        } catch (DirectoryItemNotFoundException ex) {
            //cbLG.setSelectedIndex(0);
        }
    }
View Full Code Here

TOP

Related Classes of clips.main.ClipsConfig

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.