Styles determine how screens look like in GUI installers. For more information on styles, see the corresponding help topic.
Styles are added by clicking the Add button.
In the popup window you can select whether to add
- a configurable style. Styles can be constructed with a restricted set of the form components for screens that do not take user input and some special form components that are relevant in a styling context.
- a style that is contained in your custom code. New types of reusable styles can be developed with the install4j API. In your custom code configuration you can specify code locations that are scanned for suitable classes. A class selector will be shown where you can select the desired class.
- a group for organizing styles, so you have a better overview of which styles belong together.
For organizing styles in your project, you can create a group from selected styles with the Create group from selection action and dissolve groups with the Dissolve Group action. This action is only enabled if the selection consists of a single layout group. The elements contained in the group will be inserted in place of the group. Nested groups will not be dissolved.
You can preview a style with the Preview button which is also available on the property page of a style.
Properties of styles
Form styles have the following properties:
Standalone styleIf selected, the style can be selected for installer applications, screen groups and screens. If a style is not standalone, it can only be used in other styles.
Fill horizontal spaceIf selected, all available horizontal space is filled by this style. This setting is also used when it is nested in another style by a "Nested style" form component.
Horizontal anchorIf "Fill horizontal space" is not selected, the style can be placed at different locations in the available space.
This property is only visible if "Fill horizontal space" is selected.
Fill vertical spaceIf selected, all available vertical space is filled by this style. This setting is also used when it is nested in another style by a "Nested style" form component.
Vertical anchorIf "Fill vertical space" is not selected, the style can be placed at different locations in the available space.
This property is only visible if "Fill vertical space" is selected.