|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.cms.ui.util.UniqueStringValidationListener
Validates that the string value of the widget is unique.
| Field Summary | |
static String |
versionId
|
| Constructor Summary | |
UniqueStringValidationListener(com.arsdigita.bebop.form.Widget widget)
Constructor. |
|
UniqueStringValidationListener(com.arsdigita.bebop.form.Widget widget,
String errorMsg)
Constructor. |
|
| Method Summary | |
protected abstract boolean |
isUnique(com.arsdigita.bebop.PageState state,
String value)
Returns true if the string value is unique, false otherwise. |
void |
validate(com.arsdigita.bebop.event.FormSectionEvent event)
Ensure that the name of the item is unique by resolving the would-be URL of the item. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String versionId
| Constructor Detail |
public UniqueStringValidationListener(com.arsdigita.bebop.form.Widget widget)
public UniqueStringValidationListener(com.arsdigita.bebop.form.Widget widget,
String errorMsg)
widget - The form widgeterrorMsg - An error message| Method Detail |
public final void validate(com.arsdigita.bebop.event.FormSectionEvent event)
throws com.arsdigita.bebop.FormProcessException
validate in interface com.arsdigita.bebop.event.FormValidationListenerevent - The form section event
com.arsdigita.bebop.FormProcessException
protected abstract boolean isUnique(com.arsdigita.bebop.PageState state,
String value)
state - The page statevalue - The submitted string value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||