uk.ac.cisban.rod.gui.functions
Class Latin1InputVerifier

java.lang.Object
  extended by javax.swing.InputVerifier
      extended by uk.ac.cisban.rod.gui.functions.Latin1InputVerifier

public class Latin1InputVerifier
extends javax.swing.InputVerifier

Restricts a JTextComponent's input to only what can be encoded into LATIN1, which is what the database is encoded in, and highlights unmappable text in red. Singleton, because I don't want 400 instances of it running around.

Based on http://en.wikipedia.org/wiki/ISO_8859-1.

Since:
27-Nov-2008 2:32:28 PM
Author:
Morgan Taschuk

Method Summary
static Latin1InputVerifier getInstance()
           
 boolean verify(javax.swing.JComponent input)
           
 
Methods inherited from class javax.swing.InputVerifier
shouldYieldFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static Latin1InputVerifier getInstance()

verify

public boolean verify(javax.swing.JComponent input)
Specified by:
verify in class javax.swing.InputVerifier


Copyright © 2010. All Rights Reserved.