edu.rice.cs.util.text
Class DocumentEditCondition
java.lang.Object
edu.rice.cs.util.text.DocumentEditCondition
- Direct Known Subclasses:
- ConsoleDocument.ConsoleEditCondition
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 5175 2010-01-20 08:46:32Z mgricken $
|
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