|
Struts example source code file (SwtWidget.js)
The Struts SwtWidget.js source code/* Copyright (c) 2004-2006, The Dojo Foundation All Rights Reserved. Licensed under the Academic Free License version 2.1 or above OR the modified BSD license. For more information on Dojo licensing, see: http://dojotoolkit.org/community/licensing.shtml */ dojo.provide("dojo.widget.SwtWidget"); dojo.require("dojo.experimental"); dojo.experimental("dojo.widget.SwtWidget"); dojo.require("dojo.event.*"); dojo.require("dojo.widget.Widget"); dojo.require("dojo.uri.*"); dojo.require("dojo.lang.func"); dojo.require("dojo.lang.extras"); try { importPackage(Packages.org.eclipse.swt.widgets); dojo.declare("dojo.widget.SwtWidget", dojo.widget.Widget, function () { if ((arguments.length > 0) && (typeof arguments[0] == "object")) { this.create(arguments[0]); } }, {display:null, shell:null, show:function () { }, hide:function () { }, addChild:function () { }, registerChild:function () { }, addWidgetAsDirectChild:function () { }, removeChild:function () { }, destroyRendering:function () { }, postInitialize:function () { }}); dojo.widget.SwtWidget.prototype.display = new Display(); dojo.widget.SwtWidget.prototype.shell = new Shell(dojo.widget.SwtWidget.prototype.display); dojo.widget.manager.startShell = function () { var sh = dojo.widget.SwtWidget.prototype.shell; var d = dojo.widget.SwtWidget.prototype.display; sh.open(); while (!sh.isDisposed()) { dojo.widget.manager.doNext(); if (!d.readAndDispatch()) { d.sleep(); } } d.dispose(); }; } catch (e) { dojo.debug("dojo.widget.SwtWidget not loaded. SWT classes not available"); } Other Struts examples (source code examples)Here is a short list of links related to this Struts SwtWidget.js source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.