XFormsCase.prototype = new XFormsGroup; function XFormsCase (strParentId, strAlert, strHelp, strHint, strAccesskey, strClass, bDisabled, strId, nNavindex, strOverflow, strScroll, bSelected, strStyle, strTag, strVisibility, strUserDefineAttrib) { if (!strId) { return; } XFormsGroup.call(this, strParentId, strAlert, strHelp, strHint, strAccesskey, ""/*strBind*/, strClass, bDisabled, strId, nNavindex, strOverflow, ""/*bPopup*/, ""/*strRef*/, strScroll, ""/*strShowEffect*/, strStyle, strTag, strVisibility, strUserDefineAttrib); /** * html Element 별도로 정의한다. init 구조 수정 후 보완 */ this.m_heControl = document.getElementById("HE_" + strId); /** * Attribute */ this.attribute["selected"] = String(bSelected); // selected this.m_nIndex = -1; this.m_bIsChild = true; }; XFormsCase.prototype.init = function () { XFormsGroup.prototype.init.call(this); }; XFormsCase.prototype.applyDefaultStyle = function () { HtmlLib.setStyle(this.m_heControl, "left", "0px"); HtmlLib.setStyle(this.m_heControl, "top", "0px"); HtmlLib.setStyle(this.m_heControl, "width", "100%"); HtmlLib.setStyle(this.m_heControl, "height", "100%"); }; XFormsCase.prototype.setAttribute = function (strAttribute, strValue) { XFormsGroup.prototype.setAttribute.call(this, strAttribute, strValue); switch (strAttribute) { case "selected" : { this.select(strValue); break; } } }; XFormsCase.prototype.getIndex = function () { return this.m_nIndex; }; XFormsCase.prototype.setIndex = function (nIndex) { this.m_nIndex = nIndex; }; XFormsCase.prototype.select = function (bSelected) { // String으로 처리한다. bSelected = String(bSelected); if ("true" == bSelected) { var objSwitch = this.parent; if (null != objSwitch) { if (objSwitch instanceof XFormsSwitch) { var arKeySet = objSwitch.children.keys(); for (var i=0; i nIndex) { nIndex = objTempCase.m_nIndex; } } } nIndex++; objCase.setIndex(nIndex); return objCase; }; XFormsCase.createMainNode = function (clAttribute) { var xnCase = document.createElement("div"); xnCase = XFormsCase.createAttribute(xnCase, clAttribute); return xnCase; }; XFormsCase.createSubNodes = function (xnCase, clAttribute) { return xnCase; }; XFormsCase.createObject = function (strParentId, xnCase, clAttribute, strStyle) { var strAlert = ""; var strHelp = ""; var strHint = ""; var strAccesskey = ""; var strClass = ""; var bDisabled = false; var strId = ""; var nNavindex = 9007199254740992; var strOverflow = ""; var strScroll = ""; var bSelected = "false"; var strVisibility = "visible"; var strUserDefineAttrib = ""; for (var i=0; i