|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SyntaxValidator
A syntax validator ensures that the XHTML code generated by the editor can be converted without loss of information to the underlying syntax. it does this by restricting the user actions (UI features) when they can generate XHTML constructs that don't have a correspondent in the underlying syntax.
| Method Summary | |
|---|---|
void |
addValidationRule(ValidationRule rule)
Adds a new validation rule to the list of rules this syntax validator obeys. |
java.lang.String |
getSyntax()
|
boolean |
isValid(java.lang.String feature,
RichTextArea textArea)
Verifies if a specific feature of the editor should be enabled, considering the current list of validation rules and the current state of the given text area. |
void |
removeValidationRule(ValidationRule rule)
Removes the specified rule from the list of validation rules this syntax validator obeys. |
| Method Detail |
|---|
void addValidationRule(ValidationRule rule)
rule - The validation rule to be added.
boolean isValid(java.lang.String feature,
RichTextArea textArea)
feature - The feature to be tested.textArea - The text area whose current state should be considered.
void removeValidationRule(ValidationRule rule)
rule - The validation rule to be removed.java.lang.String getSyntax()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||