Package net.sf.jhylafax.fax

Examples of net.sf.jhylafax.fax.FaxJob


    jobTableModel.setData(data);
  }

  @Override
  public void updateActions() {
    FaxJob job = getSelectedJob();
    viewAction.setEnabled(job != null);
    boolean isEditable = (job != null) && job.getID() != -1;
    editAction.setEnabled(isEditable);
    removeAction.setEnabled(isEditable);
    suspendAction.setEnabled(job != null && job.getState() != FaxJob.State.SUSPENDED);
    resumeAction.setEnabled(job != null && job.getState() == FaxJob.State.SUSPENDED);
    retryAction.setEnabled(job != null);
  }
View Full Code Here


      // a double click could be triggered despite of the disabled state
      if (!isEnabled()) {
        return;
      }

      FaxJob job = getSelectedJob();
      EditDialog dialog = new EditDialog(JHylaFAX.getInstance(), job);
      dialog.setLocationRelativeTo(JHylaFAX.getInstance());
      dialog.setVisible(true);
    }
View Full Code Here

      //putValue(ICON_FILENAME, "redo.png");
    }

    public void actionPerformed(ActionEvent e)
    {
      FaxJob job = getSelectedJob();
      List<Property> data = new ArrayList<Property>();
      data.add(new Property(i18n.tr("Assigned modem"), job.getAssignedModem()));
      data.add(new Property(i18n.tr("Client-specefied dial string"), job.getClientDialString()));
      data.add(new Property(i18n.tr("Client machine name"), job.getClientMachineName()));
      data.add(new Property(i18n.tr("Scheduling priority"), job.getClientSchedulingPriority()));
      data.add(new Property(i18n.tr("Communication identifier"), job.getCommunicationIdentifier()));
      data.add(new Property(i18n.tr("Page chopping threshold"), job.getChoppingThreshold()));
      data.add(new Property(i18n.tr("Client-specified minimum signalling rate"), job.getClientMinimumSignallingRate()));
      data.add(new Property(i18n.tr("Client-specified tag"), job.getTag()));
      data.add(new Property(i18n.tr("Client-specified tagline format"), job.getTaglineFormat()));
      data.add(new Property(i18n.tr("# of consecutive failed dials"), job.getConsecutiveFailedDials()));
      data.add(new Property(i18n.tr("# of consecutive failed tries"), job.getConsecutiveFailedTries()));
      data.add(new Property(i18n.tr("Desired data format"), job.getDesiredDataFormat()));
      data.add(new Property(i18n.tr("Desired use of ECM"), job.getDesiredECM()));
      data.add(new Property(i18n.tr("Desired minimum scanline time"), job.getDesiredMinScanline()));
      data.add(new Property(i18n.tr("Desired signalling rate"), job.getDesiredSignallingRate()));
      data.add(new Property(i18n.tr("Destination company name"), job.getDestinationCompanyName()));
      data.add(new Property(i18n.tr("Destination geographic location"), job.getDestinationLocation()));
      data.add(new Property(i18n.tr("Destination password"), job.getDestinationPassword()));
      data.add(new Property(i18n.tr("Destination sub-address"), job.getDestinationSubAddress()));
      data.add(new Property(i18n.tr("# of attempted dials"), job.getDialsAttempted()));
      data.add(new Property(i18n.tr("Group identifier"), job.getGroupID()));
      data.add(new Property(i18n.tr("Horizontal resolution"), job.getHorizontalResolution()));
      data.add(new Property(i18n.tr("ID"), job.getID()));
      data.add(new Property(i18n.tr("Job done operation"), job.getJobDoneOperation()));
      data.add(new Property(i18n.tr("Job type"), job.getJobType()));
      data.add(new Property(i18n.tr("Kill time"), job.getKillTime()));
      data.add(new Property(i18n.tr("Last error"), job.getLastError()));
      data.add(new Property(i18n.tr("Total # of dials"), job.getMaxDials()));
      data.add(new Property(i18n.tr("Total # of tries"), job.getMaxTries()));
      data.add(new Property(i18n.tr("Notify"), job.getNotify()));
      data.add(new Property(i18n.tr("Notify address"), job.getNotifyAdress()));
      data.add(new Property(i18n.tr("Number"), job.getNumber()));
      data.add(new Property(i18n.tr("Owner"), job.getOwner()));
      data.add(new Property(i18n.tr("Page chopping"), job.getPageChopping()));
      data.add(new Property(i18n.tr("Permissions"), job.getPermissions()));
      data.add(new Property(i18n.tr("Total # of pages"), job.getPageCount()));
      data.add(new Property(i18n.tr("Page length"), job.getPageLength()));
      data.add(new Property(i18n.tr("# of transmitted pages"), job.getPagesTransmitted()));
      data.add(new Property(i18n.tr("Page width"), job.getPageWidth()));
      data.add(new Property(i18n.tr("Priority"), job.getPriority()));
      data.add(new Property(i18n.tr("Receiver"), job.getReceiver()));
      data.add(new Property(i18n.tr("Result"), job.getResult()));
      data.add(new Property(i18n.tr("Retry time"), job.getRetryTime()));
      data.add(new Property(i18n.tr("Sender"), job.getSender()));
      data.add(new Property(i18n.tr("Send time"), job.getSendTime()));
      data.add(new Property(i18n.tr("State"), job.getState()));
      data.add(new Property(i18n.tr("Vertical resolution"), job.getVerticalResolution()));
      DetailsDialog dialog = new DetailsDialog(JHylaFAX.getInstance(), data);
      dialog.setLocationRelativeTo(JHylaFAX.getInstance());
      dialog.setVisible(true);
    }
View Full Code Here

    {
      return data.size();
    }
   
      public Object getValueAt(int row, int column) {
        FaxJob job = data.get(row);
      switch (column) {
      case 0:
        return job.getID();
      case 1:
        return job.getPriority();
      case 2:
        return job.getResult();
      case 3:
        return job.getPermissions();
      case 4:
        return job.getOwner();
      case 5:
        return job.getSender();
      case 6:
        return job.getClientMachineName();
      case 7:
        return job.getVerticalResolution();
      case 8:
        return job.getNumber();
      case 9:
        return job.getSendTime();
      case 10:
        return job.getPageCount();
      case 11:
        return job.getDialsAttempted() + "/" + job.getMaxDials();
      case 12:
        return job.getLastError();
      case 13:
        return job.getState();
      case 14:
        return job.getCommunicationIdentifier();
      case 15:
        return job.getTaglineFormat(); // FIME display tag
      default:
        return null;
      }
    }
View Full Code Here

    public RemoveJobAction() {
      putValue(ICON_FILENAME, "editdelete.png");
    }

    public void actionPerformed(ActionEvent event) {
      FaxJob job = getSelectedJob();
      if (Dialogs.showConfirmDialog(JHylaFAX.getInstance(),
          i18n.tr("Do you really want to delete the job with id {0}?", job.getID()),
          i18n.tr("Remove Job"),
          JOptionPane.YES_NO_OPTION,
          Settings.CONFIRM_DELETE) == JOptionPane.YES_OPTION) {
        JobHelper.removeJob(job.getID());
      }
    }
View Full Code Here

      putValue(ICON_FILENAME, "player_play.png");
    }

    public void actionPerformed(ActionEvent event)
    {
      FaxJob job = getSelectedJob();
      JobHelper.resumeJob(job.getID());
    }
View Full Code Here

      putValue(ICON_FILENAME, "redo.png");
    }

    public void actionPerformed(ActionEvent e)
    {
      FaxJob job = getSelectedJob();
      JobHelper.retryJob(job.getID());
    }
View Full Code Here

      putValue(ICON_FILENAME, "player_pause.png");
    }

    public void actionPerformed(ActionEvent event)
    {
      FaxJob job = getSelectedJob();
      JobHelper.suspendJob(job.getID());
    }
View Full Code Here

      putValue(ICON_FILENAME, "viewmag.png");
    }

    public void actionPerformed(ActionEvent event)
    {
      FaxJob job = getSelectedJob();
      if (job == null) {
        return;
      }
     
      // TODO should find a better way to determine viewer
      String viewerPath = JHylaFAXHelper.getViewerPath(getQueueName());
      if (viewerPath != null) {
        FileStat[] files = JobHelper.retrieveJobFilenames(job.getID());
        if (files != null) {
          if (files.length == 0) {
            Dialogs.showInfo(JHylaFAX.getInstance(),
                i18n.tr("The job does not contain documents"),
                i18n.tr("JHylaFAX Information"));
View Full Code Here

    super(owner);
   
    addNumberTextField();
    addDateControls();
   
    FaxJob job = new FaxJob();
    HylaFAXClientHelper.initializeFromSettings(job);
    setJob(job);
   
    updateLabels();
    pack();
View Full Code Here

TOP

Related Classes of net.sf.jhylafax.fax.FaxJob

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.