com.cosylab.vdct
Class NameChecker

java.lang.Object
  extended by com.cosylab.vdct.NameChecker
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.DocumentListener

public class NameChecker
extends java.lang.Object
implements javax.swing.event.DocumentListener

Author:
ssah

Field Summary
protected  javax.swing.JButton confirmButton
           
protected  javax.swing.JLabel description
           
protected  boolean group
           
protected  javax.swing.JTextField nameField
           
protected  javax.swing.JLabel oldNameLabel
           
 
Constructor Summary
NameChecker(javax.swing.JTextField nameField, javax.swing.JLabel oldNameLabel, boolean group, javax.swing.JButton confirmButton, javax.swing.JLabel description)
          If group is true, the name is checked as a group name, otherwise it is checked as a record name.
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent arg0)
           
 void check()
           
 void insertUpdate(javax.swing.event.DocumentEvent arg0)
           
 void removeUpdate(javax.swing.event.DocumentEvent arg0)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nameField

protected javax.swing.JTextField nameField

oldNameLabel

protected javax.swing.JLabel oldNameLabel

group

protected boolean group

confirmButton

protected javax.swing.JButton confirmButton

description

protected javax.swing.JLabel description
Constructor Detail

NameChecker

public NameChecker(javax.swing.JTextField nameField,
                   javax.swing.JLabel oldNameLabel,
                   boolean group,
                   javax.swing.JButton confirmButton,
                   javax.swing.JLabel description)
If group is true, the name is checked as a group name, otherwise it is checked as a record name.

Parameters:
nameField -
oldNameField -
group -
confirmButton -
description -
Method Detail

check

public void check()

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent arg0)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent arg0)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent arg0)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener