If the built-in form controls are not sufficient for your needs, you can implement custom form controls in Java.
@attribute_name and
#text predefined values and Oxygen XML Author Eclipse plugin will perform the
commit logic by itself. You can use the custom value to perform the
commit logic yourself.ecHeavyFormControlClassName - This type of form control is effectively present at all times at its allocated bounds. This is useful if you need a form control that renders dynamic or interactive SVG documents (for example, if you have an SVG document that displays tooltips when hovering over certain areas).
The value of this property is a class name that must implement the
ro.sync.ecss.extensions.api.editor.InplaceHeavyEditor method.
The JAR that contains this
implementation can either be added in the Classpath tab in the Document Type
Configuration dialog box for your particular framework or specified with the
classpath property.
The SDK contains a sample of a
SimpleURLChooserEditor form control implementation.
The custom form controls can use any of the predefined properties of the built-in form controls, as well as specified custom properties.
myElement {
content: oxy_editor(
rendererClassName, "com.custom.editors.CustomRenderer",
swingEditorClassName, "com.custom.editors.SwingCustomEditor",
swtEditorClassName, "com.custom.editors.SwtCustomEditor",
edit, "@my_attr",
customProperty1, "customValue1",
customProperty2, "customValue2"
)
}For more information about form controls, watch our video demonstration: