新增區段包括新增工作區區段,請參照簡介中的「使用者介面元素 4」。
<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 定義含有兩個標籤的結構,下一章將定義其內容。
<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