Configuring the UI

Sepasoft MES Module Suite

Open Component Scripting Dialog

The MES Vision Equipment Manager component contains numerous views and controls. To accommodate the many environments in which this component could be used, an extensive array of settings has been exposed to allow the look and feel to be fully customized.

To access the settings, right-click the component and select Scripting, or use the keyboard shortcut Ctrl-J.

You may then enter Preview Mode (F5) so that any customizations made can be seen in real time.

Select getUISettings() on the left and then click the Enabled checkbox above the script area.



Extension Function

Each extension function documents all of its available settings. Below this is example code that, when enabled, will define the same internal default values of each of the settings. 

It is not necessary to uncomment every line, but a few are required. The first two lines and the very last line must be uncommented or the function will either fail or fail to return a value, in which case the internal default values are used. The following lines must be uncommented, if this extension function is to be used:

Lines to Uncomment

Code
from java.awt import Color
from java.awt import Font
#...
return uiSettings

With those lines in place, any (or all) of the remaining lines can be used to change the look and feel of the MES Equipment Manager component. The internal default value of every setting is listed within the documentation of the function. In some cases, a value may reference another setting to get its default value. In the example code however, the actual value used has already been populated to make configuring it as simple as possible.

After writing code to change some of the settings, click the Apply button to see the changes in real-time. A few settings are only applicable from within the edit views (by clicking a menu option). If you do not see your change on the main view of the component, try opening an edit view. It is important to note that a great deal of internal calculation is performed each time the Apply or Save button is clicked. For this reason, the component must fully recreate itself (on-screen) and will always return to the main view. If one of the edit views is visible when clicking the Apply or OK buttons, it is normal behavior that the component will revert back to the main view.


UI / Settings Map

To assist with customization, refer to the mapping below along with the associated screenshots that contain the reference numbers that identifies which elements will be affected by any value changes.

Ref.

Setting Name

Ref.

Setting Name

1background28menuHeaderDetailBackground
2breadcrumbBackground29menuHeaderDetailFont
3breadcrumbFont30menuHeaderDetailForeground
4breadcrumbForeground31menuHeaderTitleBackground
5buttonFont32menuHeaderTitleFont
6buttonForeground33menuHeaderTitleForeground
7disabledEquipmentBackground34menuItemBackground
8disabledEquipmentForeground35menuItemDetailAlignment
9font36menuItemDetailBackground
10footerBackground37menuItemDetailFont
11footerFont38menuItemDetailForeground
12footerForeground39menuItemDetailMaxWidth
13foreground40menuItemFont
14headerButtonSaveText41menuItemForeground
15headerLinkButtonBackText42menuItemHoverBackground
16headerLinkButtonFont43menuItemHoverForeground
17headerLinkButtonForeground44menuItemIndent
18inputBackground45menuItemMaxWidth
19inputFont46menuItemPadding
20inputForeground47menuSectionGap
21labelBackground48selectionBackground
22labelFont49selectionForeground
23labelForeground50titleBarBackground
24lineColor51titleBarFont
25menuHeaderBackground52titleBarForeground
26menuHeaderBorderColor53titleBarHeight
27menuHeaderBorderPadding54validationFailedBackground


UI Settings - Edit Map

Note: The Recipe module shown above is now called Settings and Changeover.

Sepasoft MES Module Suite