SWT是Eclipse的一个项目,用来编写界面程序。XWorker集成了本地界面模型,XWorker中的界面大部分都是使用SWT编写的。
模型代码
<?xml version="1.0" encoding="utf-8"?> <Shell name="shell" descriptors="xworker.swt.widgets.Shell" text="Shell" RESIZE="true" label="Shell"> <FillLayout name="shellFillLayout"></FillLayout> <Group name="group" text="Shell" label="Shell"> <RowLayout name="rowLayout"></RowLayout> <Button name="shellButton" text="Open Shell" style="DOWN"> <Listeners> <Listener name="shellButonSeletion"> <OpenShell descriptors="xworker.swt.actions.ShellActions/@OpenShell" singleInstance="false" parent="shellButton.getShell()" shellPath="xworker.example.swt.controls.MenuShell"></OpenShell> </Listener> </Listeners> </Button> </Group> </Shell>
运行结果
Copyright © 2007-2014 XWorker.org 版权所有