Added ability to specify default command display style for CommandBar

This commit is contained in:
Michael Becker 2015-06-18 15:04:18 -04:00
parent 0175eee806
commit e3a718eaca
5 changed files with 10 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

View File

@ -0,0 +1,7 @@
<net.alcetech.UserInterface.Theming>
<Themes>
<Theme ID="889B0D01-5BAC-4C54-9A86-0B978B7A5510">
</Theme>
</Themes>
</net.alcetech.UserInterface.Theming>

View File

@ -27,6 +27,9 @@ public class MainWindow extends Window
CommandBar cbMenuBar = new CommandBar();
// this is a menu bar, so set the default display style to text only
cbMenuBar.setDefaultCommandDisplayStyle(CommandDisplayStyle.TextOnly);
cbMenuBar.getCommandCollection().add(new CommandReferenceCommandItem("mnuFile"));
cbMenuBar.getCommandCollection().add(new CommandReferenceCommandItem("mnuEdit"));
cbMenuBar.getCommandCollection().add(new CommandReferenceCommandItem("mnuView"));