3. How can I create my own custom XML
grammar?
You can manually specify
for each tag how to be handled - block, inline or empty tags.
Additionally you can manage the rendering of the block and inline
tags through style sheets and/or associate custom components and
actions to the empty tags.
sferyx.administration.editors.CustomXMLTagsGrammarSpecification.registerCustomXMLTag("my_empty_tag",true);
- will register empty tag
sferyx.administration.editors.CustomXMLTagsGrammarSpecification.registerCustomXMLTag("my_custom_block_tag",false);
- will register block tag
sferyx.administration.editors.CustomXMLTagsGrammarSpecification.registerEmptyCustomXMLTagComponentRepresentation
("my_empty_tag","MyCustomEmptyTag");
- will associate the class MyCustomEmptyTag with the
<my_emtpy_tag>. Additionally you can
add actions to MyCustomEmptyTag component. You can find the entire
example in the examples/custom tags folder in the demo version.
sferyx.administration.editors.CustomXMLTagsGrammarSpecification.registerCustomXMLTagRenderingType("my_custom_block_tag",
CustomXMLTagsGrammarSpecification.INLINE_TAG) - this will
cause the <my_custom_block_tag>
to be rendered as inline tag while the following method call
CustomXMLTagsGrammarSpecification.setTreatAllBlockTagsAsBlocks(true);
will cause all block tags to be rendered automatically as
blocks.
4. How can I provide custom rendering
for my XML tags?
Custom rendering for block tags can be
easily provided through style sheet definition for the relative tag name
or html class or id. For empty tags you can provide full components to
be used inside the document and also add entirely interactive
functionalities with this.
You can define a custom class for
rendering of empty tags like this:
sferyx.administration.editors.CustomXMLTagsGrammarSpecification.registerEmptyCustomXMLTagComponentRepresentation
("my_empty_tag","MyCustomEmptyTag");
where
my_empty_tag is the tag name and
MYCustomEmptyTag is the full classname for the rendering
component to be used
Our
Services and assistance
All Sferyx products are assured
with continuous e-mail support. With the retail products is included
in the price 30 days startup support. Additionally, you can purchase
annual support subscription tickets from our web store.
Sferyx offers also a wide
range of customization services for its products in order to satisfy
any customer requirement. We can adapt our products to fit the customer
needs and any kind of integration requirements. We execute also express
developments, customization under request, development of new features
on demand. You can request a quote at sales@sferyx.com
or support@sferyx.com indicating
your requirements and the terms of delivery.