I want to detect, from a FilterBuilder object, that it's criteria is in the cleared or not initialized state. How do I do that?
Initially the Filter is cleared with
filterBuilder.clearCriteria();
In some other click handler I want to detect if the Filter Builder is still empty or cleared state.
Do I have to write code
filterBuilder.getCriteria(false)
and then test that the component Criterion has a null value?
Is there not a
filterBuilder.getClearState()
call? True if clear, false if set? Or is this onus on me?
Initially the Filter is cleared with
filterBuilder.clearCriteria();
In some other click handler I want to detect if the Filter Builder is still empty or cleared state.
Do I have to write code
filterBuilder.getCriteria(false)
and then test that the component Criterion has a null value?
Is there not a
filterBuilder.getClearState()
call? True if clear, false if set? Or is this onus on me?
Comment