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.
 

Method Detail

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 document
str - the string being inserted
a - the attributes of the insert
wholeString - the whole text of the document