public boolean isHandlingLabels() { // migration code Map<String, Serializable> controls = getControls(BuiltinModes.ANY, BuiltinModes.ANY); if (controls != null && controls.containsKey("handleLabels")) { Serializable handling = controls.get("handleLabels"); if (handling != null) { return Boolean.parseBoolean(handling.toString()); } } return handlingLabels; }
WidgetDefinitionImpl clone = new WidgetDefinitionImpl(name, type, clabels, chelpLabels, translated, cmodes, cfieldDefinitions, cprops, cwidgetProps, csubWidgets, cselectOptions); clone.setTypeCategory(typeCategory); clone.setRenderingInfos(crenderingInfos); clone.setSubWidgetReferences(csubWidgetRefs); clone.setHandlingLabels(handlingLabels); clone.setControls(ccontrols); if (aliases != null) { clone.setAliases(new ArrayList<String>(aliases)); clone.setDynamic(dynamic); clone.setGlobal(global); return clone;
WidgetDefinitionImpl clone = new WidgetDefinitionImpl(name, type, clabels, chelpLabels, translated, cmodes, cfieldDefinitions, getProperties(), getWidgetModeProperties(), csubWidgets, cselectOptions); clone.setRenderingInfos(crenderingInfos); clone.setSubWidgetReferences(csubwidgetRefs); clone.setHandlingLabels(handlingLabels); clone.setControls(getControls()); clone.setTypeCategory(typeCategory); if (aliases != null) { clone.setAliases(new ArrayList<String>(aliases));
WidgetDefinitionImpl wDef = new WidgetDefinitionImpl(widgetNameValue, wtype, actionInstance.getLabel(), actionInstance.getHelp(), true, null, null, props, null); wDef.setTypeCategory(wcat); wDef.setDynamic(true); WebLayoutManager layoutService = Framework.getService(WebLayoutManager.class); Widget widgetInstance = layoutService.createWidget(ctx, wDef, modeValue, bareValueName, null);