Application

     Application is a simple application framework that supports changing styles. It can be used in windows or as a control. The path of the Application model is xworker.swt.app.Application.

    As shown in the video below.

    Sample code:

<?xml version='1.0' encoding='utf-8'?>

<Application name="TestApplication" _xmeta_id_="Application" descriptors="xworker.swt.app.Application,xworker.swt.Widgets/@Application"
      title="lang:d=Application Example&amp;en=Application Example" application="xworker.swt.app.Applications/@SimpleExpandBarApp"
      theme="xworker.swt.app.applications.MobileSimpleApp1">
     <ShellItems editor="">
         <Folder name="file" label="file" editor="">
             <Action name="swtBox" label="MessageBox" icon="none" editor="">
                 <MessageBox name="MessageBox" descriptors="xworker.swt.actions.MessageBoxActions/@MessageBox"
                      shell="var:shell" title="lang:d=西安西&amp;en=Message" message="lang:d=This is a message! &amp;en=This is a message!"/>
             </Action>
             <Separator name="Separator" editor=""/>
             <Groovy name="groovy" label="Groovy" code="println &quot;Hello World!&quot;;" editor=""/>
         </Folder>
         <Folder name="editor" label="Editor" editor="">
             <QuickContent name="quickContent" label="QuickContent" quickContent="xworker.example.swt.SwtExamples1/@23839"/>
             <Composite name="DashBoard" _xmeta_id_="Composite" composite="xworker.example.swt.xwidgets.BootstrapExample/@Composite"
                  editor=""/>
         </Folder>
     </ShellItems>
     <MainItems descriptors="xworker.swt.app.Application/@MainItems,xworker.swt.app.Application/@ShellItems"
          editor="">
         <Folder name="file" label="file" extends="_local.test.swt.app.TestApplication/@ShellItems/@file"
              showLabel="false" editor=""/>
         <Folder name="editor" label="Editor" extends="_local.test.swt.app.TestApplication/@ShellItems/@editor"
              editor=""/>
     </MainItems>
     <TopLeftItems descriptors="xworker.swt.app.Application/@TopLeftItems,xworker.swt.app.Application/@ShellItems"
          editor="">
         <Folder name="file" label="file" extends="_local.test.swt.app.TestApplication/@ShellItems/@file"
              icon="none" editor=""/>
         <Composite name="DashBoard" _xmeta_id_="Composite" composite="xworker.example.swt.xwidgets.BootstrapExample/@Composite"
              editor="" icon="none"/>
     </TopLeftItems>
     <TopRightItems descriptors="xworker.swt.app.Application/@TopRightItems,xworker.swt.app.Application/@ShellItems"
          editor="">
         <Folder name="file" label="file" extends="_local.test.swt.app.TestApplication/@ShellItems/@file"
              showLabel="false" editor=""/>
         <Composite name="DashBoard" _xmeta_id_="Composite" composite="xworker.example.swt.xwidgets.BootstrapExample/@Composite"
              editor="" showLabel="false"/>
     </TopRightItems>
     <LayoutDatas>
         <GridData name="GridData" style="FILL_BOTH"/>
     </LayoutDatas>
</Application>

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号