Hi there. I'm trying my best to figure out a succinct, straightforward widget, using standard UI widgets available in any toolkit (e.g., checkboxes, radio buttons, or listboxes), that could model a true/false/null value.
Why am I trying to do this? I'm storing a tree in a database (go ahead, criticise me for storing hierarchical information in a relational store) and the simple inheritance model is that if something doesn't have a value, it defaults to its parent's value.
What I have right now is two checkboxes:
[ ] Can custom-order [ ] default (currently yes)
Checking 'default' will disable the first checkbox. Does that make sense though? I thought of another widget, which uses less scripting:
Can custom order: ( ) yes ( ) no ( ) default (currently yes)
Which makes more sense to you? I'm starting to lean more towards the second. And if anyone has any other suggestions, I'd be grateful!