123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <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">
- <xhtml:head>
- <xhtml:title>서식미리보기뷰어</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <a/>
- <b/>
- <c/>
- <d/>
- <e>
- <a/>
- <b/>
- <c/>
- </e>
- <e>
- <a/>
- <b/>
- <c/>
- </e>
- <f>
- <a/>
- <b/>
- <c/>
- </f>
- <f>
- <a/>
- <b/>
- <c/>
- </f>
- </root>
- </instance>
- <!--AWT동작 관련 설정 시작 -->
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- alert('해당 소스에 기존에 들어있던 xforms-ready 이벤트 실행');
- ]]>
- </script>
- <!--AWT동작 관련 설정 끝 -->
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- </xhtml:head>
- <xhtml:body>
- <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; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- Rnd1 = Math.random();
- Rnd2 = Math.random();
- Rnd3 = Math.random();
- cColor = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
-
- button2.attribute("background-color") = cColor;
- ]]>
- </script>
- </textarea>
- <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>
- <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; "/>
- <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>
- <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>
- <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; ">
- <col ref="a"/>
- <col ref="b" type="input" style="background-color:#ffcc00; "/>
- <col ref="c" type="input" style="background-color:#ffcc00; "/>
- </datagrid>
- <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>
- <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>
- <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; ">
- <![CDATA[영->한(또는 한->영)으로 변환 후의 단어가 사전에 있는 경우에만 자동 변환됨]]>
- </caption>
- <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; ">
- <![CDATA[F2키를 누르면 현재 단어로 검색창이 열림]]>
- </caption>
- <button id="button1" style="left:35px; top:370px; width:172px; height:40px; ">
- <caption>
- <![CDATA[body에 원래 있던
- key up 이벤트(색상 바뀜)의 동작]]>
- </caption>
- </button>
- <button id="button2" style="left:415px; top:370px; width:180px; height:40px; ">
- <caption>
- <![CDATA[TextArea에 원래 있던
- key up 이벤트(색상바뀜) 동작함]]>
- </caption>
- </button>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- Rnd1 = Math.random();
- Rnd2 = Math.random();
- Rnd3 = Math.random();
- cColor = window.rgb( (255 - 1) * Rnd1 + 1, (255 - 1) * Rnd2 + 1 , (255 - 1) * Rnd3 + 1);
-
- button1.attribute("background-color") = cColor;
- ]]>
- </script>
- </xhtml:body>
- </xhtml:html>
|