本文整理了Java中org.netbeans.editor.Utilities.getDocumentView()
方法的一些代码示例,展示了Utilities.getDocumentView()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.getDocumentView()
方法的具体详情如下:
包路径:org.netbeans.editor.Utilities
类名称:Utilities
方法名:getDocumentView
[英]Get the view that covers the whole area of the document and holds a child view for each line in the document (or for a bunch of lines in case there is a code folding present).
[中]获取覆盖文档整个区域的视图,并为文档中的每一行(或一堆行,以防存在代码折叠)保存一个子视图。
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
View rootView = Utilities.getDocumentView(component);
if (rootView == null) return ret;
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
public void actionPerformed(ActionEvent evt, JTextComponent target) {
DrawEngineDocView rootView = (DrawEngineDocView)Utilities.getDocumentView(target);
AbstractDocument adoc = (AbstractDocument)target.getDocument();
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-editor-fold-nbui
hierarchy.lock();
try {
View rootView = Utilities.getDocumentView(component);
if (rootView != null) {
Object [] arr = getFoldList(hierarchy.getRootFold(), startPos, endPos);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
protected void collectPaintInfos(Fold fold, Map map, int level, int startIndex, int endIndex){
View rootView = Utilities.getDocumentView(component);
if (rootView == null) return;
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
View rootView = Utilities.getDocumentView(component);
if (rootView == null) return;
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-editor-fold-nbui
BaseTextUI textUI = (BaseTextUI)component.getUI();
View rootView = Utilities.getDocumentView(component);
if (rootView == null) return;
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
Element rootElem = textUI.getRootView(component).getElement();
View rootView = Utilities.getDocumentView(component);
if (rootView == null) return;
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
javax.swing.text.Element rootElem = textUI.getRootView(component).getElement();
View rootView = Utilities.getDocumentView(component);
if (rootView == null) return;
try{
内容来源于网络,如有侵权,请联系作者删除!