Clazz.declarePackage ("org.eclipse.swt.snippets");
org.eclipse.swt.snippets.Snippet19 = function () {
Clazz.instantialize (this, arguments);
};
org.eclipse.swt.snippets.Snippet19.__CLASS_NAME__ = org.eclipse.swt.snippets.Snippet19.prototype.__CLASS_NAME__ = "org.eclipse.swt.snippets.Snippet19";
Clazz.defineMethod (org.eclipse.swt.snippets.Snippet19, "main", 
function (args) {
var display =  new org.eclipse.swt.widgets.Display ();
var shell =  new org.eclipse.swt.widgets.Shell (display);
var text =  new org.eclipse.swt.widgets.Text (shell, org.eclipse.swt.SWT.BORDER | org.eclipse.swt.SWT.V_SCROLL);
text.setBounds (10, 10, 200, 200);
text.addListener (org.eclipse.swt.SWT.Verify, (function (innerThis, finalVars) {
if (!Clazz.isClassDefined ("org.eclipse.swt.snippets.Snippet19$1")) {
org.eclipse.swt.snippets.Snippet19$1 = function () {
Clazz.prepareCallback (this, arguments[0]);
for (var i = 0; i < arguments.length - 1; i++) {
arguments[i] = arguments[i + 1];
}
arguments.length--;
Clazz.defineMethod (org.eclipse.swt.snippets.Snippet19$1, "handleEvent", 
function (e) {
var string = e.text;
var chars =  Clazz.newArray (string.length, '\0');
string.getChars (0, chars.length, chars, 0);
for (var i = 0; i < chars.length; i++) {
if (!(('0').charCodeAt (0) <= (chars[i]).charCodeAt (0) && (chars[i]).charCodeAt (0) <= ('9').charCodeAt (0))) {
e.doit = false;
return ;
}}
}, "org.eclipse.swt.widgets.Event");
Clazz.instantialize (this, arguments);
};
Clazz.implementOf (org.eclipse.swt.snippets.Snippet19$1, org.eclipse.swt.widgets.Listener);
org.eclipse.swt.snippets.Snippet19$1.__CLASS_NAME__ = org.eclipse.swt.snippets.Snippet19$1.prototype.__CLASS_NAME__ = "org.eclipse.swt.snippets.Snippet19$1";
}
return Clazz.innerTypeInstance (org.eclipse.swt.snippets.Snippet19$1, innerThis, finalVars);
}) (this, null));
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}, "Array");
org.eclipse.swt.snippets.Snippet19.main = org.eclipse.swt.snippets.Snippet19.prototype.main;
