edu.rice.cs.util.text
Class DocumentEditCondition
java.lang.Object
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 $
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 |
DocumentEditCondition
public DocumentEditCondition()
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