Ejemplo n.º 1
0
  public void render(PrintWriter out) {
    out.write("<div id=\"" + getNodeID() + "\">");

    // display each section in the order specified in the configuration
    String section_order = Main.conf.getProperty("section_order");
    String[] items = section_order.split(",");
    for (String item : items) {
      item = item.trim();
      if (item.equals("income")) {
        incomeview.render(out);
      } else if (item.equals("budget")) {
        budgettingview.render(out);
      } else if (item.equals("expense")) {
        expenseview.render(out);
      } else if (item.equals("balance")) {
        balanceview.render(out);
      } else {
        logger.error(Labels.getHtmlEscapedString(MAV_MESSAGE_UNKNOWN_SECTION_ORDER, item));
      }
    }

    income_dialog.render(out);
    category_dialog.render(out);
    expense_dialog.render(out);
    deduction_dialog.render(out);
    removeincomedialog.render(out);
    removecategorydialog.render(out);

    out.write("</div>");
  }
Ejemplo n.º 2
0
 public void updateCategory(Category cat) {
   budgettingview.redraw();
   expenseview.redraw();
   balanceview.redraw();
 }
Ejemplo n.º 3
0
 public void updateIncomeView() {
   incomeview.redraw();
   budgettingview.redraw();
   balanceview.redraw();
 }
Ejemplo n.º 4
0
 public void removeIncome(Income in) {
   page.incomes.remove(in);
   incomeview.redraw();
   budgettingview.redraw();
   balanceview.redraw();
 }