Package java.util.prefs

Examples of java.util.prefs.Preferences.node()


        boolean maximized = false;
        boolean fullScreen = false;

        try {
            Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
            preferences = preferences.node(applicationClassName);

            x = preferences.getInt(X_ARGUMENT, x);
            y = preferences.getInt(Y_ARGUMENT, y);
            width = preferences.getInt(WIDTH_ARGUMENT, width);
            height = preferences.getInt(HEIGHT_ARGUMENT, height);
View Full Code Here


        boolean undecorated = false;
        boolean fullScreen = false;

        try {
            Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
            preferences = preferences.node(applicationClassName);

            x = preferences.getInt(X_ARGUMENT, x);
            y = preferences.getInt(Y_ARGUMENT, y);
            width = preferences.getInt(WIDTH_ARGUMENT, width);
            height = preferences.getInt(HEIGHT_ARGUMENT, height);
View Full Code Here

        }

        if (!cancelShutdown) {
            try {
                Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
                preferences = preferences.node(applicationClassName);

                boolean maximized = (windowedHostFrame.getExtendedState()
                    & java.awt.Frame.MAXIMIZED_BOTH) == java.awt.Frame.MAXIMIZED_BOTH;
                if (!maximized) {
                    preferences.putInt(X_ARGUMENT, windowedHostFrame.getX());
View Full Code Here

        if (p instanceof MockAbstractPreferences) {
            ((MockAbstractPreferences) p).childs.remove(name());
        } else {
            String[] children = p.childrenNames();
            for (String child : children) {
                p.node(child).removeNode();
            }
        }
    }

    @Override
View Full Code Here

        // "subchild1");
        Preferences child1 = pref.node("child1");

        pref.node("child2");
        pref.node("child3");
        child1.node("subchild1");

        assertSame(pref, child1.parent());
        assertEquals(3, pref.childrenNames().length);
    }
View Full Code Here

    // ---- listeners ----

    doc.timeline.addTimelineListener( this );
    prefs.addPreferenceChangeListener( this );
    prefs.node( PrefsUtil.NODE_SHARED ).addPreferenceChangeListener( this );

    quitAfterSaveListener = new ProcessingThread.Listener() {
      public void processStarted( ProcessingThread.Event e ) { /* empty */ }

      // if the saving was successfull, we will call closeAll again
View Full Code Here

    if( myBC != null ) return myBC;

    int          blendLen;
    final Preferences  prefs  = getUserPrefs();

    if( prefs.node( PrefsUtil.NODE_SHARED ).getBoolean( PrefsUtil.KEY_BLENDING, false )) {
      try {
        doc.bird.waitShared( Session.DOOR_TIME );
        blendLen = (int) (doc.timeline.getRate() *
          Math.max( 0.0, prefs.node( PrefsUtil.NODE_SHARED ).getDouble(
                    PrefsUtil.KEY_BLENDTIME, 0.0 )) + 0.5);
View Full Code Here

    if( prefs.node( PrefsUtil.NODE_SHARED ).getBoolean( PrefsUtil.KEY_BLENDING, false )) {
      try {
        doc.bird.waitShared( Session.DOOR_TIME );
        blendLen = (int) (doc.timeline.getRate() *
          Math.max( 0.0, prefs.node( PrefsUtil.NODE_SHARED ).getDouble(
                    PrefsUtil.KEY_BLENDTIME, 0.0 )) + 0.5);
      }
      finally {
        doc.bird.releaseShared( Session.DOOR_TIME );
      }
View Full Code Here

        }

        if (!cancelShutdown) {
            try {
                Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
                preferences = preferences.node(applicationClassName);

                boolean maximized = (windowedHostFrame.getExtendedState()
                    & java.awt.Frame.MAXIMIZED_BOTH) == java.awt.Frame.MAXIMIZED_BOTH;
                if (!maximized) {
                    preferences.putInt(X_ARGUMENT, windowedHostFrame.getX());
View Full Code Here

        boolean fullScreen = false;
        boolean preserveSplashScreen = false;

        try {
            Preferences preferences = Preferences.userNodeForPackage(DesktopApplicationContext.class);
            preferences = preferences.node(applicationClassName);

            x = preferences.getInt(X_ARGUMENT, x);
            y = preferences.getInt(Y_ARGUMENT, y);
            width = preferences.getInt(WIDTH_ARGUMENT, width);
            height = preferences.getInt(HEIGHT_ARGUMENT, height);
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.