title: lots of boolean flag inputs to a class
body: <p>I have a dialog that displays various things depending on state of the application, security for the current user etc.
  I am currently passing in several boolean flags and then enabling and/or hiding UI components depending on these flags.Eg:</p>
  
  <pre><code>new MyDialog(showOptionsTable, allowFooInput, allowBarInput, isSuperUser) 
  </code></pre>
  
  <p>Initially this started out as a couple of flags and that was fine. But now with changing requirements, it has evolved into an input of five boolean flags.</p>
  
  <p>What is the best practices way of handling behavior like this? Is this something that I should subclass depending on how the dialog should look?</p>