com.xpn.xwiki.wysiwyg.client.syntax
Interface ValidationRule
- All Known Implementing Classes:
- DefaultValidationRule, DisableIndentOutsideList, DisableListInHeader, DisablingRule
public interface ValidationRule
A validation rule states that some of the editor's features (like 'bold', 'indent' etc.) should not be enabled when
the text area is in a specific state.
|
Method Summary |
boolean |
areValid(XRichTextArea textArea)
Verifies if the underlying features of this rule should be enabled considering the current state of the given
text area. |
java.lang.String[] |
getFeatures()
|
getFeatures
java.lang.String[] getFeatures()
- Returns:
- The features this rule is referring to.
areValid
boolean areValid(XRichTextArea textArea)
- Verifies if the underlying features of this rule should be enabled considering the current state of the given
text area.
- Parameters:
textArea - The text area whose current state should be considered.
- Returns:
- true if all the underlying features should be enabled, false otherwise.
Copyright © 2004-2008 XWiki. All Rights Reserved.