Package com.rakaiz.tailorbills.view.thoub.spic

Examples of com.rakaiz.tailorbills.view.thoub.spic.ThoubSpicPanel


      e.printStackTrace();
    }
  }

  protected void doBtnAddSpicActionPerformed(final ActionEvent e) {
    ThoubSpicPanel spicPanel = new ThoubSpicPanel();
    spicPanel.addPropertyChangeListener(new PropertyChangeListener() {

      @Override
      public void propertyChange(PropertyChangeEvent evt) {
        CustomerThoubSpicTableModel model = (CustomerThoubSpicTableModel) thoubsTable
            .getModel();
        if ("add".equals(evt.getPropertyName()))
          model.addRow((DBObject) evt.getNewValue());

      }
    });
    spicPanel.processNewAction();
    ViewUtil.showDialog(spicPanel);
  }
View Full Code Here


  protected void doBtnEditSpicActionPerformed(final ActionEvent e) {
    CustomerThoubSpicTableModel model = (CustomerThoubSpicTableModel) thoubsTable
        .getModel();
    if (thoubsTable.getSelectedRow() > -1) {
      DBObject dbObject = model.getRow(thoubsTable.getSelectedRow());
      ThoubSpicPanel spicPanel = new ThoubSpicPanel();
      spicPanel.setDBObject(dbObject);
      ViewUtil.showDialog(spicPanel);
    }
  }
View Full Code Here

TOP

Related Classes of com.rakaiz.tailorbills.view.thoub.spic.ThoubSpicPanel

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.