|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.syntax.internal.DefaultValidationRule
public class DefaultValidationRule
Validation rule for text area's commands. Verifies if a specific command can be executed on the current state of the given text area.
| Constructor Summary | |
|---|---|
DefaultValidationRule(java.lang.String feature,
Command command)
|
|
| 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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultValidationRule(java.lang.String feature,
Command command)
| Method Detail |
|---|
public boolean areValid(XRichTextArea textArea)
areValid in interface ValidationRuletextArea - The text area whose current state should be considered.
ValidationRule.areValid(XRichTextArea)public java.lang.String[] getFeatures()
getFeatures in interface ValidationRuleValidationRule.getFeatures()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||