public static VLViewComponentXML resolveComponent(VLViewComponentXML component, String id) { return component.getNullableComponentById(id); }
/** * @{inheritedDoc} */ @Override public void build(VLViewComponentXML configuration, IEmaginController controller) { buildFrom(controller, configuration.getNullableComponentById("ListContentDefinition")); }
public static boolean isAttributeMandatory(final VLViewComponentXML attrConfig) { final VLViewComponentXML displayConfig = attrConfig.getNullableComponentById(XMLConstants.VALIDATION_CONFIG); boolean mandatory = false; if (displayConfig != null) { mandatory = displayConfig.getBooleanProperty(XMLConstants.MANDATORY); } return mandatory; }
protected void buildTabs() { // leftTabs VLViewComponentXML leftTabsCfg = configuration.getNullableComponentById("LeftTabs"); if (leftTabsCfg != null && leftTabsCfg.hasSubComponent()) { buildTabsGroup(leftTabsCfg, TabSide.LEFT); } // right tabs VLViewComponentXML rightTabsCfg = configuration.getNullableComponentById("RightTabs"); if (rightTabsCfg != null && rightTabsCfg.hasSubComponent()) { buildTabsGroup(rightTabsCfg, TabSide.RIGHT); } // center tabs VLViewComponentXML centerTabsCfg = configuration.getNullableComponentById("CenterTabs"); if (centerTabsCfg != null && centerTabsCfg.hasSubComponent()) { buildTabsGroup(centerTabsCfg, TabSide.CENTER); } }