本文整理汇总了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);
}
}
}
}
示例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);
}
示例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);
}
}
}
}
示例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);
}
示例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);
}
}
}
}
示例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 );
}
}
示例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 );
}
}
}
}
示例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 );
}
示例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);
}
示例10: removeFilenameChangedListener
import org.pentaho.di.core.listeners.FilenameChangedListener; //导入依赖的package包/类
public void removeFilenameChangedListener(FilenameChangedListener listener) {
filenameChangedListeners.remove(listener);
}
示例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);
}
示例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);
}
示例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 );
}