当前位置: 首页>>代码示例>>Java>>正文


Java JobEntryCopy.isSelected方法代码示例

本文整理汇总了Java中org.pentaho.di.job.entry.JobEntryCopy.isSelected方法的典型用法代码示例。如果您正苦于以下问题:Java JobEntryCopy.isSelected方法的具体用法?Java JobEntryCopy.isSelected怎么用?Java JobEntryCopy.isSelected使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.pentaho.di.job.entry.JobEntryCopy的用法示例。


在下文中一共展示了JobEntryCopy.isSelected方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: nrSelected

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public int nrSelected() {
	int i, count;
	count = 0;
	for (i = 0; i < nrJobEntries(); i++) {
		JobEntryCopy je = getJobEntry(i);
		if (je.isSelected() && je.isDrawn())
			count++;
	}
	return count;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:11,代码来源:JobMeta.java

示例2: getSelected

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public JobEntryCopy getSelected(int nr) {
	int i, count;
	count = 0;
	for (i = 0; i < nrJobEntries(); i++) {
		JobEntryCopy je = getJobEntry(i);
		if (je.isSelected()) {
			if (nr == count)
				return je;
			count++;
		}
	}
	return null;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:14,代码来源:JobMeta.java

示例3: getSelectedDrawnJobEntryList

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
/**
 * Get an array of all the selected job entries
 * 
 * @return A list containing all the selected & drawn job entries.
 */
public List<GUIPositionInterface> getSelectedDrawnJobEntryList() {
	List<GUIPositionInterface> list = new ArrayList<GUIPositionInterface>();

	for (int i = 0; i < nrJobEntries(); i++) {
		JobEntryCopy jobEntryCopy = getJobEntry(i);
		if (jobEntryCopy.isDrawn() && jobEntryCopy.isSelected()) {
			list.add(jobEntryCopy);
		}

	}
	return list;
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:18,代码来源:JobMeta.java

示例4: checkJobEntries

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
/**
 * Check all job entries within the job. Each Job Entry has the opportunity
 * to check their own settings.
 * 
 * @param remarks
 *            List of CheckResult remarks inserted into by each JobEntry
 * @param only_selected
 *            true if you only want to check the selected jobs
 * @param monitor
 *            Progress monitor (not presently in use)
 */
public void checkJobEntries(List<CheckResultInterface> remarks, boolean only_selected, ProgressMonitorListener monitor) {
	remarks.clear(); // Empty remarks
	if (monitor != null)
		monitor.beginTask(Messages.getString("JobMeta.Monitor.VerifyingThisJobEntryTask.Title"), jobcopies.size() + 2); //$NON-NLS-1$
	boolean stop_checking = false;
	for (int i = 0; i < jobcopies.size() && !stop_checking; i++) {
		JobEntryCopy copy = jobcopies.get(i); // get the job entry copy
		if ((!only_selected) || (only_selected && copy.isSelected())) {
			JobEntryInterface entry = copy.getEntry();
			if (entry != null) {
				if (monitor != null)
					monitor.subTask(Messages.getString("JobMeta.Monitor.VerifyingJobEntry.Title", entry.getName())); //$NON-NLS-1$ //$NON-NLS-2$
				entry.check(remarks, this);
				if (monitor != null) {
					monitor.worked(1); // progress bar...
					if (monitor.isCanceled()) {
						stop_checking = true;
					}
				}
			}
		}
		if (monitor != null) {
			monitor.worked(1);
		}
	}
	if (monitor != null) {
		monitor.done();
	}
}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:41,代码来源:JobMeta.java

示例5: getSelectedEntries

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public List<JobEntryCopy> getSelectedEntries() {
	List<JobEntryCopy> selection = new ArrayList<JobEntryCopy>();
	for (JobEntryCopy je : jobcopies) {
		if (je.isSelected()) {
			selection.add(je);
		}
	}
	return selection;
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:10,代码来源:JobMeta.java

示例6: checkJobEntries

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
/**
 * Check all job entries within the job. Each Job Entry has the opportunity
 * to check their own settings.
 * 
 * @param remarks
 *            List of CheckResult remarks inserted into by each JobEntry
 * @param only_selected
 *            true if you only want to check the selected jobs
 * @param monitor
 *            Progress monitor (not presently in use)
 */
public void checkJobEntries(List<CheckResultInterface> remarks, boolean only_selected, ProgressMonitorListener monitor) {
	remarks.clear(); // Empty remarks
	if (monitor != null)
		monitor.beginTask(BaseMessages.getString(PKG, "JobMeta.Monitor.VerifyingThisJobEntryTask.Title"), jobcopies.size() + 2); //$NON-NLS-1$
	boolean stop_checking = false;
	for (int i = 0; i < jobcopies.size() && !stop_checking; i++) {
		JobEntryCopy copy = jobcopies.get(i); // get the job entry copy
		if ((!only_selected) || (only_selected && copy.isSelected())) {
			JobEntryInterface entry = copy.getEntry();
			if (entry != null) {
				if (monitor != null)
					monitor.subTask(BaseMessages.getString(PKG, "JobMeta.Monitor.VerifyingJobEntry.Title", entry.getName())); //$NON-NLS-1$ //$NON-NLS-2$
				entry.check(remarks, this);
				if (monitor != null) {
					monitor.worked(1); // progress bar...
					if (monitor.isCanceled()) {
						stop_checking = true;
					}
				}
			}
		}
		if (monitor != null) {
			monitor.worked(1);
		}
	}
	if (monitor != null) {
		monitor.done();
	}
}
 
开发者ID:yintaoxue,项目名称:read-open-source-code,代码行数:41,代码来源:JobMeta.java

示例7: drawJobEntryCopy

import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
protected void drawJobEntryCopy(GC gc, JobEntryCopy je) {
  if (!je.isDrawn())
    return;

  Point pt = je.getLocation();

  int x, y;
  if (pt != null) {
    x = pt.x;
    y = pt.y;
  } else {
    x = 50;
    y = 50;
  }
  String name = je.getName();
  if (je.isSelected())
    gc.setLineWidth(3);
  else
    gc.setLineWidth(1);

  Image im = getIcon(je);
  if (im != null) // Draw the icon!
  {
    Rectangle bounds = new Rectangle(im.getBounds().x, im.getBounds().y, im.getBounds().width, im.getBounds().height);
    gc.drawImage(im, 0, 0, bounds.width, bounds.height, offset.x + x, offset.y + y, iconsize, iconsize);
  }
  gc.setBackground(GUIResource.getInstance().getColorWhite());
  gc.drawRectangle(offset.x + x - 1, offset.y + y - 1, iconsize + 1, iconsize + 1);
  //gc.setXORMode(true);
  Point textsize = new Point(gc.textExtent("" + name).x, gc.textExtent("" + name).y);

  gc.setBackground(GUIResource.getInstance().getColorBackground());
  gc.setLineWidth(1);

  int xpos = offset.x + x + (iconsize / 2) - (textsize.x / 2);
  int ypos = offset.y + y + iconsize + 5;

  gc.setForeground(GUIResource.getInstance().getColorBlack());
  gc.drawText(name, xpos, ypos, true);

}
 
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:42,代码来源:JobGraph.java


注:本文中的org.pentaho.di.job.entry.JobEntryCopy.isSelected方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。