Class ExpressionDrivenStringValue

    • Constructor Detail

      • ExpressionDrivenStringValue

        protected ExpressionDrivenStringValue​(@Nonnull
                                              java.lang.Object lock,
                                              @Nonnull
                                              PerspectiveExpression expr,
                                              @Nonnull
                                              java.lang.Runnable valueChangedCallback)
    • Method Detail

      • isValidValue

        protected boolean isValidValue​(QualifiedValue value)
        Description copied from class: ExpressionDrivenValue
        This method is called when a new value is emitted from the expression. If the value passes validation, the value is set, dirty bits are set, and the callback is notified. If the value does not pass validation, nothing happens and a debug message is logged.
        Specified by:
        isValidValue in class ExpressionDrivenValue<java.lang.String>
        Parameters:
        value - the latest value emitted from the expression
        Returns:
        true if the value passes validation, false otherwise