Package com.tulskiy.musique.gui.model

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


        aMap.put("edit", new AbstractAction("Edit") {
            @Override
            public void actionPerformed(ActionEvent e) {
              List<TrackInfoItem> selectedItems = getSelectedItems(table);
              TrackInfoItem firstItem = selectedItems.get(0);
              if (!selectedItems.isEmpty()) {
              final SingleTagFieldModel tagFieldModel = firstItem.getTracks().size() == 1 ?
                  new SingleTagFieldModel(firstItem, firstItem.getTracks().get(0)) :
                   new SingleTagFieldModel(firstItem);
          TracksInfoEditFieldDialog dialog = new TracksInfoEditFieldDialog(table, tagFieldModel);
          dialog.setVisible(true);
              }
            }
View Full Code Here


        b1.add(add);
        add.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
              FieldKeyMeta keyMeta = (FieldKeyMeta) key.getSelectedItem();
              TrackInfoItem trackInfoItem = new TrackInfoItem(keyMeta.getKey(),
                  tagFieldsModel.getTrackInfoItems().get(0).getTracks());
              trackInfoItem.getState().setValue(value.getText());
              trackInfoItem.approveState(false);
             
              tagFieldsModel.addTrackInfoItem(trackInfoItem);
              tagFieldsModel.sort();

              properties.revalidate();
View Full Code Here

  public TrackInfoItemSelection(List<TrackInfoItem> data) {
    if (data != null) {
      items = new ArrayList<TrackInfoItem>(data.size());
      for (TrackInfoItem item : data) {
        items.add(new TrackInfoItem(item));
      }
    }
  }
View Full Code Here

TOP

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

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.