<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>
      Using a custom form control appears to be a good solution. From
      your other email I see that you've already started to investigate
      this approach. A CSS selector is all you would need to control
      when the form control is presented:<br>
      <br>
      elem {<br>
      // Normal styles<br>
      }<br>
      <br>
      elem[attr] {<br>
          content: oxy_editor(...)<br>
      }<br>
      <br>
      We have some form controls samples in
      {OxygenInstallDir}/samples/form-controls. Although their use is
      not conditioned by an attribute value like you need you can easily
      change the CSS selectors to implement this behavior (like
      described above).<br>
      <br>
      The steps required to create and use 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 [1]<br>
      - bind the form control in the CSS as described in [3].<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/implementing-custom-form-controls.html">http://www.oxygenxml.com/doc/ug-editor/index.html#topics/implementing-custom-form-controls.html</a><br>
      <br>
      Best regards,<br>
      Alex<br>
      -- <br>
      Alex Jitianu<br>
      <oXygen/>  XML Editor, Schema Editor and XSLT
      Editor/Debugger<br>
      <a class="moz-txt-link-freetext" href="http://www.oxygenxml.com">http://www.oxygenxml.com</a> <br>
      <br>
      On 27-Feb-14 4:07 PM, Nathan wrote:<br>
    </div>
    <blockquote
cite="mid:CAAA7NDgfGMGDnBYyovqB1km6ZnjJKgKLZC9SDSAyWkT+0JUR6g@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi,
        <div>  I would like to create a Swing component which receives
          the current element, processes it through user interactions
          and returns a value which needs to be inserted back. I would
          like to trigger this using the Author API when a particular
          attribute value for the element is entered.</div>
        <div>  How would I go about doing this? If there is a sample
          available of something similar, I would love to take a look.</div>
        <div><br>
        </div>
        <div>Thanks!</div>
        <div>Nathan</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>