org.eclipse.rse.ui.validators
Class SystemNumericVerifyListener
java.lang.Object
org.eclipse.rse.ui.validators.SystemNumericVerifyListener
-
All Implemented Interfaces:
-
EventListener,
VerifyListener,
org.eclipse.swt.internal.SWTEventListener
-
public class SystemNumericVerifyListener
- extends
Object
- implements
VerifyListener
A class that only allows keys representing numeric values to be entered. It can be turned off if necessary.
Method Summary
|
boolean
|
isOff
()
Returns whether the verifier is on or off. |
void
|
setOff
(boolean isOff)
Turns the verifier on or off. |
void
|
verifyText
(
VerifyEvent e)
Verifies the event text if it is not turned off. |
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
SystemNumericVerifyListener
public SystemNumericVerifyListener()
- Constructor. The verifier is on by default.
verifyText
public void verifyText(
VerifyEvent e)
- Verifies the event text if it is not turned off.
-
-
Specified by:
-
verifyText
in interface
VerifyListener
-
-
See Also:
-
VerifyListener.verifyText(org.eclipse.swt.events.VerifyEvent)
setOff
public void setOff(boolean isOff)
- Turns the verifier on or off.
-
-
-
Parameters:
-
isOff
- true
to turn the verifier off, false
to turn it on.
isOff
public boolean isOff()
- Returns whether the verifier is on or off.
-
-
-
Returns:
-
true
if the verifier is off, false
if it is on.
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.