public class BridgeContainer<LAYOUT_PROP extends LayoutProp> extends Object
Note: this class is NOT thread-safe when building the UI, but once in operation it is.
Constructor and Description |
---|
BridgeContainer(UIContainer uiContainer,
LayoutMgr<LAYOUT_PROP> layoutMgr,
PropCnr propCnr)
Constructs the bridge with UI container.
|
Modifier and Type | Method and Description |
---|---|
LAYOUT_PROP |
add(VSField field,
UIComp comp,
String prompt,
String tooltip)
Adds a definition of a UI component mapping to a VS property.
|
UIContainer |
getContainer()
Gets the UI container.
|
LayoutMgr<LAYOUT_PROP> |
getLayoutMgr()
Gets the layout manager.
|
public BridgeContainer(UIContainer uiContainer, LayoutMgr<LAYOUT_PROP> layoutMgr, PropCnr propCnr)
uiContainer
- The UI containerlayoutMgr
- The class of the UI container layout manager.propCnr
- The property container.public UIContainer getContainer()
public LayoutMgr<LAYOUT_PROP> getLayoutMgr()
public LAYOUT_PROP add(VSField field, UIComp comp, String prompt, String tooltip)
field
- The VS field to map to.comp
- The UI component.prompt
- Potential prompt before the component, null for none.tooltip
- Potential tooltip on the component and its prompt, null for none.IllegalArgumentException
- If the field is attached to a component in this bridge container.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.