Package org.antlr.xjlib.appkit.app

Examples of org.antlr.xjlib.appkit.app.XJPreferences$JCheckBoxBindingAction


    private static void saveDesktopBounds() {
        Point pos = desktopFrame.getLocation();
        Dimension s = desktopFrame.getSize();
        Rectangle r = new Rectangle(pos.x, pos.y, s.width, s.height);
        XJPreferences prefs = XJApplication.shared().getPreferences();
        prefs.setObject(PREF_DESKTOP_BOUNDS, r);
    }
View Full Code Here


            return;

        Point pos = getLocation();
        Dimension s = getSize();
        Rectangle r = new Rectangle(pos.x, pos.y, s.width, s.height);
        XJPreferences prefs = XJApplication.shared().getPreferences();

        // cleanup the prefs by making sure no more than MAX_WINDOWS_BOUND_KEYS
        // are existing in the prefs.
        String[] keys = prefs.getKeys();
        if(keys != null) {
            int count = 0;
            for(String key : keys) {
                if(key.startsWith(PREF_WINDOWS_BOUNDS_PREFIX)) {
                    count++;
                    if(count > MAX_WINDOWS_BOUND_KEYS) {
                        prefs.remove(key);
                    }
                }
            }
        }
        prefs.setObject(PREF_WINDOWS_BOUNDS_PREFIX+name, r);
    }
View Full Code Here

TOP

Related Classes of org.antlr.xjlib.appkit.app.XJPreferences$JCheckBoxBindingAction

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.