⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jobqueuepanel.java

📁 发送传真的program,发送传真的program,发送传真的program.
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
			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);		}				public void updateLabels() {			putValue(Action.NAME, i18n.tr("Details"));		}	}	private static class JobTableModel extends AbstractTableModel {		private static final Class[] columnClasses= {			Integer.class,			Integer.class,			String.class, 			String.class,			String.class,			String.class,			String.class,			Integer.class,			String.class,			Date.class,			Integer.class, 			String.class,			String.class,			FaxJob.State.class,			String.class,			String.class,		};				private List<FaxJob> data = new ArrayList<FaxJob>();				public JobTableModel() 		{		}				public Class<?> getColumnClass(int column) {	        return columnClasses[column];	    }			public int getColumnCount()		{			return columnClasses.length;		}		public FaxJob getJob(int row) {			return data.get(row);		}		public int getRowCount()		{			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;			}		}				public void setData(List<FaxJob> data)		{			this.data = data;			fireTableDataChanged();		}	}	private class RemoveJobAction extends AbstractXNapAction {				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());			}		}				public void updateLabels() {			putValue(Action.NAME, i18n.tr("Remove"));		}	}	private class ResumeJobAction extends AbstractXNapAction {				public ResumeJobAction() {			putValue(ICON_FILENAME, "player_play.png");		}		public void actionPerformed(ActionEvent event)		{			FaxJob job = getSelectedJob();			JobHelper.resumeJob(job.getID());		}		public void updateLabels() {			putValue(Action.NAME, i18n.tr("Resume"));		}	}	private class RetryJobAction extends AbstractXNapAction {				public RetryJobAction() {			putValue(ICON_FILENAME, "redo.png");		}		public void actionPerformed(ActionEvent e)		{			FaxJob job = getSelectedJob();			JobHelper.retryJob(job.getID());		}				public void updateLabels() {			putValue(Action.NAME, i18n.tr("Send Now"));		}	}	private class SuspendJobAction extends AbstractXNapAction {				public SuspendJobAction() {			putValue(ICON_FILENAME, "player_pause.png");		}		public void actionPerformed(ActionEvent event)		{			FaxJob job = getSelectedJob();			JobHelper.suspendJob(job.getID());		}				public void updateLabels() {			putValue(Action.NAME, i18n.tr("Suspend"));		}	}	private class ViewJobAction extends AbstractXNapAction {				public ViewJobAction() {			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"));					}					else {						File[] tempFiles = new File[files.length];						for (int i = 0; i < files.length; i++) {							tempFiles[i] = createTempFile(files[i].filename);							if (tempFiles[i] == null) {								return;							}							if (!JobHelper.save(tempFiles[i], files[i].filename, files[i].filesize)) {								// user abort or error								return;							}						}						JHylaFAXHelper.view(viewerPath, tempFiles);					}				}			}		}		public void updateLabels() {			putValue(Action.NAME, i18n.tr("View"));		}			}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -