public class UniqueNameValidator extends java.lang.Object implements DocumentValidator
Constructor and Description |
---|
UniqueNameValidator()
Constructor method for i18n purposes only.
|
UniqueNameValidator(java.lang.String[] names)
Constructor method.
|
Modifier and Type | Method and Description |
---|---|
boolean |
validate(javax.swing.text.JTextComponent comp)
Checks the document contents for being a unique template identifier/name.
|
public UniqueNameValidator() throws java.lang.InstantiationException
I18NExtractor
).
java.lang.InstantiationException
- Error indicationpublic UniqueNameValidator(java.lang.String[] names)
names
- The existing names, new id needs to be differentpublic boolean validate(javax.swing.text.JTextComponent comp)
validate
in interface DocumentValidator
comp
- The text componentCopyright © 2005-2013 Leisenfels UG (haftungsbeschränkt). All rights reserved.