SalesPoint v3.3 API

util.swing
Interface InputFilter


public interface InputFilter

Interface defining filter for JFilterInput components.

Implement the methods according to your needs.

Since:
3.2 2006-03-18
Author:
Thomas Ryssel

Method Summary
 boolean allowEditing(String value)
          Called before applying a changed value in the JFilterInput.
 String validExit(String value)
          Called when exiting the control.
 

Method Detail

allowEditing

boolean allowEditing(String value)
Called before applying a changed value in the JFilterInput.

If this returns true, the value will be accepted, in any other case the new value will not be taken.

Parameters:
value - The new value the input would have after applying the current change.
Returns:
Whether or not to accept this value.

validExit

String validExit(String value)
Called when exiting the control.

Lets you react on "finishing" some input. If the given value is not acceptable you can edit and return it. This is also the right place for error messages and similar things.

Parameters:
value - The current value the input has.
Returns:
An accepted value.

SalesPoint v3.3 API