Sample_Knuh.xrw 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>서식미리보기뷰어</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <a/>
  10. <b/>
  11. <c/>
  12. <d/>
  13. <e>
  14. <a/>
  15. <b/>
  16. <c/>
  17. </e>
  18. <e>
  19. <a/>
  20. <b/>
  21. <c/>
  22. </e>
  23. <f>
  24. <a/>
  25. <b/>
  26. <c/>
  27. </f>
  28. <f>
  29. <a/>
  30. <b/>
  31. <c/>
  32. </f>
  33. </root>
  34. </instance>
  35. <script type="javascript" ev:event="xforms-ready">
  36. <![CDATA[
  37. function AwtBrowser::DocumentComplete(pDISP, sURL) {
  38. AwtBrowser.document.parentWindow.AwtTFMain = window;
  39. alert("Init Awt Window");
  40. }
  41. ]]>
  42. </script>
  43. </model>
  44. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  48. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  49. </xhtml:head>
  50. <xhtml:body>
  51. <textarea id="MTX_3" ref="/root/d" navindex="1" editable="true" degnitemno="3" ctrltype="ctrl" editmenu="false" style="left:35px; top:200px; width:560px; height:120px; background-color:#ffcc00; border-style:sunken; cursor:auto; ">
  52. <script type="javascript" ev:event="onkeyup">
  53. <![CDATA[
  54. AwtSearchKnuh();
  55. ]]>
  56. </script>
  57. </textarea>
  58. <caption id="LBL_3" visibility="visible" degnitemno="3" ctrltype="label" editable="true" style="left:25px; top:180px; width:134px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; border-style:none; cursor:auto; ">TextArea</caption>
  59. <input id="STX_2" ref="/root/c" disabled="false" navindex="0" editable="true" style="left:35px; top:160px; width:560px; height:19px; background-color:#ffcc00; border-style:sunken; cursor:auto; ">
  60. <script type="javascript" ev:event="onkeypress">
  61. <![CDATA[
  62. AwtSearchKnuh();
  63. ]]>
  64. </script>
  65. </input>
  66. <caption id="LBL_39" visibility="visible" degnitemno="39" ctrltype="label" editable="true" style="left:10px; top:5px; width:345px; height:20px; font-weight:bold; vertical-align:middle; border-style:none; cursor:auto; "># AWT 변환 예제</caption>
  67. <caption id="caption1" visibility="visible" degnitemno="3" ctrltype="label" editable="true" style="left:25px; top:140px; width:134px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; border-style:none; cursor:auto; ">Input</caption>
  68. <datagrid id="datagrid2" nodeset="/root/f" caption="caption1^caption2^caption3" colsep="^" colwidth="100, 289, 128" mergecellsfixedrows="bycolrec" rowsep="|" style="left:35px; top:345px; width:560px; height:85px; ">
  69. <col ref="a"/>
  70. <col ref="b" type="input" style="background-color:#ffcc00; "/>
  71. <col ref="c" type="input" style="background-color:#ffcc00; "/>
  72. <script type="javascript" ev:event="onkeyup">
  73. <![CDATA[
  74. AwtSearchKnuh();
  75. ]]>
  76. </script>
  77. </datagrid>
  78. <caption id="caption5" visibility="visible" degnitemno="3" ctrltype="label" editable="true" style="left:25px; top:325px; width:134px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; border-style:none; cursor:auto; ">DataGrid</caption>
  79. <caption id="caption2" visibility="visible" degnitemno="39" ctrltype="label" editable="true" style="left:30px; top:20px; width:425px; height:30px; vertical-align:middle; border-style:none; cursor:auto; ">단어 입력 후 Space, Enter, ,(콤마), .(마침표), '(홑따옴표), "(쌍따옴표) 입력 (Tab키는 포커스 이동해버리므로 처리 않됨)</caption>
  80. <caption id="caption21" visibility="visible" degnitemno="39" ctrltype="label" editable="true" style="left:30px; top:45px; width:580px; height:20px; vertical-align:middle; border-style:none; cursor:auto; ">
  81. <![CDATA[영->한(또는 한->영)으로 변환 후의 단어가 사전에 있는 경우에만 자동 변환됨]]>
  82. </caption>
  83. <caption id="caption22" visibility="visible" degnitemno="39" ctrltype="label" editable="true" style="left:30px; top:60px; width:370px; height:20px; vertical-align:middle; border-style:none; cursor:auto; ">
  84. <![CDATA[F2키를 누르면 현재 단어로 검색창이 열림]]>
  85. </caption>
  86. <!--AWT동작 관련 설정 시작 -->
  87. <script type="javascript" src="../../../com/awtweb/js/awtKnuh.js"/>
  88. <group id="AwtGroup" visibility="hidden" style="left:285px; top:335px; width:210px; height:190px; background-color:#c0c0c0; ">
  89. <browser id="AwtBrowser" style="left:0px; top:0px; width:210px; height:190px; "/>
  90. </group>
  91. <!--AWT동작 관련 설정 끝 -->
  92. <caption id="caption3" visibility="visible" degnitemno="39" ctrltype="label" editable="true" style="left:30px; top:80px; width:565px; height:30px; font-weight:bold; color:#3366ff; vertical-align:middle; border-style:none; cursor:auto; ">
  93. <![CDATA[그리드에 검색창 적용하면 검색창을 여는 순간 그리드의 edit상태에서 벗어나버리는데]]>
  94. </caption>
  95. <caption id="caption7" visibility="visible" degnitemno="39" ctrltype="label" editable="true" style="left:30px; top:120px; width:565px; height:30px; color:#3366ff; vertical-align:middle; border-style:none; cursor:auto; ">
  96. <![CDATA[검색창을 LostFocus 이벤트 처리가 있는 항목에 적용시에는 주의할 것]]>
  97. </caption>
  98. <caption id="caption4" visibility="visible" degnitemno="39" ctrltype="label" editable="true" style="left:30px; top:95px; width:565px; height:30px; font-weight:bold; color:#3366ff; vertical-align:middle; border-style:none; cursor:auto; ">
  99. <![CDATA[강제로 편집모드로 진입하게 설정함 (편집창의 깜빡임이 발생]]>
  100. </caption>
  101. </xhtml:body>
  102. </xhtml:html>