本文整理匯總了Java中org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.addPropertyChangeListener方法的典型用法代碼示例。如果您正苦於以下問題:Java RSyntaxTextArea.addPropertyChangeListener方法的具體用法?Java RSyntaxTextArea.addPropertyChangeListener怎麽用?Java RSyntaxTextArea.addPropertyChangeListener使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.fife.ui.rsyntaxtextarea.RSyntaxTextArea
的用法示例。
在下文中一共展示了RSyntaxTextArea.addPropertyChangeListener方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: listenTo
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
public void listenTo(RSyntaxTextArea textArea) {
if (this.textArea!=null) {
uninstall();
}
// Nothing new to listen to
if (textArea==null) {
return;
}
// Listen for future language changes in the text editor
this.textArea = textArea;
textArea.addPropertyChangeListener(
RSyntaxTextArea.SYNTAX_STYLE_PROPERTY, listener);
// Check whether we're currently editing Java
checkForJavaParsing();
}
示例2: listenTo
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
public void listenTo(RSyntaxTextArea textArea) {
if (this.textArea!=null) {
uninstall();
}
// Nothing new to listen to
if (textArea==null) {
return;
}
// Listen for future language changes in the text editor
this.textArea = textArea;
textArea.addPropertyChangeListener(
RSyntaxTextArea.SYNTAX_STYLE_PROPERTY, listener);
// Check whether we're currently editing Java
checkForZScriptParsing();
}
示例3: DefaultFoldManager
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
/**
* Constructor.
*
* @param textArea The text area whose folds we are managing.
*/
public DefaultFoldManager(RSyntaxTextArea textArea) {
this.textArea = textArea;
support = new PropertyChangeSupport(this);
l = new Listener();
textArea.getDocument().addDocumentListener(l);
textArea.addPropertyChangeListener(RSyntaxTextArea.SYNTAX_STYLE_PROPERTY, l);
textArea.addPropertyChangeListener("document", l);
folds = new ArrayList<Fold>();
updateFoldParser();
}
示例4: FoldManager
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
/**
* Constructor.
*
* @param textArea The text area whose folds we are managing.
*/
public FoldManager(RSyntaxTextArea textArea) {
this.textArea = textArea;
support = new PropertyChangeSupport(this);
l = new Listener();
textArea.getDocument().addDocumentListener(l);
textArea.addPropertyChangeListener(RSyntaxTextArea.SYNTAX_STYLE_PROPERTY, l);
textArea.addPropertyChangeListener("document", l);
folds = new ArrayList<Fold>();
updateFoldParser();
}
示例5: register
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; //導入方法依賴的package包/類
/**
* Registers an RSyntaxTextArea to receive language support. The text area
* will get support for the currently highlighted language, and if it
* changes what language it is highlighting, the support will change as
* appropriate.
*
* @param textArea The text area to register.
*/
public void register(RSyntaxTextArea textArea) {
installSupport(textArea);
textArea.addPropertyChangeListener(
RSyntaxTextArea.SYNTAX_STYLE_PROPERTY, this);
}