Creating custom form controls
Posted: Thu Jun 04, 2015 4:13 pm
Hello,
I have been investigating the built in form controls that can be provided via css to the Oxygen Author users. However, I wish to replace an entire set of elements by a custom form that my users can fill out. The nature of the data being selected makes it impossible to do just with CSS. Consequently, I want to create a customr form control as described here: https://www.oxygenxml.com/doc/versions/ ... trols.html
I already have a development environment setup in eclipse and have a plugin that provides toolbar functionality available for debugging.
After reading the section and looking at other examples on the forum, I realize I need to create two classes: ro.sync.ecss.extensions.api.editor.InplaceRenderer and a ro.sync.ecss.extensions.api.editor.InplaceEditor. I don't understand what the difference is between these two classes and what they are supposed to be doing. I know that the InplaceEditor provides the custom form object that the user interacts with, as seen in this example: http://www.oxygenxml.com/forum/post3053 ... ols#p30533.
However, what is the purpose of the InplaceRenderer? How would I go about setting up a custom form control that would fill out an entire structure? Are there any examples that show how a more complex custom form is created? Thank you for all your help.
Sincerely,
Dirk
I have been investigating the built in form controls that can be provided via css to the Oxygen Author users. However, I wish to replace an entire set of elements by a custom form that my users can fill out. The nature of the data being selected makes it impossible to do just with CSS. Consequently, I want to create a customr form control as described here: https://www.oxygenxml.com/doc/versions/ ... trols.html
I already have a development environment setup in eclipse and have a plugin that provides toolbar functionality available for debugging.
After reading the section and looking at other examples on the forum, I realize I need to create two classes: ro.sync.ecss.extensions.api.editor.InplaceRenderer and a ro.sync.ecss.extensions.api.editor.InplaceEditor. I don't understand what the difference is between these two classes and what they are supposed to be doing. I know that the InplaceEditor provides the custom form object that the user interacts with, as seen in this example: http://www.oxygenxml.com/forum/post3053 ... ols#p30533.
However, what is the purpose of the InplaceRenderer? How would I go about setting up a custom form control that would fill out an entire structure? Are there any examples that show how a more complex custom form is created? Thank you for all your help.
Sincerely,
Dirk