Package com.pugh.sockso.gui.controls

Examples of com.pugh.sockso.gui.controls.BooleanOptionField


        );
        DefaultFormBuilder builder = new DefaultFormBuilder(layout);
        builder.setDefaultDialogBorder();

        builder.appendSeparator( "Options" );
        builder.append( "Require login:", new BooleanOptionField(p,Constants.WWW_USERS_REQUIRE_LOGIN) );
        builder.nextLine();
        builder.append( "Disable registering:", new BooleanOptionField(p,Constants.WWW_USERS_DISABLE_REGISTRATION) );
        builder.nextLine();
        builder.append( "Require activation:", new BooleanOptionField(p,Constants.WWW_USERS_REQUIRE_ACTIVATION) );
        builder.nextLine();
       
        return builder.getPanel();
       
    }
View Full Code Here


        );
        DefaultFormBuilder builder = new DefaultFormBuilder(layout);
        builder.setDefaultDialogBorder();
 
        builder.appendSeparator( locale.getString("gui.label.community") );
        builder.append( locale.getString("gui.label.communityEnabled"), new BooleanOptionField(p,Constants.COMMUNITY_ENABLED) );
        builder.nextLine();
       
        builder.appendSeparator( locale.getString("gui.label.webServer") );
        builder.append( locale.getString("gui.label.port"), new NumberOptionField(p,"server.port") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.basepath"), new TextOptionField(p,"server.basepath") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.wwwTitle"), new TextOptionField(p,"www.title") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.wwwTagline"), new TextOptionField(p,"www.tagline") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.disableDownloads"), new BooleanOptionField(p,"www.disableDownloads") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.enableFolderBrowsing"), new BooleanOptionField(p,"browse.folders.enabled") );

        final String scheduler = p.get( Constants.SCHED, "" );

        if ( !scheduler.equals("cron") && !scheduler.equals("manual") ) {
            builder.appendSeparator( locale.getString("gui.label.collection") );
            builder.append( locale.getString("gui.label.scanOnStartup"), new BooleanOptionField(p,"collman.scan.onStart") );
            builder.nextLine();
            builder.append( locale.getString("gui.label.scanCoverArt"), new BooleanOptionField(p,Constants.COLLMAN_SCAN_COVERS) );
            builder.nextLine();
            builder.append( locale.getString("gui.label.scanInterval"), new NumberOptionField(p,Constants.SCHED_SIMPLE_INTERVAL) );
            builder.nextLine();
        }

        builder.appendSeparator( locale.getString("gui.label.uploads") );
        builder.append( locale.getString("gui.label.enableUploads"), new BooleanOptionField(p,"uploads.enabled") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.anonymousUploads"), new BooleanOptionField(p,"uploads.allowAnonymous") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.uploadsDirectory"), new UploadDirectoryOptionField(parent,p,"uploads.collectionId",locale,db,cm) );
        builder.nextLine();

        builder.appendSeparator( locale.getString("gui.label.general") );
        builder.append( locale.getString("gui.label.startMinimized"), new BooleanOptionField(p,"app.startMinimized") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.confirmExit"), new BooleanOptionField(p,"app.confirmExit") );
        builder.nextLine();

        builder.appendSeparator( locale.getString("gui.label.logging") );
        builder.append( locale.getString("gui.label.enableRequestLog"), new BooleanOptionField(p,"log.requests.enable") );
        builder.nextLine();
        builder.append( locale.getString("gui.label.exportRequestLogAs"), exportRequestLogFormats  );
        builder.nextLine();
        builder.append( "", exportRequestLogButton  );
        builder.nextLine();
View Full Code Here

TOP

Related Classes of com.pugh.sockso.gui.controls.BooleanOptionField

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.