本文整理汇总了Java中org.pentaho.di.ui.spoon.dialog.NotePadDialog.open方法的典型用法代码示例。如果您正苦于以下问题:Java NotePadDialog.open方法的具体用法?Java NotePadDialog.open怎么用?Java NotePadDialog.open使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.ui.spoon.dialog.NotePadDialog
的用法示例。
在下文中一共展示了NotePadDialog.open方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: newNote
import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入方法依赖的package包/类
public void newNote() {
selectionRegion = null;
String title = BaseMessages.getString(PKG, "TransGraph.Dialog.NoteEditor.Title"); //$NON-NLS-1$
NotePadDialog dd = new NotePadDialog(transMeta, shell, title); //$NON-NLS-1$
NotePadMeta n = dd.open();
if (n != null)
{
NotePadMeta npi = new NotePadMeta(n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE,
ConstUI.NOTE_MIN_SIZE,n.getFontName(),n.getFontSize(), n.isFontBold(), n.isFontItalic(),
n.getFontColorRed(),n.getFontColorGreen(),n.getFontColorBlue(),
n.getBackGroundColorRed(), n.getBackGroundColorGreen(),n.getBackGroundColorBlue(),
n.getBorderColorRed(), n.getBorderColorGreen(),n.getBorderColorBlue(),
n.isDrawShadow());
transMeta.addNote(npi);
spoon.addUndoNew(transMeta, new NotePadMeta[] { npi }, new int[] { transMeta.indexOfNote(npi) });
redraw();
}
}
示例2: newNote
import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入方法依赖的package包/类
public void newNote() {
String title = BaseMessages.getString( PKG, "JobGraph.Dialog.EditNote.Title" );
NotePadDialog dd = new NotePadDialog( jobMeta, shell, title );
NotePadMeta n = dd.open();
if ( n != null ) {
NotePadMeta npi =
new NotePadMeta( n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE, ConstUI.NOTE_MIN_SIZE, n
.getFontName(), n.getFontSize(), n.isFontBold(), n.isFontItalic(), n.getFontColorRed(), n
.getFontColorGreen(), n.getFontColorBlue(), n.getBackGroundColorRed(), n.getBackGroundColorGreen(), n
.getBackGroundColorBlue(), n.getBorderColorRed(), n.getBorderColorGreen(), n.getBorderColorBlue(), n
.isDrawShadow() );
jobMeta.addNote( npi );
spoon.addUndoNew( jobMeta, new NotePadMeta[] { npi }, new int[] { jobMeta.indexOfNote( npi ) } );
redraw();
}
}
示例3: newNote
import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入方法依赖的package包/类
public void newNote() {
selectionRegion = null;
String title = BaseMessages.getString( PKG, "TransGraph.Dialog.NoteEditor.Title" );
NotePadDialog dd = new NotePadDialog( transMeta, shell, title );
NotePadMeta n = dd.open();
if ( n != null ) {
NotePadMeta npi =
new NotePadMeta( n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE, ConstUI.NOTE_MIN_SIZE, n
.getFontName(), n.getFontSize(), n.isFontBold(), n.isFontItalic(), n.getFontColorRed(), n
.getFontColorGreen(), n.getFontColorBlue(), n.getBackGroundColorRed(), n.getBackGroundColorGreen(), n
.getBackGroundColorBlue(), n.getBorderColorRed(), n.getBorderColorGreen(), n.getBorderColorBlue(), n
.isDrawShadow() );
transMeta.addNote( npi );
spoon.addUndoNew( transMeta, new NotePadMeta[] { npi }, new int[] { transMeta.indexOfNote( npi ) } );
redraw();
}
}
示例4: editNote
import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入方法依赖的package包/类
protected void editNote(NotePadMeta ni) {
NotePadMeta before = (NotePadMeta) ni.clone();
String title = BaseMessages.getString(PKG, "JobGraph.Dialog.EditNote.Title");
NotePadDialog dd = new NotePadDialog(jobMeta, shell, title, ni);
NotePadMeta n = dd.open();
if (n != null)
{
ni.setChanged();
ni.setNote(n.getNote());
ni.setFontName(n.getFontName());
ni.setFontSize(n.getFontSize());
ni.setFontBold(n.isFontBold());
ni.setFontItalic(n.isFontItalic());
// font color
ni.setFontColorRed(n.getFontColorRed());
ni.setFontColorGreen(n.getFontColorGreen());
ni.setFontColorBlue(n.getFontColorBlue());
// background color
ni.setBackGroundColorRed(n.getBackGroundColorRed());
ni.setBackGroundColorGreen(n.getBackGroundColorGreen());
ni.setBackGroundColorBlue(n.getBackGroundColorBlue());
// border color
ni.setBorderColorRed(n.getBorderColorRed());
ni.setBorderColorGreen(n.getBorderColorGreen());
ni.setBorderColorBlue(n.getBorderColorBlue());
ni.setDrawShadow(n.isDrawShadow());
spoon.addUndoChange(jobMeta, new NotePadMeta[] { before }, new NotePadMeta[] { ni }, new int[] { jobMeta
.indexOfNote(ni) });
ni.width = ConstUI.NOTE_MIN_SIZE;
ni.height = ConstUI.NOTE_MIN_SIZE;
spoon.refreshGraph();
}
}
示例5: editNote
import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入方法依赖的package包/类
private void editNote(NotePadMeta ni) {
NotePadMeta before = (NotePadMeta) ni.clone();
String title = BaseMessages.getString(PKG, "TransGraph.Dialog.EditNote.Title"); //$NON-NLS-1$
NotePadDialog dd = new NotePadDialog(transMeta, shell, title, ni);
NotePadMeta n = dd.open();
if (n != null)
{
ni.setChanged();
ni.setNote(n.getNote());
ni.setFontName(n.getFontName());
ni.setFontSize(n.getFontSize());
ni.setFontBold(n.isFontBold());
ni.setFontItalic(n.isFontItalic());
// font color
ni.setFontColorRed(n.getFontColorRed());
ni.setFontColorGreen(n.getFontColorGreen());
ni.setFontColorBlue(n.getFontColorBlue());
// background color
ni.setBackGroundColorRed(n.getBackGroundColorRed());
ni.setBackGroundColorGreen(n.getBackGroundColorGreen());
ni.setBackGroundColorBlue(n.getBackGroundColorBlue());
// border color
ni.setBorderColorRed(n.getBorderColorRed());
ni.setBorderColorGreen(n.getBorderColorGreen());
ni.setBorderColorBlue(n.getBorderColorBlue());
ni.setDrawShadow(n.isDrawShadow());
ni.width = ConstUI.NOTE_MIN_SIZE;
ni.height = ConstUI.NOTE_MIN_SIZE;
NotePadMeta after = (NotePadMeta) ni.clone();
spoon.addUndoChange(transMeta, new NotePadMeta[] { before }, new NotePadMeta[] { after }, new int[] { transMeta
.indexOfNote(ni) });
spoon.refreshGraph();
}
}
示例6: editNote
import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入方法依赖的package包/类
protected void editNote( NotePadMeta ni ) {
NotePadMeta before = (NotePadMeta) ni.clone();
String title = BaseMessages.getString( PKG, "JobGraph.Dialog.EditNote.Title" );
NotePadDialog dd = new NotePadDialog( jobMeta, shell, title, ni );
NotePadMeta n = dd.open();
if ( n != null ) {
ni.setChanged();
ni.setNote( n.getNote() );
ni.setFontName( n.getFontName() );
ni.setFontSize( n.getFontSize() );
ni.setFontBold( n.isFontBold() );
ni.setFontItalic( n.isFontItalic() );
// font color
ni.setFontColorRed( n.getFontColorRed() );
ni.setFontColorGreen( n.getFontColorGreen() );
ni.setFontColorBlue( n.getFontColorBlue() );
// background color
ni.setBackGroundColorRed( n.getBackGroundColorRed() );
ni.setBackGroundColorGreen( n.getBackGroundColorGreen() );
ni.setBackGroundColorBlue( n.getBackGroundColorBlue() );
// border color
ni.setBorderColorRed( n.getBorderColorRed() );
ni.setBorderColorGreen( n.getBorderColorGreen() );
ni.setBorderColorBlue( n.getBorderColorBlue() );
ni.setDrawShadow( n.isDrawShadow() );
spoon.addUndoChange( jobMeta, new NotePadMeta[] { before }, new NotePadMeta[] { ni }, new int[] { jobMeta
.indexOfNote( ni ) } );
ni.width = ConstUI.NOTE_MIN_SIZE;
ni.height = ConstUI.NOTE_MIN_SIZE;
spoon.refreshGraph();
}
}
示例7: editNote
import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入方法依赖的package包/类
private void editNote( NotePadMeta ni ) {
NotePadMeta before = (NotePadMeta) ni.clone();
String title = BaseMessages.getString( PKG, "TransGraph.Dialog.EditNote.Title" );
NotePadDialog dd = new NotePadDialog( transMeta, shell, title, ni );
NotePadMeta n = dd.open();
if ( n != null ) {
ni.setChanged();
ni.setNote( n.getNote() );
ni.setFontName( n.getFontName() );
ni.setFontSize( n.getFontSize() );
ni.setFontBold( n.isFontBold() );
ni.setFontItalic( n.isFontItalic() );
// font color
ni.setFontColorRed( n.getFontColorRed() );
ni.setFontColorGreen( n.getFontColorGreen() );
ni.setFontColorBlue( n.getFontColorBlue() );
// background color
ni.setBackGroundColorRed( n.getBackGroundColorRed() );
ni.setBackGroundColorGreen( n.getBackGroundColorGreen() );
ni.setBackGroundColorBlue( n.getBackGroundColorBlue() );
// border color
ni.setBorderColorRed( n.getBorderColorRed() );
ni.setBorderColorGreen( n.getBorderColorGreen() );
ni.setBorderColorBlue( n.getBorderColorBlue() );
ni.setDrawShadow( n.isDrawShadow() );
ni.width = ConstUI.NOTE_MIN_SIZE;
ni.height = ConstUI.NOTE_MIN_SIZE;
NotePadMeta after = (NotePadMeta) ni.clone();
spoon.addUndoChange( transMeta, new NotePadMeta[] { before }, new NotePadMeta[] { after }, new int[] { transMeta
.indexOfNote( ni ) } );
spoon.refreshGraph();
}
}