Package com.cosylab.vdct
Class NameChecker
- java.lang.Object
-
- com.cosylab.vdct.NameChecker
-
- All Implemented Interfaces:
EventListener
,DocumentListener
public class NameChecker extends Object implements DocumentListener
- Author:
- ssah
-
-
Field Summary
Fields Modifier and Type Field Description protected JButton
confirmButton
protected JLabel
description
protected boolean
group
protected JTextField
nameField
protected JLabel
oldNameLabel
-
Constructor Summary
Constructors Constructor Description NameChecker(JTextField nameField, JLabel oldNameLabel, boolean group, JButton confirmButton, JLabel description)
If group is true, the name is checked as a group name, otherwise it is checked as a record name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
changedUpdate(DocumentEvent arg0)
void
check()
void
insertUpdate(DocumentEvent arg0)
void
removeUpdate(DocumentEvent arg0)
-
-
-
Field Detail
-
nameField
protected JTextField nameField
-
oldNameLabel
protected JLabel oldNameLabel
-
group
protected boolean group
-
confirmButton
protected JButton confirmButton
-
description
protected JLabel description
-
-
Constructor Detail
-
NameChecker
public NameChecker(JTextField nameField, JLabel oldNameLabel, boolean group, JButton confirmButton, JLabel description)
If group is true, the name is checked as a group name, otherwise it is checked as a record name.- Parameters:
nameField
- nameFieldoldNameLabel
- oldNameLabelgroup
- groupconfirmButton
- confirmButtondescription
- description
-
-
Method Detail
-
check
public void check()
-
changedUpdate
public void changedUpdate(DocumentEvent arg0)
- Specified by:
changedUpdate
in interfaceDocumentListener
-
insertUpdate
public void insertUpdate(DocumentEvent arg0)
- Specified by:
insertUpdate
in interfaceDocumentListener
-
removeUpdate
public void removeUpdate(DocumentEvent arg0)
- Specified by:
removeUpdate
in interfaceDocumentListener
-
-