org.openide.text.Line.firePropertyChange()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(96)

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

Line.firePropertyChange介绍

暂无

代码示例

代码示例来源:origin: org.netbeans.api/org-openide-text

/** Find the line given as parameter in list of all lines attached to this set
 * and if the line exist in the list, notify it about being moved. */
void linesMoved(int startLineNumber, int endLineNumber) {
  List movedLines = getLinesFromRange(startLineNumber, endLineNumber);
  for (Iterator it = movedLines.iterator(); it.hasNext();) {
    Line line = (Line) it.next();
    line.firePropertyChange(Line.PROP_LINE_NUMBER, null, null);
    // notify all parts attached to this line
    // that they were moved
    if (line instanceof DocumentLine) {
      ((DocumentLine) line).notifyMove();
    }
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Find the line given as parameter in list of all lines attached to this set
 * and if the line exist in the list, notify it about being edited. */
void linesChanged(int startLineNumber, int endLineNumber, DocumentEvent p0) {
  List changedLines = getLinesFromRange(startLineNumber, endLineNumber);
  
  for(Iterator it = changedLines.iterator(); it.hasNext(); ) {
    Line line = (Line)it.next();
    
    line.firePropertyChange(Annotatable.PROP_TEXT, null, null);
    // revalidate all parts attached to this line
    // that they are still part of the line
    if(line instanceof DocumentLine) {
      ((DocumentLine)line).notifyChange(p0, this, listener.doc);
    }
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Find the line given as parameter in list of all lines attached to this set
 * and if the line exist in the list, notify it about being edited. */
void linesChanged(int startLineNumber, int endLineNumber, DocumentEvent p0) {
  List changedLines = getLinesFromRange(startLineNumber, endLineNumber);
  
  for(Iterator it = changedLines.iterator(); it.hasNext(); ) {
    Line line = (Line)it.next();
    
    line.firePropertyChange(Annotatable.PROP_TEXT, null, null);
    // revalidate all parts attached to this line
    // that they are still part of the line
    if(line instanceof DocumentLine) {
      ((DocumentLine)line).notifyChange(p0, this, listener.doc);
    }
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/** Find the line given as parameter in list of all lines attached to this set
 * and if the line exist in the list, notify it about being moved. */
void linesMoved(int startLineNumber, int endLineNumber) {
  List movedLines = getLinesFromRange(startLineNumber, endLineNumber);
  
  for(Iterator it = movedLines.iterator(); it.hasNext(); ) {
    Line line = (Line)it.next();
    line.firePropertyChange(Line.PROP_LINE_NUMBER, null, null);
    // notify all parts attached to this line
    // that they were moved
    if (line instanceof DocumentLine) {
      ((DocumentLine)line).notifyMove();
    } 
  }
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/** Find the line given as parameter in list of all lines attached to this set
 * and if the line exist in the list, notify it about being moved. */
void linesMoved(int startLineNumber, int endLineNumber) {
  List movedLines = getLinesFromRange(startLineNumber, endLineNumber);
  
  for(Iterator it = movedLines.iterator(); it.hasNext(); ) {
    Line line = (Line)it.next();
    line.firePropertyChange(Line.PROP_LINE_NUMBER, null, null);
    // notify all parts attached to this line
    // that they were moved
    if (line instanceof DocumentLine) {
      ((DocumentLine)line).notifyMove();
    } 
  }
}

代码示例来源:origin: org.netbeans.api/org-openide-text

/** Find the line given as parameter in list of all lines attached to this set
 * and if the line exist in the list, notify it about being edited. */
void linesChanged(int startLineNumber, int endLineNumber, DocumentEvent p0) {
  List changedLines = getLinesFromRange(startLineNumber, endLineNumber);
  StyledDocument doc = listener.support.getDocument();
  for (Iterator it = changedLines.iterator(); it.hasNext();) {
    Line line = (Line) it.next();
    line.firePropertyChange(Annotatable.PROP_TEXT, null, null);
    // revalidate all parts attached to this line
    // that they are still part of the line
    if (doc != null && line instanceof DocumentLine) {
      ((DocumentLine) line).notifyChange(p0, this, doc);
    }
  }
}

相关文章