Examples of CloseSaveButtonTabbedPane


Examples of fr.soleil.gui.flyscan.gui.custom.tabbedpane.CloseSaveButtonTabbedPane

        configDevicePanel.add(scanInfoAndCommandsPanel, scanInfoAndCommandsPanelConstraints);

        this.add(configDevicePanel, devicePanelConstraints);

        tabbedPane = new CloseSaveButtonTabbedPane(expert);

        tabbedPane.addChangeListener(new ChangeListener() {

            @Override
            public void stateChanged(ChangeEvent e) {
View Full Code Here

Examples of fr.soleil.gui.flyscan.gui.custom.tabbedpane.CloseSaveButtonTabbedPane

    @Override
    public boolean quit() {

        if (isExpert) {
            CloseSaveButtonTabbedPane tabbedPane = flyScanTangoBox.getTabbedPane();
            int nbConfigUnsaved = 0;
            for (int i = 0; i < tabbedPane.getTabCount(); i++) {
                if (tabbedPane.getTitleAt(i).trim().endsWith(Utilities.ASTERISK)) {
                    nbConfigUnsaved++;
                }
            }
            if (nbConfigUnsaved > 0) {
                Object[] options = { "Cancel", "Ignore changes and quit" };
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.