本文整理汇总了Java中org.pentaho.di.core.listeners.FilenameChangedListener类的典型用法代码示例。如果您正苦于以下问题:Java FilenameChangedListener类的具体用法?Java FilenameChangedListener怎么用?Java FilenameChangedListener使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FilenameChangedListener类属于org.pentaho.di.core.listeners包,在下文中一共展示了FilenameChangedListener类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: fireFilenameChangedListeners
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
private void fireFilenameChangedListeners(String oldFilename, String newFilename) {
if (nameChanged(oldFilename, newFilename)) {
if (filenameChangedListeners!=null) {
for (FilenameChangedListener listener : filenameChangedListeners) {
listener.filenameChanged(this, oldFilename, newFilename);
}
}
}
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:10,代码来源:JobMeta.java
示例2: addFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Adds the filename changed listener.
*
* @param listener the listener
*/
public void addFilenameChangedListener(FilenameChangedListener listener) {
if (filenameChangedListeners==null) {
filenameChangedListeners = new ArrayList<FilenameChangedListener>();
}
filenameChangedListeners.add(listener);
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:12,代码来源:JobMeta.java
示例3: fireFilenameChangedListeners
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Fire filename changed listeners.
*
* @param oldFilename the old filename
* @param newFilename the new filename
*/
private void fireFilenameChangedListeners(String oldFilename, String newFilename) {
if (nameChanged(oldFilename, newFilename)) {
if (filenameChangedListeners!=null) {
for (FilenameChangedListener listener : filenameChangedListeners) {
listener.filenameChanged(this, oldFilename, newFilename);
}
}
}
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:16,代码来源:JobMeta.java
示例4: addFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Adds a listener for "filename changed" events.
*
* @param listener the listener to add
*/
public void addFilenameChangedListener(FilenameChangedListener listener) {
if (filenameChangedListeners==null) {
filenameChangedListeners = new ArrayList<FilenameChangedListener>();
}
filenameChangedListeners.add(listener);
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:12,代码来源:TransMeta.java
示例5: fireFilenameChangedListeners
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Fires the filename changed listeners if the filename has changed.
*
* @param oldFilename the old filename
* @param newFilename the new filename
*/
private void fireFilenameChangedListeners(String oldFilename, String newFilename) {
if (nameChanged(oldFilename, newFilename)) {
if (filenameChangedListeners!=null) {
for (FilenameChangedListener listener : filenameChangedListeners) {
listener.filenameChanged(this, oldFilename, newFilename);
}
}
}
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:16,代码来源:TransMeta.java
示例6: addFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Adds the filename changed listener.
*
* @param listener the listener
*/
public void addFilenameChangedListener( FilenameChangedListener listener ) {
if ( filenameChangedListeners == null ) {
filenameChangedListeners = new ArrayList<FilenameChangedListener>();
}
if ( listener != null ) {
filenameChangedListeners.add( listener );
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:14,代码来源:AbstractMeta.java
示例7: fireFilenameChangedListeners
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Fire filename changed listeners.
*
* @param oldFilename the old filename
* @param newFilename the new filename
*/
protected void fireFilenameChangedListeners( String oldFilename, String newFilename ) {
if ( nameChanged( oldFilename, newFilename ) ) {
if ( filenameChangedListeners != null ) {
for ( FilenameChangedListener listener : filenameChangedListeners ) {
listener.filenameChanged( this, oldFilename, newFilename );
}
}
}
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:AbstractMeta.java
示例8: testAddFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
@Test
public void testAddFilenameChangedListener() throws Exception {
meta.fireFilenameChangedListeners( "a", "a" );
meta.fireFilenameChangedListeners( "a", "b" );
meta.addFilenameChangedListener( null );
meta.fireFilenameChangedListeners( "a", "b" );
FilenameChangedListener listener = mock( FilenameChangedListener.class );
meta.addFilenameChangedListener( listener );
meta.fireFilenameChangedListeners( "b", "a" );
verify( listener, times( 1 ) ).filenameChanged( meta, "b", "a" );
meta.removeFilenameChangedListener( null );
meta.removeFilenameChangedListener( listener );
meta.fireFilenameChangedListeners( "b", "a" );
verifyNoMoreInteractions( listener );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:16,代码来源:AbstractMetaTest.java
示例9: addFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
public void addFilenameChangedListener(FilenameChangedListener listener) {
if (filenameChangedListeners==null) {
filenameChangedListeners = new ArrayList<FilenameChangedListener>();
}
filenameChangedListeners.add(listener);
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:7,代码来源:JobMeta.java
示例10: removeFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
public void removeFilenameChangedListener(FilenameChangedListener listener) {
filenameChangedListeners.remove(listener);
}
开发者ID:icholy,项目名称:geokettle-2.0,代码行数:4,代码来源:JobMeta.java
示例11: removeFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Removes the filename changed listener.
*
* @param listener the listener
*/
public void removeFilenameChangedListener(FilenameChangedListener listener) {
filenameChangedListeners.remove(listener);
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:9,代码来源:JobMeta.java
示例12: removeFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Removes the specified FilenameChangedListener.
*
* @param listener the listener
*/
public void removeFilenameChangedListener(FilenameChangedListener listener) {
filenameChangedListeners.remove(listener);
}
开发者ID:bsspirit,项目名称:kettle-4.4.0-stable,代码行数:9,代码来源:TransMeta.java
示例13: removeFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
/**
* Removes the filename changed listener.
*
* @param listener the listener
*/
public void removeFilenameChangedListener( FilenameChangedListener listener ) {
filenameChangedListeners.remove( listener );
}
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:9,代码来源:AbstractMeta.java
注:本文中的org.pentaho.di.core.listeners.FilenameChangedListener类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论