<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      The SimpleURLChooserEditor example in the SDF is the Java
      implementation of a sample form control. It is not used in the SDF
      project, however you can write a simple CSS file to add it on some
      element like this:<br>
      <br>
      myElement {<br>
          content: oxy_editor(<br>
              rendererClassName,
      "ro.sync.ecss.extensions.commons.editor.SimpleURLChooserEditor",<br>
              swingEditorClassName,
      "ro.sync.ecss.extensions.commons.editor.SimpleURLChooserEditor",<br>
              edit, "@my_attr",<br>
              columns, 20<br>
          )<br>
      }<br>
      <br>
      The SimpleURLChooserEditor is present in Oxygen's classpath and so
      the previous CSS is all you need. If you implement your own custom
      form control there is one additional step to be performed: you
      must pack it inside a JAR file and add it in the framework's
      classpath [1].<br>
      <br>
      The steps required for a custom form controls are:<br>
      - download the authorSDK [2] <br>
      - implement the custom form control by extending
      ro.sync.ecss.extensions.api.editor.InplaceEditorRendererAdapter.
      You can also take a look at
      ro.sync.ecss.extensions.api.editor.AbstractInplaceEditor (it
      offers some default implementations and some listeners management)<br>
      - pack the previous implementation in a JAR<br>
      - go to Oxygen and add the JAR inside the Classpath tab of the
      framework [3]<br>
      - bind the form control in the CSS as described both in [4] and
      also above.<br>
      <br>
      [1]
      <a class="moz-txt-link-freetext"
href="http://www.oxygenxml.com/doc/ug-editor/index.html#topics/document-type-classpath-tab.html">http://www.oxygenxml.com/doc/ug-editor/index.html#topics/document-type-classpath-tab.html</a><br>
      [2]
      <a class="moz-txt-link-freetext" href="http://oxygenxml.com/download_sdk.html?file=oxygenAuthorSDK.zip">http://oxygenxml.com/download_sdk.html?file=oxygenAuthorSDK.zip</a><br>
      [3]
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/doc/ug-editor/index.html#topics/document-type-classpath-tab.html">http://www.oxygenxml.com/doc/ug-editor/index.html#topics/document-type-classpath-tab.html</a><br>
      [4]
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/doc/ug-editor/index.html#topics/implementing-custom-form-controls.html">http://www.oxygenxml.com/doc/ug-editor/index.html#topics/implementing-custom-form-controls.html</a><br>
      <pre class="moz-signature" cols="72">Best regards,
Alex
-- 
Alex Jitianu
<oXygen/>  XML Editor, Schema Editor and XSLT Editor/Debugger
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> </pre>
      On 27-Feb-14 8:00 PM, Nathan wrote:<br>
    </div>
    <blockquote
cite="mid:CAAA7NDgpNBczLK4_MpzFpAcJ7LRH8WQc-7tiHtt+BT-=RLrqpg@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div>  I am trying to implement a custom form control and I see
          that the samples of the SDF contains the java source of the <span
style="color:rgb(0,0,0);font-family:arial,helvetica,verdana;font-size:13px;line-height:18px">SimpleURLChooserEditor. </span></div>
        <div><span
style="color:rgb(0,0,0);font-family:arial,helvetica,verdana;font-size:13px;line-height:18px"> 
            However, I don't see anything in the SDF css calling it like
            it mentions in the dev guide - "</span><font color="#000000"
            face="arial, helvetica, verdana"><span
              style="line-height:18px"><a moz-do-not-send="true"
href="http://www.oxygenxml.com/doc/ug-editor/topics/implementing-custom-form-controls.html">http://www.oxygenxml.com/doc/ug-editor/topics/implementing-custom-form-controls.html</a>". </span></font></div>
        <div><font color="#000000" face="arial, helvetica, verdana"><span
              style="line-height:18px">I saw the blog post at "<a
                moz-do-not-send="true" href="http://blog.oxygenxml.com/">http://blog.oxygenxml.com/</a>"
              but that did not clarify things for me. </span></font></div>
        <div><font color="#000000" face="arial, helvetica, verdana"><span
              style="line-height:18px">  It would be great if I could
              get step-by-step instructions on how to do this.</span></font></div>
        <div><font color="#000000" face="arial, helvetica, verdana"><span
              style="line-height:18px"><br>
            </span></font></div>
        <div><font color="#000000" face="arial, helvetica, verdana"><span
              style="line-height:18px">Thanks,</span></font></div>
        <div><font color="#000000" face="arial, helvetica, verdana"><span
              style="line-height:18px">Nathan</span></font></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
oXygen-sdk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:oXygen-sdk@oxygenxml.com">oXygen-sdk@oxygenxml.com</a>
<a class="moz-txt-link-freetext" href="http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk">http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>