添加新节

添加新节包括新节(工作空间节)的添加,请参阅简介中的用户界面元素 4

图 1. SimpleApp 应用程序
        <ac:application
  id="SimpleApp"
  logo="SimpleApp.logo"
  title="SimpleApp.title"
  subtitle="SimpleApp.subtitle"
  user-message="SimpleApp.UserMessage">

  <ac:application-menu>
    <ac:preferences title="preferences.title"/>
    <ac:help title="help.title"/>
    <ac:logout title="logout.title"/>
  </ac:application-menu>

  <ac:section-ref id="SimpleAppHomeSection"/>
        <ac:section-ref id="SimpleAppWorkspaceSection"/>
        </ac:application>

此节是在 SimpleAppWorkspaceSection.sec 文件(在添加新节中对该文件进行详细描述)中定义的。此节与先前定义的节之间的差别是快捷方式面板的添加,请参阅简介中的用户界面元素 1。这是通过添加 shortcut-panel-ref 元素来完成的。

SimpleWorkspaceSection.sec 定义一个具有两个选项卡的结构,将在下一章中定义其内容。

图 2. SimpleAppWorkspaceSection.sec
<sc:section
  id="SimpleAppWorkspaceSection"
  title="Section.Home.Title">

  <sc:shortcut-panel-ref id="SimpleShortcutPanel"/>

  <sc:tab id="SimpleSearch"/>
  <sc:tab id="SimplePerson"/>

</sc:section>

对应 .properties 应该包含该节的可本地化内容:

Section.Home.Title=Workspace