本文整理汇总了Java中weka.gui.scripting.event.ScriptExecutionListener类的典型用法代码示例。如果您正苦于以下问题:Java ScriptExecutionListener类的具体用法?Java ScriptExecutionListener怎么用?Java ScriptExecutionListener使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ScriptExecutionListener类属于weka.gui.scripting.event包,在下文中一共展示了ScriptExecutionListener类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import weka.gui.scripting.event.ScriptExecutionListener; //导入依赖的package包/类
/**
* Initializes the script.
*/
protected void initialize() {
m_Filename = null;
m_NewLine = System.getProperty("line.separator");
m_Modified = false;
m_ScriptThread = null;
m_FinishedListeners = new HashSet<ScriptExecutionListener>();
}
示例2: notifyScriptFinishedListeners
import weka.gui.scripting.event.ScriptExecutionListener; //导入依赖的package包/类
/**
* Notifies all listeners.
*
* @param e the event to send to all listeners
*/
protected void notifyScriptFinishedListeners(ScriptExecutionEvent e) {
Iterator<ScriptExecutionListener> iter;
iter = m_FinishedListeners.iterator();
while (iter.hasNext()) {
iter.next().scriptFinished(e);
}
}
示例3: initialize
import weka.gui.scripting.event.ScriptExecutionListener; //导入依赖的package包/类
/**
* Initializes the script.
*/
protected void initialize() {
m_Filename = null;
m_NewLine = System.getProperty("line.separator");
m_Modified = false;
m_ScriptThread = null;
m_FinishedListeners = new HashSet<ScriptExecutionListener>();
}
示例4: notifyScriptFinishedListeners
import weka.gui.scripting.event.ScriptExecutionListener; //导入依赖的package包/类
/**
* Notifies all listeners.
*
* @param e the event to send to all listeners
*/
protected void notifyScriptFinishedListeners(ScriptExecutionEvent e) {
Iterator<ScriptExecutionListener> iter;
iter = m_FinishedListeners.iterator();
while (iter.hasNext())
iter.next().scriptFinished(e);
}
示例5: addScriptFinishedListener
import weka.gui.scripting.event.ScriptExecutionListener; //导入依赖的package包/类
/**
* Adds the given listener to its internal list.
*
* @param l the listener to add
*/
public void addScriptFinishedListener(ScriptExecutionListener l) {
m_FinishedListeners.add(l);
}
示例6: removeScriptFinishedListener
import weka.gui.scripting.event.ScriptExecutionListener; //导入依赖的package包/类
/**
* Removes the given listener from its internal list.
*
* @param l the listener to remove
*/
public void removeScriptFinishedListener(ScriptExecutionListener l) {
m_FinishedListeners.remove(l);
}
示例7: addScriptFinishedListener
import weka.gui.scripting.event.ScriptExecutionListener; //导入依赖的package包/类
/**
* Adds the given listener to its internal list.
*
* @param l the listener to add
*/
public void addScriptFinishedListener(ScriptExecutionListener l) {
m_FinishedListeners.add(l);
}
示例8: removeScriptFinishedListener
import weka.gui.scripting.event.ScriptExecutionListener; //导入依赖的package包/类
/**
* Removes the given listener from its internal list.
*
* @param l the listener to remove
*/
public void removeScriptFinishedListener(ScriptExecutionListener l) {
m_FinishedListeners.remove(l);
}