com.vaadin.signals.
Class SignalUtils
Utility class for accessing/using signals internal API.
Note: This is internal API for Vaadin platform's internal usages. It is not intended for public use and may change or be removed in future releases.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isValid
(Signal<?> signal, SignalCommand command) Checks whether the given command is considered valid by the validator instance of the provided signal.
static SignalTree
Returns the underlying
SignalTree
instance of the given signal.
-
Constructor Details
-
SignalUtils
public SignalUtils()
-
-
Method Details
-
treeOf
Returns the underlying
SignalTree
instance of the given signal.Parameters:
signal
- the signal to get the tree of, notnull
Returns:
the signal tree instance, not
null
-
isValid
Checks whether the given command is considered valid by the validator instance of the provided signal. In case of composite commands such as transactions, this method will recursively check the validity of all commands in the transaction.
Note: This only checks the validity of the commands that might make changes to the data.
Parameters:
signal
- the signal to check the command against, notnull
command
- the command to check, notnull
Returns:
true
if the command is valid,false
otherwise
-