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