void (final Element element, final LwComponent component) { final Element constraintsElement = LwXmlReader.getRequiredChild(element, UIFormXmlConstants.ELEMENT_CONSTRAINTS); final Element tabbedPaneChild = LwXmlReader.getRequiredChild(constraintsElement, UIFormXmlConstants.ELEMENT_TABBEDPANE); final StringDescriptor descriptor = LwXmlReader.getStringDescriptor(tabbedPaneChild, UIFormXmlConstants.ATTRIBUTE_TITLE, UIFormXmlConstants.ATTRIBUTE_TITLE_RESOURCE_BUNDLE, UIFormXmlConstants.ATTRIBUTE_TITLE_KEY); if (descriptor == null) { throw new IllegalArgumentException("String descriptor value required"); } final Constraints constraints = new Constraints(descriptor); final Element tooltipElement = LwXmlReader.getChild(tabbedPaneChild, UIFormXmlConstants.ELEMENT_TOOLTIP); if (tooltipElement != null) { constraints.myToolTip = LwXmlReader.getStringDescriptor(tooltipElement, UIFormXmlConstants.ATTRIBUTE_VALUE, UIFormXmlConstants.ATTRIBUTE_RESOURCE_BUNDLE, UIFormXmlConstants.ATTRIBUTE_KEY); } String icon = tabbedPaneChild.getAttributeValue(UIFormXmlConstants.ATTRIBUTE_ICON); if (icon != null) { constraints.myIcon = new IconDescriptor(icon); } icon = tabbedPaneChild.getAttributeValue(UIFormXmlConstants.ATTRIBUTE_DISABLED_ICON); if (icon != null) { constraints.myDisabledIcon = new IconDescriptor(icon); } constraints.myEnabled = LwXmlReader.getOptionalBoolean(tabbedPaneChild, UIFormXmlConstants.ATTRIBUTE_ENABLED, true); component.setCustomLayoutConstraints(constraints); }