Package de.sciss.gui

Examples of de.sciss.gui.PathField


        }
//System.out.println( "channelsUsed[ " + j + " ] = " + channelsUsed[ j ]);
        if( channelsUsed[ j ] == 0 ) continue;

        filesUsed++;
        ggPathFields[ j ] = new PathField( PathField.TYPE_OUTPUTFILE, getValue( NAME ).toString() );
        if( protoType[ j ].file == null ) {
          fileName  = getResourceString( "frameUntitled" ) + (ggPathFields.length > 1 ? "-" + (j+1) : "");
        } else if( asCopySettings || selectionSettings ) {
          str  = protoType[ j ].file.getName();
          i  = str.lastIndexOf( '.' );
View Full Code Here


          return panelTextField;
        }

      case MapManager.Context.TYPE_FILE:
        Integer    type;
        PathField  ggPath;
        if( c.typeConstraints != null && (c.typeConstraints instanceof Integer) ) {
          type = (Integer) c.typeConstraints;
        } else {
          type = new Integer( PathField.TYPE_INPUTFILE );
        }
        ggPath = (PathField) mapPathFields.get( type );
        if( ggPath == null ) {
          ggPath = new PathField( type.intValue(), c.label );
          ggPath.addPathListener( this );
//              GUIUtil.setDeepFont( ggPath, GraphicsUtil.smallGUIFont );
          AbstractWindowHandler.setDeepFont( ggPath );
          mapPathFields.put( type, ggPath );
        }
        ggPath.setPath( (value == null) || !(value instanceof File) ?
                new File( "" ) : (File) value );
        return ggPath;
       
      default:
        if( ggLabel == null ) {
View Full Code Here

    Container cp = getContentPane();
    cp.setLayout( new SpringLayout() );
   
    int rows = 0;
   
    ggInputDir  = new PathField( PathField.TYPE_FOLDER, "Input folder ('IRC_XXXX_R')" );
    ggOutputDir  = new PathField( PathField.TYPE_FOLDER, "Output folder" );
   
    rows++;
    cp.add( new JLabel( "Input folder" ));
    cp.add( ggInputDir );
    rows++;
View Full Code Here

  {
    if( ggFormat == null ) return;
   
    final String    suffix  = AudioFileDescr.getFormatSuffix( ggFormat.getSelectedIndex() );
    File        path, newPath;
    PathField      ggPath;
   
    if( ggPaths != null ) {
      for( int i = 0; i < ggPaths.size(); i++ ) {
        ggPath  = (PathField) ggPaths.get( i );
        path  = ggPath.getPath();
        newPath  = IOUtil.setFileSuffix( path, suffix );

        if( newPath != path ) {  // IOUtil returns same ref in case of equality
          ggPath.setPath( newPath );
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of de.sciss.gui.PathField

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.