Exemple #1
0
  public void showExportVideoDialog() {
    List<String> channels = channelListPanel.getSelectedChannels();

    // remove non-data channels
    for (int i = channels.size() - 1; i >= 0; i--) {
      Channel channel = RBNBController.getInstance().getChannel(channels.get(i));
      String mime = channel.getMetadata("mime");
      if (!mime.equals("image/jpeg")) {
        channels.remove(i);
      }
    }

    // don't bring up the dialog if there are no channels specified
    if (channels.isEmpty()) {
      JOptionPane.showMessageDialog(
          null, "There are no video channels selected.", "Error", JOptionPane.ERROR_MESSAGE);
      return;
    }

    new ExportVideoDialog(frame, rbnb, channels);
  }
Exemple #2
0
 /**
  * Gets a list of channels selected in the channel list.
  *
  * @return a list of selected channels
  */
 public List<String> getSelectedChannels() {
   return channelListPanel.getSelectedChannels();
 }