09.04.2018 Views

tornadofx-guide

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

7. Layouts and Menus<br />

You can style the SqueezeBox like you style a TitlePane. The close button has a css class<br />

called close-button and the container has a css class called squeeze-box .<br />

Drawer<br />

The Drawer is a navigation component much like a TabPane, but it organizes each drawer<br />

item in a vertically or horizontally placed button bar on either side of the parent container. It<br />

resembles the tool drawers found in many popular business applications and IDEs. When an<br />

item is selected, the content for the item is displayed next to or above/below the buttons in a<br />

content area spanning the height or width of the control and the preferred width or height of<br />

the content, depending on whether it is docked in a vertical or horizontal side of the parent.<br />

In multiselect mode it will even let you open multiple drawer items simutaneously and<br />

have them share the space between them. They will always open in the order of the<br />

corresponding buttons.<br />

116

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!