org.skunk.swing.text
Interface EntryFilter
- All Known Implementing Classes:
- PositiveIntegerEntryFilter
- public interface EntryFilter
a filter for validation of entry fields.
Method Summary |
boolean |
accepts(int offs,
java.lang.String str,
javax.swing.text.AttributeSet a,
java.lang.String wholeString)
should return whether the filter accepts the insertion of the given str into the document text. |
accepts
public boolean accepts(int offs,
java.lang.String str,
javax.swing.text.AttributeSet a,
java.lang.String wholeString)
- should return whether the filter accepts the insertion of the given str into the document text.
- Parameters:
offs
- the offset into the documentstr
- the string being inserteda
- the attributes of the insertwholeString
- the whole text of the document