Class PPayInfoTableSheet

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class PPayInfoTableSheet extends JTable

Title: PBillUnitTableSheet

Description: Common table for Payment page, View Hierarchy and move hierarchy, if correct data is passed this class will take care of populating the data into the table and combo box and provides the relation-ship between the columns

Renderer and editor have been added from this class this render and editor has been taken care to show JLabel, JCoboBox and link classes. if some other classes have sent as a parameters to the constructor, then an implimentaion has to be provided by the developer.

Copyright: Copyright (c) 2005

Company: Portal India

Version:
1.0
Author:
Savitha T.M, Ramaprasad
See Also:
  • Constructor Details

    • PPayInfoTableSheet

      public PPayInfoTableSheet(String[] colNames, Class[] colTypes, int pagetype)
      creates an instance of payinfo model and sets the model to the table
      Parameters:
      colNames - String[], column names
      colTypes - Class[], column class types
      pagetype - int, this will give the info about which from which page this has been called from
  • Method Details

    • setTableData

      public void setTableData(Object[][] tableData)
      sets the data for the table, sets the
      Parameters:
      tableData - Object[][]
    • setPayInfoComboModel

      public void setPayInfoComboModel(Vector payType, int colIndex)
      sets the data to the combobox
      Parameters:
      payType - Vector, the data of the combobox
      colIndex - int, this is will tell which combo box the data has to be set to.
    • replacePayInfoComboData

      public void replacePayInfoComboData(Vector element, int colIndex)
      replaces the the data in the combobox with the new data
      Parameters:
      colIndex - int, this is will tell which combo box the data has to be set to.
      payType - Vector, the data of the combobox