SPZUR09000_AWT 테스트.xrw 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. <!--AWT동작 관련 설정 시작 -->
  36. <script type="javascript" ev:event="xforms-ready">
  37. <![CDATA[
  38. alert('해당 소스에 기존에 들어있던 xforms-ready 이벤트 실행');
  39. ]]>
  40. </script>
  41. <!--AWT동작 관련 설정 끝 -->
  42. </model>
  43. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  44. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  45. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  46. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  47. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  48. </xhtml:head>
  49. <xhtml:body>
  50. <textarea id="MTX_3" ref="/root/d" navindex="1" editable="true" editmenu="false" degnitemno="3" ctrltype="ctrl" style="left:35px; top:135px; width:560px; height:120px; background-color:#ffcc00; border-style:sunken; cursor:auto; ">
  51. <script type="javascript" ev:event="onkeyup">
  52. <![CDATA[
  53. Rnd1 = Math.random();
  54. Rnd2 = Math.random();
  55. Rnd3 = Math.random();
  56. cColor = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
  57. button2.attribute("background-color") = cColor;
  58. ]]>
  59. </script>
  60. </textarea>
  61. <caption id="LBL_3" visibility="visible" degnitemno="3" ctrltype="label" editable="true" style="left:25px; top:115px; width:134px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; border-style:none; cursor:auto; ">TextArea</caption>
  62. <input id="STX_2" ref="/root/c" disabled="false" navindex="0" editable="true" style="left:35px; top:95px; width:560px; height:19px; background-color:#ffcc00; border-style:sunken; cursor:auto; "/>
  63. <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>
  64. <caption id="caption1" visibility="visible" degnitemno="3" ctrltype="label" editable="true" style="left:25px; top:75px; width:134px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; border-style:none; cursor:auto; ">Input</caption>
  65. <datagrid id="datagrid2" nodeset="/root/f" caption="caption1^caption2^caption3" colsep="^" colwidth="100, 289, 128" mergecellsfixedrows="bycolrec" rowsep="|" style="left:35px; top:280px; width:560px; height:85px; ">
  66. <col ref="a"/>
  67. <col ref="b" type="input" style="background-color:#ffcc00; "/>
  68. <col ref="c" type="input" style="background-color:#ffcc00; "/>
  69. </datagrid>
  70. <caption id="caption5" visibility="visible" degnitemno="3" ctrltype="label" editable="true" style="left:25px; top:260px; width:134px; height:20px; font-weight:bold; color:#ff0000; vertical-align:middle; border-style:none; cursor:auto; ">DataGrid</caption>
  71. <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>
  72. <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; ">
  73. <![CDATA[영->한(또는 한->영)으로 변환 후의 단어가 사전에 있는 경우에만 자동 변환됨]]>
  74. </caption>
  75. <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; ">
  76. <![CDATA[F2키를 누르면 현재 단어로 검색창이 열림]]>
  77. </caption>
  78. <button id="button1" style="left:35px; top:370px; width:172px; height:40px; ">
  79. <caption>
  80. <![CDATA[body에 원래 있던
  81. key up 이벤트(색상 바뀜)의 동작]]>
  82. </caption>
  83. </button>
  84. <button id="button2" style="left:415px; top:370px; width:180px; height:40px; ">
  85. <caption>
  86. <![CDATA[TextArea에 원래 있던
  87. key up 이벤트(색상바뀜) 동작함]]>
  88. </caption>
  89. </button>
  90. <script type="javascript" ev:event="onkeyup">
  91. <![CDATA[
  92. Rnd1 = Math.random();
  93. Rnd2 = Math.random();
  94. Rnd3 = Math.random();
  95. cColor = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
  96. button1.attribute("background-color") = cColor;
  97. ]]>
  98. </script>
  99. </xhtml:body>
  100. </xhtml:html>