internal override void RefreshInternal() { ToolbarProperties props = (ToolbarProperties)Properties; bool twoRow = (CUIUtility.SafeString(props.Size) == DataNodeWrapper.TWOROW); // Create the outer DOM Element of the toolbar if it hasn't been created yet if (CUIUtility.IsNullOrUndefined(ElementInternal)) { CreateToolbarStructure(twoRow); } ElementInternal = Utility.RemoveChildNodes(ElementInternal); if (twoRow) { // Add the toolbar structure to the page ElementInternal.AppendChild(_elmToolbarTopBars); // Add the buttondocks AppendChildrenToElement(_elmTopBar2); } else { // Add the jewel to the toolbar if (_hasJewel) { ElementInternal.AppendChild(_elmJewelPlaceholder); } // Add the buttondocks AppendChildrenToElement(ElementInternal); } Dirty = false; }
/// <summary> /// Creates a toolbar control. /// </summary> /// <param name="id">The Component id for the toolbar.</param> public Toolbar(string id, ToolbarProperties properties, ToolbarBuilder builder, bool hasJewel) : base(id, properties) { _builder = builder; _hasJewel = hasJewel; }