Package com.clowtown.mealplanner.policy

Examples of com.clowtown.mealplanner.policy.MenuPolicy


 
  public Item(Category category, String name, PolicyEnum[] pols) {
    super();
    this.category = category;
    this.name = name;
    policy = new MenuPolicy(pols);
  }
View Full Code Here


    Category c = new Category();
    c.build(t.nextToken());
    this.category = c;
   
    name = t.nextToken();
    MenuPolicy p = new MenuPolicy();
    p.build(t.nextToken());
    this.policy = p;
    try {
      String token = t.nextToken();
      this.lastServedDate = new Date(token);//DateFormat.getInstance().parse(token);
    } catch (Exception e) {
View Full Code Here

 
  protected JDialog getDialog(){
    return dialog;
  }
  public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
    MenuPolicy p = ((MenuPolicy)table.getModel().getValueAt(row, column));
    dialog = new MenuPolicyChooserDialog((Frame)dialog.getOwner(),p.getSeasons(),p.getFrequency(),this);
    return button;
  }
View Full Code Here

         System.out.println(arg0.getActionCommand());
    if("OK".equalsIgnoreCase(arg0.getActionCommand())){
      Frequency f = dialog.getChosenFrequency();
      ArrayList<Season> s = dialog.getChosenSeasons();
      PolicyEnum[] pe = s.toArray(new PolicyEnum[]{});
      p = new MenuPolicy(pe);
      p.editPolicy(MenuPolicy.ADD, f);
      fireEditingStopped();
      dialog.setVisible(false);
    }
    else if ("Reset".equalsIgnoreCase(arg0.getActionCommand())){
View Full Code Here

TOP

Related Classes of com.clowtown.mealplanner.policy.MenuPolicy

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.