本文整理汇总了Java中org.pentaho.di.job.entry.JobEntryCopy.setSelected方法的典型用法代码示例。如果您正苦于以下问题:Java JobEntryCopy.setSelected方法的具体用法?Java JobEntryCopy.setSelected怎么用?Java JobEntryCopy.setSelected使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.job.entry.JobEntryCopy
的用法示例。
在下文中一共展示了JobEntryCopy.setSelected方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: selectInRect
import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void selectInRect(JobMeta jobMeta, org.pentaho.di.core.gui.Rectangle rect) {
int i;
for (i = 0; i < jobMeta.nrJobEntries(); i++) {
JobEntryCopy je = jobMeta.getJobEntry(i);
Point p = je.getLocation();
if (((p.x >= rect.x && p.x <= rect.x + rect.width) || (p.x >= rect.x + rect.width && p.x <= rect.x))
&& ((p.y >= rect.y && p.y <= rect.y + rect.height) || (p.y >= rect.y + rect.height && p.y <= rect.y)))
je.setSelected(true);
}
for (i = 0; i < jobMeta.nrNotes(); i++) {
NotePadMeta ni = jobMeta.getNote(i);
Point a = ni.getLocation();
Point b = new Point(a.x + ni.width, a.y + ni.height);
if (rect.contains(a.x, a.y) && rect.contains(b.x, b.y))
ni.setSelected(true);
}
}
示例2: selectAll
import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void selectAll() {
int i;
for (i = 0; i < nrJobEntries(); i++) {
JobEntryCopy ce = getJobEntry(i);
ce.setSelected(true);
}
setChanged();
notifyObservers("refreshGraph");
}
示例3: unselectAll
import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void unselectAll() {
int i;
for (i = 0; i < nrJobEntries(); i++) {
JobEntryCopy ce = getJobEntry(i);
ce.setSelected(false);
}
}
示例4: selectInRect
import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void selectInRect(JobMeta jobMeta, Rectangle rect) {
int i;
for (i = 0; i < jobMeta.nrJobEntries(); i++) {
JobEntryCopy je = jobMeta.getJobEntry(i);
Point p = je.getLocation();
if (((p.x >= rect.x && p.x <= rect.x + rect.width) || (p.x >= rect.x + rect.width && p.x <= rect.x))
&& ((p.y >= rect.y && p.y <= rect.y + rect.height) || (p.y >= rect.y + rect.height && p.y <= rect.y)))
je.setSelected(true);
}
}
示例5: selectAll
import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void selectAll() {
int i;
for (i = 0; i < nrJobEntries(); i++) {
JobEntryCopy ce = getJobEntry(i);
ce.setSelected(true);
}
for (i = 0; i < nrNotes(); i++)
{
NotePadMeta ni = getNote(i);
ni.setSelected(true);
}
setChanged();
notifyObservers("refreshGraph");
}
示例6: unselectAll
import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void unselectAll() {
int i;
for (i = 0; i < nrJobEntries(); i++) {
JobEntryCopy ce = getJobEntry(i);
ce.setSelected(false);
}
for (i = 0; i < nrNotes(); i++)
{
NotePadMeta ni = getNote(i);
ni.setSelected(false);
}
}