edu.rice.cs.util.text
Class DocumentEditCondition

java.lang.Object
  extended by edu.rice.cs.util.text.DocumentEditCondition

public class DocumentEditCondition
extends Object

Class to decide whether a given edit can be applied to the document. Subclasses can impose conditions on which edits will be applied.

Version:
$Id: DocumentEditCondition.java 4422 2008-03-27 15:08:58Z rcartwright $

Constructor Summary
DocumentEditCondition()
           
 
Method Summary
 boolean canInsertText(int offs)
          Returns whether to actually insert, given these inputs.
 boolean canRemoveText(int offs)
          Returns whether to actually remove, given these inputs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentEditCondition

public DocumentEditCondition()
Method Detail

canInsertText

public boolean canInsertText(int offs)
Returns whether to actually insert, given these inputs.

Parameters:
offs - Offset into the document

canRemoveText

public boolean canRemoveText(int offs)
Returns whether to actually remove, given these inputs.

Parameters:
offs - Offset to start deleting from