| java.lang.Object graphical.HyperTextFilter
HyperTextFilter | public class HyperTextFilter implements TextFilter(Code) | | Encapsulate up the TextFilter for simple rejection/acceptance
handling based on a list.
Can be set to be either inclusive, accepting only characters
on the list, or exclusive, rejecting only characters on
the list.
|
Field Summary | |
public boolean | debug If debug is true, print characters and accept or
reject status. | public boolean | inclusive If inclusive is true and the KeyEvent character is
on the list it is accepted; if inclusive is false
and the KeyEvent character is not on the list,
it is accepted; otherwise, it is rejected. |
debug | public boolean debug(Code) | | If debug is true, print characters and accept or
reject status.
|
inclusive | public boolean inclusive(Code) | | If inclusive is true and the KeyEvent character is
on the list it is accepted; if inclusive is false
and the KeyEvent character is not on the list,
it is accepted; otherwise, it is rejected.
|
HyperTextFilter | public HyperTextFilter()(Code) | | Constructor.
|
HyperTextFilter | public HyperTextFilter(int n, boolean b)(Code) | | Constructor.
Parameters: n - number of anticipated characters in the filter Parameters: b - set value of the inclusive attribute |
acceptsEvent | public boolean acceptsEvent(Object textObject, KeyEvent event, Vector events)(Code) | | Determine whether to accept keystroke event.
|
createAlphaNumericFilter | public static HyperTextFilter createAlphaNumericFilter()(Code) | | Create a default inclusive alphanumeric filter.
|
createAlphaNumericFilter | public static HyperTextFilter createAlphaNumericFilter(int n, boolean b)(Code) | | Create an alphanumeric filter.
Parameters: n - number of slots in the filter Parameters: b - inclusiveness |
createI18NAlphaNumericFilter | public static HyperTextFilter createI18NAlphaNumericFilter()(Code) | | Create a default inclusive i18n alphanumeric filter.
|
createI18NAlphaNumericFilter | public static HyperTextFilter createI18NAlphaNumericFilter(int n, boolean b)(Code) | | Create an i18n alphanumeric filter.
Parameters: n - number of slots in the filter Parameters: b - inclusiveness |
|
|