Package devplugin

Examples of devplugin.ProgramReceiveTarget


        if(version > 4) {
          mReceiveTargets = new ProgramReceiveTarget[stream.readInt()];

          for(int i = 0; i < mReceiveTargets.length; i++) {
            mReceiveTargets[i] = new ProgramReceiveTarget(stream);
          }
        }
       
        if(version > 5) {
          mIsOpkg = stream.readBoolean();
View Full Code Here


    for (int i = 0; i < mAddresses.size(); i++) {
      final WebAddress adr = mAddresses.get(i);

      if (adr.isActive()) {
        list.add(new ProgramReceiveTarget(this,mLocalizer.msg("SearchOn", "Search on ") + " " + adr.getName(),adr.getName() + "." + adr.getUrl()));
      }
    }

    return list.toArray(new ProgramReceiveTarget[list.size()]);
  }
View Full Code Here

            else {
              node = mRootNode;
            }

            if(device.isAbleToAddAndRemovePrograms()) {
              node.getMutableTreeNode().setProgramReceiveTarget(new ProgramReceiveTarget(this, device.getName() + " - " + mLocalizer.msg("record", "record"), device.getId() + RECORD));
            }

            Program[] programs = device.getProgramList();

            if (programs != null) {
View Full Code Here

    public ProgramReceiveTarget[] getProgramReceiveTargets() {
        ArrayList<ProgramReceiveTarget> targets = new ArrayList<ProgramReceiveTarget>();

        for (DeviceIf device : mConfig.getDevices()) {
            if (device.isAbleToAddAndRemovePrograms()) {
                targets.add(new ProgramReceiveTarget(this, device.getName() + " - " + mLocalizer.msg("record", "record"), device.getId() + RECORD));
                targets.add(new ProgramReceiveTarget(this, device.getName() + " - " + mLocalizer.msg("remove", "remove"), device.getId() + REMOVE));
            }

            for (String command : device.getAdditionalCommands()) {
                targets.add(new ProgramReceiveTarget(this, device.getName() + " - " + command, device.getId() + "#_" + command));
            }
        }

        return targets.toArray(new ProgramReceiveTarget[targets.size()]);
    }
View Full Code Here

          mPrograms.length, plug.toString()),
          mLocalizer.msg("Attention", "Attention"), JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
    }

    if (result == JOptionPane.YES_OPTION) {
      ProgramReceiveTarget target = (ProgramReceiveTarget)mTargetList.getSelectedItem();
      plug.receivePrograms(mPrograms, target);
      Settings.propLastUsedReceivePlugin.setString(plug.getId());
      Settings.propLastUsedReceiveTarget.setString(target.getTargetId());
    }
  }
View Full Code Here

  public ProgramReceiveTarget[] getProgramReceiveTargets() {
    ArrayList<ProgramReceiveTarget> list = new ArrayList<ProgramReceiveTarget>();

    for(AbstractPluginProgramFormating config : mConfigs) {
      if(config != null && config.isValid()) {
        list.add(new ProgramReceiveTarget(this, config.getName(), config.getId()));
      }
    }

    if(list.isEmpty()) {
      list.add(new ProgramReceiveTarget(this, DEFAULT_CONFIG.getName(), DEFAULT_CONFIG.getId()));
    }

    return list.toArray(new ProgramReceiveTarget[list.size()]);
  }
View Full Code Here

      }

      if (version > 4) {
        int targets = in.readInt();
        for (int i = 0; i < targets; i++) {
          ProgramReceiveTarget t = new ProgramReceiveTarget(in);
          mReceiveTargets.add(t);
        }
      }
    }
View Full Code Here

  /**
   * @return The ProgramReceiveTarget of this list.
   */
  public ProgramReceiveTarget getReceiveTarget() {
    return new ProgramReceiveTarget(SimpleMarkerPlugin.getInstance(),
        SimpleMarkerPlugin.getLocalizer().msg("list.export", "Add to '{0}'", mName),
        mId);
  }
View Full Code Here

        }
        if(version > 10) {
          mReceiveTargets = new ProgramReceiveTarget[stream.readInt()];

          for(int i = 0; i < mReceiveTargets.length; i++) {
            mReceiveTargets[i] = new ProgramReceiveTarget(stream);
          }
        }
    }
View Full Code Here

  public ProgramReceiveTarget[] getProgramReceiveTargets() {
    ArrayList<ProgramReceiveTarget> list = new ArrayList<ProgramReceiveTarget>();

    for(AbstractPluginProgramFormating config : mConfigs) {
      if(config != null && config.isValid()) {
        list.add(new ProgramReceiveTarget(this, config.getName(), config.getId()));
      }
    }

    if(list.isEmpty()) {
      list.add(new ProgramReceiveTarget(this, DEFAULT_CONFIG.getName(), DEFAULT_CONFIG.getId()));
    }

    return list.toArray(new ProgramReceiveTarget[list.size()]);
  }
View Full Code Here

TOP

Related Classes of devplugin.ProgramReceiveTarget

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.