public abstract class AbstractValidatableContainer extends Object implements ValidatableContainer
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractValidatableContainer.ValueObserverProxy |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
preventBroadcastValidationChange |
| Constructor and Description |
|---|
AbstractValidatableContainer(Observable model,
String rootPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValidationObserver(String key,
ValueObserver observer)
Registers a new observer for validation results of container for specified path and all its children
|
void |
addValidationObserver(ValueObserver observer)
Registers a new observer for validation results of container
|
protected abstract ValidationFocusTransferHandler |
createFocusTransferHandler() |
ValidationFocusTransferHandler |
getFocusTransfer()
Gets an object that is able to transfer focus between fields on basis of their paths.
|
protected ObjectValuePath |
getRootPath() |
boolean |
reactOnValidationChange(String path)
Checks whether this validatable container is able to process validation result change for given path.
|
void |
removeValidationObserver(ValueObserver observer)
Unregisters a new observer for validation results of container
|
void |
setPreventBroadcastValidationChange(boolean preventBroadcastValidationChange)
Prevents validation container to not delegate validation change further.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContainer, getCurrentObject, getCurrentObjectPath, getCurrentValidationResult, getCurrentValidationResult, isRootPath, reactOnValidationChangepublic AbstractValidatableContainer(Observable model, String rootPath)
public void addValidationObserver(ValueObserver observer)
ValidatableContaineraddValidationObserver in interface ValidatableContainerobserver - observer to be notifiedpublic void addValidationObserver(String key, ValueObserver observer)
ValidatableContaineraddValidationObserver in interface ValidatableContainerkey - validation path to be observedobserver - observer to be notifiedpublic void removeValidationObserver(ValueObserver observer)
ValidatableContainerremoveValidationObserver in interface ValidatableContainerobserver - observer not to be notifiedprotected abstract ValidationFocusTransferHandler createFocusTransferHandler()
public ValidationFocusTransferHandler getFocusTransfer()
ValidatableContainergetFocusTransfer in interface ValidatableContainerpublic void setPreventBroadcastValidationChange(boolean preventBroadcastValidationChange)
ValidatableContainersetPreventBroadcastValidationChange in interface ValidatableContainerpublic boolean reactOnValidationChange(String path)
ValidatableContainerreactOnValidationChange in interface ValidatableContainerprotected ObjectValuePath getRootPath()
Copyright © 2018. All rights reserved.