Package com.crappycomic.solarquest.model

Examples of com.crappycomic.solarquest.model.RuleSet


   RuleSet getRuleSet()
   {
      if (!ok)
         return null;
     
      RuleSet ruleSet = new RuleSet();
     
      for (Map.Entry<Rule<?>, Object> entry : rules.entrySet())
      {
         switch (entry.getKey().getType())
         {
            case INTEGER:
               ruleSet.setValue(entry.getKey(), ((JSpinner)entry.getValue()).getValue().toString());
               break;
            case BOOLEAN:
            case TRANSACTION_AVAILABILITY:
            case RED_SHIFT_ROLL_TYPE:
               ruleSet.setValue(entry.getKey(), ((JComboBox)entry.getValue()).getSelectedItem().toString());
               break;
         }
      }
     
      return ruleSet;
View Full Code Here


   RuleSet getRuleSet()
   {
      if (!ok)
         return null;
     
      RuleSet ruleSet = new RuleSet();
     
      for (Map.Entry<Rule<?>, Object> entry : rules.entrySet())
      {
         switch (entry.getKey().getType())
         {
            case INTEGER:
               ruleSet.setValue(entry.getKey(), ((JSpinner)entry.getValue()).getValue().toString());
               break;
            case BOOLEAN:
            case TRANSACTION_AVAILABILITY:
            case RED_SHIFT_ROLL_TYPE:
               ruleSet.setValue(entry.getKey(), ((JComboBox)entry.getValue()).getSelectedItem().toString());
               break;
         }
      }
     
      return ruleSet;
View Full Code Here

TOP

Related Classes of com.crappycomic.solarquest.model.RuleSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.