org.netbeans.editor.Utilities.getDocumentView()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(57)

本文整理了Java中org.netbeans.editor.Utilities.getDocumentView()方法的一些代码示例,展示了Utilities.getDocumentView()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utilities.getDocumentView()方法的具体详情如下:
包路径:org.netbeans.editor.Utilities
类名称:Utilities
方法名:getDocumentView

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{

相关文章

微信公众号

最新文章

更多