Copyright 2015-2016 IS2T. All rights reserved.
IS2T PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
This library contains all that is necessary to create an HMI on MWT 2:
- a dynamic style resolution (_ej.style_),
- a set of widgets (_ej.widget_),
- a set of containers (_ej.widget.container_),
- an animation framework (_ej.animation_),
- a navigation framework (_ej.widget.navigation_),
- some color utilities (_ej.color_).
The style framework is used to customize a user interface.
A style is a set of attributes to apply to an element (spacing, coloring, font, size, etc.).
The stylesheet is augmented with rules: a selector associated with a partial style. The rules are ordered from the most specific to the least one. The resolution of an element style is done by applying the rules matching the element (in order), then inheriting a part of its parents style (recursively), then completing it by the default style.
The widgets are graphical elements on which a style can be applied.
The framework contains a set of predefined widgets: label, image, button, toggle, radio, check, switch, text, slider, scrollbar, progress bar.
It is also possible to create its own widgets by subclassing StyledWidget.
The containers are graphical elements on which a style can be applied and that can contain other elements (widgets or containers). Each container defines a policy to lay out its children.
The framework contains a set of predefined layout policies: canvas, dock, grid, list, scroll, split.
It is also possible to create its own layout policies by subclassing StyledComposite.
The animation framework provides an animator that can schedule several animations at the same framerate.
The navigation framework provides the capability to navigate from one page to another and going back to pages history.
The pages are composed of widgets and containers. A page is represented by a URL.
A URL resolver is responsible for creating the pages from a URL.
A pages stack manages the history of pages. It can either keep the pages in cache or create it again while going back to history.
The navigation desktop associates a URL resolver and a pages stack to navigate between the pages. It may also animate the transition between the pages.
The color utilities provide some convenient functions to manipulate the colors.
The color helper manipulates (decompose, recompose) the color components red, green, blue.
The light helper computes and modifies the level of light in a color.
Add the following line to your `module.ivy` or your `ivy.xml`:
> `<dependency org="ej.library.ui" name="widget" rev="2.2.0"/>`
- EDC 1.2 or later
- BON 1.2 or later
- MICROUI 2 or later
- MWT 2 or later
_All dependencies are retrieved transitively by Ivy resolver_.