Package com.tulskiy.musique.gui.model

Examples of com.tulskiy.musique.gui.model.FieldValues


    if (values != null) {
          if (values instanceof String) {
            result = (String) values;
          }
          else if (values instanceof FieldValues) {
            FieldValues vs = (FieldValues) values;
            if (vs.size() > 1) {
              result = "<multiple values> " + vs.toString();
            }
            else {
              result = vs.toString();
            }
          }
        }
       
        return result;
View Full Code Here


          if (values instanceof String) {
            return (String) values;
          }
          else if (values instanceof FieldValues) {
              StringBuilder sb = new StringBuilder();
              FieldValues vs = (FieldValues) values;
              for (int i = 0; i < vs.size(); i++) {
                String value = vs.get(i);
                if (sb.length() != 0) {
                  sb.append(separator);
                }
                sb.append(value == null ? "" : value.toString());
              }
View Full Code Here

            for (int i = 0, playlistSize = playlist.size(); i < playlistSize; i++) {
                Track track = playlist.get(i);

                boolean hasText[] = new boolean[text.length];
                for (FieldKey field : fields) {
                    FieldValues values = track.getTrackData().getTagFieldValues(field);
                    if (values != null) {
                for (int k = 0; k < values.size(); k++) {
                  String value = values.get(k);
                        if (!Util.isEmpty(value)) {
                            value = value.toLowerCase();
                            String[] vals = value.split("\\s+");
                            for (String val : vals) {
                                for (int j = 0, textLength = text.length; j < textLength; j++) {
View Full Code Here

TOP

Related Classes of com.tulskiy.musique.gui.model.FieldValues

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.