made canEnterValue and canClearValue public