org.xwiki.gwt.wysiwyg.client.syntax
Interface ValidationRule
- All Known Implementing Classes:
- ImageSelectionBehaviourRule
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.
- Version:
- $Id: dc649e7b8474cfa8f119ed54f69938f7f175a93f $
|
Method Summary |
boolean |
areValid(RichTextArea textArea)
Verifies if the underlying features of this rule should be enabled considering the current state of the given
text area. |
String[] |
getFeatures()
|
getFeatures
String[] getFeatures()
- Returns:
- The features this rule is referring to.
areValid
boolean areValid(RichTextArea 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-2013 XWiki. All Rights Reserved.