public class DefaultEditorAreaValidateable extends AbstractValidatableContainer
DefaultEditorAreaControllerAbstractValidatableContainer.ValueObserverProxypreventBroadcastValidationChange| Constructor and Description |
|---|
DefaultEditorAreaValidateable(DefaultEditorAreaController controller,
org.zkoss.zk.ui.Component parent) |
| Modifier and Type | Method and Description |
|---|---|
protected ValidationFocusTransferHandler |
createFocusTransferHandler() |
org.zkoss.zk.ui.Component |
getContainer()
Container component
|
Object |
getCurrentObject(String path)
Gets a full object that was validated for specified violation path
|
String |
getCurrentObjectPath(String path)
Alters provided path (that comes from violation) so that is relative to current object
|
ValidationResult |
getCurrentValidationResult(String path)
Gets validation results of container related to provided path (relative to container).
|
boolean |
isRootPath(String path)
Checks whether provided path should be treated as root path.
|
boolean |
reactOnValidationChange(String path)
Checks whether this validatable container is able to process validation result change for given path.
|
addValidationObserver, addValidationObserver, getFocusTransfer, getRootPath, removeValidationObserver, setPreventBroadcastValidationChangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentValidationResult, reactOnValidationChangepublic DefaultEditorAreaValidateable(DefaultEditorAreaController controller, org.zkoss.zk.ui.Component parent)
public boolean isRootPath(String path)
ValidatableContainerAny validation path that matches containers restrictions, yet does not specify any particular attribute/qualifier (i.e. points exactly to one of validated objects) should be considered as root path. In general, if a path is validated by container or is a parent of validated path, but does not point any particular attribute, then it is a root path. Empty string should always be considered as root path, cause they are always a kind of parent of validated path.
true if path is validated by container (or is a parent path of such) and does not point any
attributepublic org.zkoss.zk.ui.Component getContainer()
ValidatableContainerpublic Object getCurrentObject(String path)
ValidatableContainerpath - path of violationnull if no object matches provided pathpublic String getCurrentObjectPath(String path)
ValidatableContainerpath - violation pathnull if path does not match any validated objectspublic ValidationResult getCurrentValidationResult(String path)
ValidatableContainerReturned container may be editable and notify listeners about changes. If a returned container is a wrapper of other container, then any changes made to the wrapper should be propagated to wrapped one and all listeners should be notified. It is not sure that changes made to wrapped one will be propagated to the wrapper. Also notifications of wrapped container may not be transferred to listeners of a wrapper.
ValidationResult.EMPTY if no violations found for specified pathprotected ValidationFocusTransferHandler createFocusTransferHandler()
createFocusTransferHandler in class AbstractValidatableContainerpublic boolean reactOnValidationChange(String path)
ValidatableContainerreactOnValidationChange in interface ValidatableContainerreactOnValidationChange in class AbstractValidatableContainerCopyright © 2018. All rights reserved.