XFormsCell.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809
  1. XFormsCell.prototype = new XFormsAttribute;
  2. function XFormsCell (strParentId, nCol, strId, nRow, strTag)
  3. {
  4. if (!strParentId)
  5. {
  6. return;
  7. }
  8. XFormsAttribute.call(this, strParentId, strId, strTag);
  9. this.col = nCol;
  10. this.row = nRow;
  11. this.rowstatus = GRS_NEW;
  12. this.colstatus = true;
  13. this.mergeType = CMS_NORMAL;
  14. this.mergeParentId = null;
  15. this.m_nRowSpan = 1;
  16. this.m_nColSpan = 1;
  17. this.m_fixedInputType = CIT_OUTPUT;// fixedbox의 상태
  18. this.m_fixedCheckStatus = false; //fixedbox의 check상태
  19. this.m_fixedNoCheckAll = false;
  20. this.m_xnNodeElement;
  21. this.m_heControl;
  22. this.m_heDataControl = null;
  23. this.m_objOldCellStyle = new Hashtable();
  24. this.m_objCellStyle = new Hashtable();
  25. this.m_bIsSubTotal = false;
  26. this.editing = false;
  27. this.down = false;
  28. this.disable = false;
  29. this.hover = false;
  30. this.selected = false;
  31. this.isReadOnly = false;
  32. // treeview property
  33. this.expanded = 0;
  34. this.checked = 0;
  35. this.m_nChildNumber = -1;
  36. this.m_strRecursion = "";
  37. this.index = -1;
  38. };
  39. XFormsCell.prototype.init = function ()
  40. {
  41. this.m_heControl = document.getElementById("HE_" + this.id);
  42. var heTempControl = document.getElementById(this.id + "_data");
  43. if (heTempControl)
  44. {
  45. this.m_heDataControl = heTempControl;
  46. heTempControl=null;
  47. }
  48. var objElement = this.getElement();
  49. if ("xforms:col" != objElement.elementName && "xforms:gridfixedcell" != objElement.elementName)
  50. {
  51. for (var strAttribute in objElement.attribute)
  52. {
  53. if (STYLE_LIST[strAttribute])
  54. {
  55. this.setAttribute(strAttribute, objElement.attribute[strAttribute]);
  56. }
  57. }
  58. this.applyDefaultStyle();
  59. }
  60. };
  61. XFormsCell.prototype.unInit = function ()
  62. {
  63. this.m_heControl = null;
  64. this.m_heDataControl = null;
  65. };
  66. XFormsCell.prototype.applyDefaultStyle = function ()
  67. {
  68. XFormsAttribute.prototype.applyDefaultStyle.call(this);
  69. if (null != this.m_heControl)
  70. {
  71. this.m_heControl.style.borderLeft = "";
  72. this.m_heControl.style.borderTop = "";
  73. }
  74. };
  75. XFormsCell.prototype.getInputType = function ()
  76. {
  77. if (null != this.m_objElement)
  78. {
  79. return this.m_objElement.getInputType();
  80. }
  81. return CIT_OUTPUT;
  82. };
  83. XFormsCell.prototype.getMergeType = function ()
  84. {
  85. return this.mergeType;
  86. };
  87. XFormsCell.prototype.getHtmlElement = function ()
  88. {
  89. return this.m_heControl;
  90. };
  91. XFormsCell.prototype.setHtmlElement = function (heElement)
  92. {
  93. this.m_heControl = heElement;
  94. };
  95. XFormsCell.prototype.getNodeElement = function ()
  96. {
  97. return this.m_xnNodeElement;
  98. };
  99. XFormsCell.prototype.setNodeElement = function (xnNode)
  100. {
  101. this.m_xnNodeElement = xnNode;
  102. };
  103. XFormsCell.prototype.getText = function ()
  104. {
  105. if (this.m_xnNodeElement)
  106. {
  107. return XmlLib.getTextValue(this.m_xnNodeElement);
  108. }
  109. else
  110. {
  111. var strText = XFormsCaption.prototype.getText.call(this);
  112. if (strText)
  113. {
  114. return strText;
  115. }
  116. }
  117. return "";
  118. };
  119. XFormsCell.prototype.getIsReadOnly = function ()
  120. {
  121. return this.isReadOnly || this.disable;
  122. };
  123. XFormsCell.prototype.setText = function (strValue)
  124. {
  125. if (this.m_xnNodeElement)
  126. {
  127. XmlLib.setTextValue(this.m_xnNodeElement, strValue);
  128. }
  129. else
  130. {
  131. XFormsElementBase.prototype.setText.call(this, strValue);
  132. }
  133. };
  134. XFormsCell.prototype.setFixedWindowText = function (strValue)
  135. {
  136. if (null == this.m_heControl)
  137. {
  138. return;
  139. }
  140. var heFixedCell = this.m_heControl.lastChild;
  141. if (heFixedCell)
  142. {
  143. if(this.parent.autoResize)
  144. {
  145. heFixedCell.innerHTML = strValue;
  146. }
  147. else
  148. {
  149. if ("NOBR" == heFixedCell.tagName)
  150. {
  151. heFixedCell.innerHTML = strValue;
  152. }
  153. else
  154. {
  155. heFixedCell.innerHTML = "<nobr>" + strValue + "</nobr>";
  156. }
  157. }
  158. }
  159. //메모리 환원
  160. heFixedCell = null;
  161. };
  162. XFormsCell.prototype.getWindowText = function ()
  163. {
  164. if (is_ie)
  165. {
  166. return this.m_heControl.innerText;
  167. }
  168. else
  169. {
  170. return this.m_heControl.textContent;
  171. }
  172. };
  173. XFormsCell.prototype.setWindowText = function (strValue, bIsSubTotal, strFormat)
  174. {
  175. var objCol = this.getElement();
  176. if (this.m_heDataControl)
  177. {
  178. if (null == strValue)
  179. {
  180. strValue = "";
  181. }
  182. if (bIsSubTotal)
  183. {
  184. if (null == strValue)
  185. {
  186. strValue = "";
  187. }
  188. strValue = strValue.formatting(strFormat);
  189. }
  190. else
  191. {
  192. if (null == strValue)
  193. {
  194. strValue = "";
  195. }
  196. strFormat = this.m_objElement.getAttribute("format");
  197. strValue = strValue.formatting(strFormat);
  198. }
  199. if (is_ie)
  200. {
  201. if (strValue == this.m_heDataControl.outerText)
  202. // if (strValue == this.m_heDataControl.innerText)
  203. {
  204. return;
  205. }
  206. }
  207. else
  208. {
  209. if (strValue == this.m_heDataControl.textContent)
  210. {
  211. return;
  212. }
  213. }
  214. if (instance1.preserveWhitespace)
  215. {
  216. strValue = strValue.replace(/\s/g,"&nbsp;");
  217. }
  218. if ("" != strValue && (-1 != objCol.attribute["secretendposition"] || -1 != objCol.attribute["secretstartposition"]))
  219. {
  220. var nStartPo = -1 == objCol.attribute["secretstartposition"] ? 0 : objCol.attribute["secretstartposition"];
  221. var nEndPo = -1 == objCol.attribute["secretendposition"] ? strValue.length : objCol.attribute["secretendposition"];
  222. if (nEndPo > nStartPo)
  223. {
  224. var strMark = objCol.attribute["secretmark"];
  225. var strTempValue = strValue.substr(0,nStartPo);
  226. var strLastValue = strValue.substr(nEndPo, strValue.length);
  227. for (var i=nStartPo; i < nEndPo; i++)
  228. {
  229. strTempValue += strMark;
  230. }
  231. strValue = strTempValue + strLastValue;
  232. }
  233. }
  234. if(this.parent.autoResize)
  235. {
  236. this.m_heDataControl.innerHTML = strValue;
  237. }
  238. else
  239. {
  240. this.m_heDataControl.innerHTML = "<nobr>" + strValue +"</nobr>";
  241. }
  242. }
  243. };
  244. //datagrid refresh 후 checkbox는 노드의 값이 변경되어도 설정이 변경되지 않음
  245. XFormsCell.prototype.setTextRefresh = function (strText)
  246. {
  247. var strToolTipText = strText;
  248. if (null != strText)
  249. {
  250. var objCol = this.getElement();
  251. if (CIT_CHECK == this.getInputType() || CIT_RADIO == this.getInputType())
  252. {
  253. if (objCol)
  254. {
  255. var bCheck = (strText == objCol.getTrueValue())? true : false;
  256. var strValue = bCheck ? objCol.getTrueValue() : objCol.getFalseValue();
  257. if (bCheck)
  258. {
  259. objCol.m_nBeforeSelectRow = this.row;
  260. }
  261. this.setBoolState(bCheck);
  262. this.setWindowText(strText);
  263. }
  264. }
  265. else if (CIT_COMBO == this.getInputType())
  266. {
  267. if (objCol)
  268. {
  269. if (objCol.m_bIsCellCombo && objCol.m_objCombo.isnodeset)
  270. {
  271. var strObjCellNodeSet = this.getAttribute("nodeset");
  272. if (null != strObjCellNodeSet)
  273. {
  274. objCol.m_objCombo.nodeset = strObjCellNodeSet;
  275. objCol.m_objCombo.reBuild();
  276. }
  277. else
  278. {
  279. if (null != objCol.m_strComboNodeSet & objCol.m_strComboNodeSet != objCol.m_objCombo.nodeset)
  280. {
  281. objCol.m_objCombo.nodeset = objCol.m_strComboNodeSet;
  282. objCol.m_objCombo.reBuild();
  283. }
  284. }
  285. }
  286. strToolTipText = objCol.m_objCombo.getLableByValue(strText);
  287. this.setWindowText(strToolTipText);
  288. }
  289. }
  290. else
  291. {
  292. this.setWindowText(strText);
  293. }
  294. }
  295. if ("label" == this.parent.m_strTooltip)
  296. {
  297. if (null != this.m_heControl)
  298. {
  299. this.m_heControl.title = strToolTipText;
  300. }
  301. }
  302. else if ("true" == this.parent.m_strTooltip)
  303. {
  304. if (null != this.m_heControl)
  305. {
  306. this.m_heControl.title = strText;
  307. }
  308. }
  309. };
  310. XFormsCell.prototype.getSelect = function ()
  311. {
  312. return this.selected;
  313. };
  314. XFormsCell.prototype.setSelect = function (bSelect)
  315. {
  316. this.selected = bSelect;
  317. if (this.parent instanceof XFormsDataGrid)
  318. {
  319. if (bSelect)
  320. {
  321. if ("transparent" != this.parent.focusColor)
  322. {
  323. HtmlLib.setStyle(this.m_heControl, "background-color", this.parent.focusColor);
  324. if ("invert" == this.parent.selectFontColorStyle && "#3161C6" == this.parent.focusColor && "invert" == this.parent.selectImageStyle)
  325. {
  326. if (this.m_heDataControl)
  327. {
  328. var strRGB = "";
  329. if (this.m_objCellStyle["color"])
  330. {
  331. strRGB = this.m_objCellStyle["color"];
  332. }
  333. else
  334. {
  335. strRGB = this.attribute["color"];
  336. }
  337. if (!strRGB)
  338. {
  339. strRGB = "#000000";
  340. }
  341. this.m_heDataControl.style.color = strRGB.invertRGB();
  342. }
  343. }
  344. }
  345. }
  346. else
  347. {
  348. if ("transparent" != this.parent.focusColor)
  349. {
  350. if (this.m_objCellStyle["background-color"])
  351. {
  352. var strBGColor = this.m_objCellStyle["background-color"];
  353. }
  354. else
  355. {
  356. var strBGColor = this.attribute["background-color"];
  357. }
  358. if (!strBGColor)
  359. {
  360. strBGColor = "#FFFFFF";
  361. }
  362. HtmlLib.setStyle(this.m_heControl, "background-color", strBGColor);
  363. if (this.m_heDataControl)
  364. {
  365. var strColor = "";
  366. if (this.m_objCellStyle["color"])
  367. {
  368. strColor = this.m_objCellStyle["color"];
  369. }
  370. else
  371. {
  372. strColor = this.attribute["color"];
  373. }
  374. if (!strColor)
  375. {
  376. strColor = "#000000";
  377. }
  378. this.m_heDataControl.style.color = strColor;
  379. }
  380. }
  381. }
  382. }
  383. else /*if (this.parent instanceof XFormsSelect)*/
  384. {
  385. var objElement = this.getElement();
  386. if (null != objElement)
  387. {
  388. objElement.setSelect(bSelect);
  389. }
  390. }
  391. };
  392. XFormsCell.prototype.getDisabled = function ()
  393. {
  394. return this.disable;
  395. };
  396. XFormsCell.prototype.setDisabled = function (bDisable)
  397. {
  398. this.disable = bDisable;
  399. };
  400. XFormsCell.prototype.getBoolState = function ()
  401. {
  402. var strNodeValue = this.getText();
  403. var strTrueValue = this.m_objElement.getTrueValue();
  404. var strFalseValue = this.m_objElement.getFalseValue();
  405. if (strNodeValue == strTrueValue)
  406. {
  407. this.boolstate = true;
  408. }
  409. else if (strNodeValue == strFalseValue)
  410. {
  411. this.boolstate = false;
  412. }
  413. return this.boolstate;
  414. };
  415. XFormsCell.prototype.setBoolState = function (bCheck, bUpdateNode, strTrue, strFalse)
  416. {
  417. this.boolstate = bCheck;
  418. if (bUpdateNode)
  419. {
  420. this.setText(strValue);
  421. }
  422. var heCheck = this.m_heControl.firstChild;
  423. if (heCheck)
  424. {
  425. if (CIT_CHECK == this.getInputType())
  426. {
  427. heCheck.src = this.boolstate ? this.m_objElement.getAttribute("checkimage") : this.m_objElement.getAttribute("uncheckimage");
  428. }
  429. else if (CIT_RADIO == this.getInputType())
  430. {
  431. heCheck.src = this.boolstate ? this.m_objElement.getAttribute("selectimage") : this.m_objElement.getAttribute("unselectimage");
  432. }
  433. }
  434. };
  435. XFormsCell.prototype.getStatus = function ()
  436. {
  437. return this.rowstatus;
  438. };
  439. XFormsCell.prototype.setStatus = function (nStatus)
  440. {
  441. this.rowstatus = nStatus;
  442. };
  443. XFormsCell.prototype.getColStatus = function ()
  444. {
  445. return this.colstatus;
  446. };
  447. XFormsCell.prototype.setColStatus = function (bStatus)
  448. {
  449. this.colstatus = bStatus;
  450. };
  451. XFormsCell.prototype.setEditingMode = function (bEditing)
  452. {
  453. this.editing = bEditing;
  454. };
  455. XFormsCell.prototype.changeRowHeadUpdate = function (nStatus)
  456. {
  457. var heUpdate = this.m_heControl.firstChild;
  458. if (null != heUpdate)
  459. {
  460. switch (nStatus)
  461. {
  462. case GRS_INSERT :
  463. case GRS_INSERTANDNEW :
  464. {
  465. heUpdate.src = this.parent.m_strInsertFlagImage;
  466. break;
  467. }
  468. case GRS_UPDATE :
  469. {
  470. heUpdate.src = this.parent.m_strUpdateFlagImage;
  471. break;
  472. }
  473. case GRS_DELETE :
  474. case GRS_DELETEANDUPDATE :
  475. {
  476. heUpdate.src = this.parent.m_strDeleteFlagImage;
  477. break;
  478. }
  479. default :
  480. {
  481. heUpdate.src = this.parent.m_strNormalFlagImage;
  482. break;
  483. }
  484. }
  485. }
  486. };
  487. XFormsCell.prototype.getClientLeft = function (bCalcScroll)
  488. {
  489. var nClientLeft = 0;
  490. var heOffsetParent = this.m_heControl;
  491. while (null != heOffsetParent)
  492. {
  493. nClientLeft += heOffsetParent.offsetLeft;
  494. if (heOffsetParent != this.m_heControl ) nClientLeft += heOffsetParent.clientLeft;
  495. if (bCalcScroll && heOffsetParent != document.body) nClientLeft -= (is_android ? 0 : heOffsetParent.scrollLeft);
  496. heOffsetParent = heOffsetParent.offsetParent;
  497. }
  498. return nClientLeft;
  499. };
  500. XFormsCell.prototype.getClientTop = function (bCalcScroll)
  501. {
  502. var nClientTop = 0;
  503. var heOffsetParent = this.m_heControl;
  504. while (null != heOffsetParent)
  505. {
  506. nClientTop += heOffsetParent.offsetTop;
  507. if (heOffsetParent != this.m_heControl ) nClientTop += heOffsetParent.clientTop;
  508. if (bCalcScroll && heOffsetParent != document.body) nClientTop -= (is_android ? 0 : heOffsetParent.scrollTop);
  509. heOffsetParent = heOffsetParent.offsetParent;
  510. }
  511. return nClientTop;
  512. };
  513. XFormsCell.prototype.setFixedCheck = function (bCheck)
  514. {
  515. if (CIT_CHECK == this.m_objElement.getInputType())
  516. {
  517. var strValue = bCheck ? this.m_objElement.getTrueValue() : this.m_objElement.getFalseValue();
  518. this.setBoolState(bCheck);
  519. this.setText(strValue);
  520. }
  521. };
  522. XFormsCell.prototype.setFixedInputType = function (nStatus)
  523. {
  524. this.m_fixedInputType = nStatus;
  525. };
  526. XFormsCell.prototype.getFixedInputType = function ()
  527. {
  528. return this.m_fixedInputType;
  529. };
  530. XFormsCell.prototype.getLabel = function ()
  531. {
  532. return this.m_heControl.getAttribute("label");
  533. };
  534. XFormsCell.prototype.setLabel = function (strLabel)
  535. {
  536. return this.m_heControl.setAttribute("label", strLabel);
  537. };
  538. XFormsCell.prototype.setLabelChange = function (strLabel)
  539. {
  540. return this.m_heControl.innerHTML = strLabel;
  541. };
  542. XFormsCell.prototype.getValue = function ()
  543. {
  544. if (null != this.m_heControl)
  545. {
  546. return this.m_heControl.getAttribute("value");
  547. }
  548. else
  549. {
  550. return "";
  551. }
  552. };
  553. XFormsCell.prototype.setAttribute = function (strName, objValue)
  554. {
  555. XFormsAttribute.prototype.setAttribute.call(this, strName, objValue);
  556. switch (strName)
  557. {
  558. case "color":
  559. {
  560. if (this.m_heDataControl)
  561. {
  562. HtmlLib.setStyle(this.m_heDataControl,strName,objValue);
  563. }
  564. }
  565. }
  566. };
  567. XFormsCell.prototype.setValue = function (strValue)
  568. {
  569. return this.m_heControl.setAttribute("value", strValue);
  570. };
  571. XFormsCell.prototype.setMergeType = function (bStatus)
  572. {
  573. if (bStatus)
  574. {
  575. this.mergeType = CMS_NORMAL;
  576. }
  577. else
  578. {
  579. this.mergeType = CMS_LOCK;
  580. }
  581. };
  582. XFormsCell.prototype.setIndex = function (nIndex)
  583. {
  584. this.index = nIndex;
  585. };
  586. XFormsCell.prototype.getState = function ()
  587. {
  588. var nState = FCS_NORMAL;
  589. if (this.disable)
  590. {
  591. nState |= FCS_DISABLE;
  592. }
  593. if (this.m_bHover)
  594. {
  595. nState |= FCS_HOVER;
  596. }
  597. if (this.selected)
  598. {
  599. nState |= FCS_SELECT;
  600. }
  601. if (this.m_bFocus)
  602. {
  603. nState |= FCS_FOCUS;
  604. }
  605. if (this.down)
  606. {
  607. nState |= FCS_DOWN;
  608. }
  609. return nState;
  610. };
  611. XFormsCell.prototype.setExpand = function (nExpand)
  612. {
  613. // expand설정
  614. this.expanded = nExpand;
  615. };
  616. XFormsCell.prototype.getExpand = function ()
  617. {
  618. return this.expanded;
  619. };
  620. XFormsCell.prototype.haschilditem = function ()
  621. {
  622. return this.m_nChildNumber;
  623. };
  624. XFormsCell.prototype.setChecked = function (nChecked)
  625. {
  626. if (this.checked != nChecked)
  627. {
  628. this.checked = nChecked;
  629. var heCheck = document.getElementById("HE_" + this.id + "_check");
  630. if (null == heCheck)
  631. {
  632. return;
  633. }
  634. // IMG Tag를 가져온다.
  635. var heCheckIMG = null;
  636. for (var i=0; i<heCheck.childNodes.length; i++)
  637. {
  638. var heCheckIMG = heCheck.childNodes.item(i);
  639. if ("IMG" == heCheckIMG.nodeName)
  640. {
  641. break;
  642. }
  643. }
  644. if (null == heCheckIMG)
  645. {
  646. return;
  647. }
  648. // check 이미지 변경
  649. // check가 되었을 때
  650. if (1 == this.checked)
  651. {
  652. var strCheckImage = this.parent.getAttribute("checkimage");
  653. if ("" == strCheckImage || null == strCheckImage)
  654. {
  655. strCheckImage = __getAppName() + "/kr/comsquare/image/treeview/check.gif";
  656. }
  657. heCheckIMG.src = strCheckImage;
  658. }
  659. // check가 안되었을 때
  660. else
  661. {
  662. var strUnCheckImage = this.parent.getAttribute("uncheckimage");
  663. if ("" == strUnCheckImage || null == strUnCheckImage)
  664. {
  665. strUnCheckImage = __getAppName() + "/kr/comsquare/image/treeview/uncheck.gif";
  666. }
  667. heCheckIMG.src = strUnCheckImage;
  668. }
  669. }
  670. // var objElement = this.getElement();
  671. // if (null != objElement)
  672. // {
  673. // var nOriginChecked = objElement.getChecked();
  674. // if (nOriginChecked != nChecked)
  675. // {
  676. // objElement.setChecked(nChecked);
  677. // var heCheck = document.getElementById("HE_" + this.id + "_check");
  678. //
  679. // if (null == heCheck)
  680. // {
  681. // return;
  682. // }
  683. //
  684. // // IMG Tag를 가져온다.
  685. // var heCheckIMG = null;
  686. // for (var i=0; i<heCheck.childNodes.length; i++)
  687. // {
  688. // var heCheckIMG = heCheck.childNodes.item(i);
  689. // if ("IMG" == heCheckIMG.nodeName)
  690. // {
  691. // break;
  692. // }
  693. // }
  694. // if (null == heCheckIMG)
  695. // {
  696. // return;
  697. // }
  698. //
  699. // // checkbox의 image를 바꿔준다.
  700. // if (1 == nChecked)
  701. // {
  702. // var strCheckImage = this.parent.getAttribute("checkimage");
  703. // if ("" == strCheckImage || null == strCheckImage)
  704. // {
  705. // strCheckImage = __getAppName() + "/kr/comsquare/image/treeview/check.gif";
  706. // }
  707. // heCheckIMG.src = strCheckImage;
  708. // }
  709. // else
  710. // {
  711. // var strUnCheckImage = this.parent.getAttribute("uncheckimage");
  712. // if ("" == strUnCheckImage || null == strUnCheckImage)
  713. // {
  714. // strUnCheckImage = __getAppName() + "/kr/comsquare/image/treeview/uncheck.gif";
  715. // }
  716. // heCheckIMG.src = strUnCheckImage;
  717. // }
  718. // }
  719. // }
  720. };
  721. XFormsCell.prototype.getChecked = function ()
  722. {
  723. return this.checked;
  724. };