Package cli_fmw.main

Examples of cli_fmw.main.Persistentable


                    return;
                }
                //deactivation current panel
                Component current = jTabbedPane1.getSelectedComponent();
                if (current instanceof Persistentable){
                    Persistentable p = (Persistentable) current;
                    if (p.isDirty()) {
                        try {
                            int res = MessageBox.showConfirmYesNoCancel(
                                    MessageBox.C_SAVE_CHANGES);
                            switch (res) {
                                case MessageBox.ANSWER_YES:
                                    p.save();
                                    break;
                                case MessageBox.ANSWER_NO:
                                    p.restore();
                                    break;
                                case MessageBox.ANSWER_CANCEL:
                                    return;
                            }
                        } catch (ClipsException ex) {
View Full Code Here


    }

    @Override
    public void save() throws ClipsException {
        if (innerPage != null){
            Persistentable p = (Persistentable) innerPage;
            p.save();
            if (!p.isDirty()){
                currentCreatedDelegate = null;
            }
        }
        setEnabledComponents();
    }
View Full Code Here

TOP

Related Classes of cli_fmw.main.Persistentable

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.