public class PPayinfoTableModel extends AbstractTableModel
listenerList
Constructor and Description |
---|
PPayinfoTableModel(String[] columnNames,
Class[] colTypes,
int pageType) |
Modifier and Type | Method and Description |
---|---|
void |
clearData()
clears the model data
|
HashMap |
getBillInfoIdOpenBills()
returns the bill info names and whether the open bill amount is there for respective BU name map
|
Hashtable |
getBillUnitDetails()
returns the bill unit name and details of that bill unit map
|
Class |
getColumnClass(int column)
returns the class type of the column
|
int |
getColumnCount()
returns the column count of the table
|
String |
getColumnName(int column)
returns the column name of the table depending on the index of the column
|
String |
getCurrentAccountName()
gets the current account name
|
String |
getCurrentAccountNumber()
returns the current account's account number
|
int |
getCurrentAccountRowCount()
returns the current account's billunit count
|
int |
getRowCount()
returns the row count of the table
|
Object[][] |
getTotalTableStructure()
returns the total model of the table
|
Object |
getValueAt(int rowIndex,
int columnIndex)
returns the value from the model at given row and column index
|
boolean |
isCellEditable(int row,
int column) |
void |
setBillInfoIdOpenBills(HashMap map)
sets the bill info names and whether the open bill amount is there for respective BU name map
|
void |
setBillUnitDetails(Hashtable billUnitHash)
bill unit name and details of that bill unit map
|
void |
setCurrentAccountNumber(String acctNumber)
sets the current account's account number
|
void |
setCurrentAcctRowCountDetails(Object[][] currentAcct)
sets the current account details to the model
|
void |
setCurrentDataModel(Object[][] tableData)
updates the current account data to the model
|
void |
setHierarchyFlag(boolean flag)
set the hierarchy flag true if the account is in hierarchy
|
void |
setPageType(int pageType)
sets the page type, that is whether this model is for payment page, move hierarchy or view BU hierarchy
|
void |
setTotalTableStructure(Object[][] totalTableObj)
sets the total table model, that is apart current account, rest of the hierarchy data also set to the model
|
void |
updatePayType(int row,
int col,
String payType)
updates the data in the model for a given row and column index
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
public void setPageType(int pageType)
pageType
- int, 0 is for view hierarchy, 1 is move hierarchy and 2 is for payment pagepublic void setCurrentAcctRowCountDetails(Object[][] currentAcct)
currentAcct
- Object[][], current account datapublic int getCurrentAccountRowCount()
public String getCurrentAccountName()
public void setBillUnitDetails(Hashtable billUnitHash)
billUnitHash
- Hashtablepublic void setHierarchyFlag(boolean flag)
flag
- booleanpublic Hashtable getBillUnitDetails()
public void clearData()
public void setTotalTableStructure(Object[][] totalTableObj)
totalTableObj
- Object[][]public Object[][] getTotalTableStructure()
public boolean isCellEditable(int row, int column)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
row
- intcolumn
- intpublic int getColumnCount()
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- int, tells which column name has to be returnedpublic Class getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
column
- int, ells which column class type has to be returnedpublic int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- int, row indexcolumnIndex
- int, column indexpublic void updatePayType(int row, int col, String payType)
row
- int, row indexcol
- int, column indexpayType
- String the data to be updatedpublic void setCurrentDataModel(Object[][] tableData)
tableData
- Object[][], data to be set to the modelpublic void setBillInfoIdOpenBills(HashMap map)
map
- HashMappublic void setCurrentAccountNumber(String acctNumber)
public String getCurrentAccountNumber()
public HashMap getBillInfoIdOpenBills()
Copyright © 2003, 2023, Oracle and/or its affiliates.