Package com.pugh.sockso.gui.controls

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


        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") );
View Full Code Here

TOP

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

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.