views
Class ParametersDlg.portnrVerifier
java.lang.Object
javax.swing.InputVerifier
views.ParametersDlg.portnrVerifier
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
- Enclosing class:
- ParametersDlg
class ParametersDlg.portnrVerifier
- extends javax.swing.InputVerifier
- implements java.awt.event.ActionListener
This class is used to verify that a textfield has a valid Port number.
- Author:
- Leo Bosnjak
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Invoked when an action occours. |
boolean |
verify(javax.swing.JComponent input)
This method checks the input of the field. |
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 |
MIN_PORTNR
private static final int MIN_PORTNR
- See Also:
- Constant Field Values
MAX_PORTNR
private static final int MAX_PORTNR
- See Also:
- Constant Field Values
ParametersDlg.portnrVerifier
ParametersDlg.portnrVerifier()
verify
public boolean verify(javax.swing.JComponent input)
- This method checks the input of the field.
It must be a number in the range of [MIN_PORTNR, MAX_PORTNR]
- Specified by:
verify
in class javax.swing.InputVerifier
- Parameters:
input
- - the field which is going to be checked
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Invoked when an action occours.
-> Forces a check of the field input.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Parameters:
e
- - The occoured action