/** 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(); } } }
/** 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); } } }
/** 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); } } }
/** 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(); } } }
/** 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(); } } }
/** 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); } } }