Fixed http://kenai.com/jira/browse/HENGSIN-8 - swing account viewer not working.

This commit is contained in:
Heng Sin Low 2010-11-22 14:30:04 +08:00
parent 4709b790a6
commit 6d2d70f7af
3 changed files with 14 additions and 14 deletions

View File

@ -28,14 +28,14 @@ import org.compiere.util.CLogger;
* *
* @author Jorg Janke * @author Jorg Janke
* @version $Id: RModel.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $ * @version $Id: RModel.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $
* *
* @author Teo Sarca, SC ARHIPAC SERVICE SRL * @author Teo Sarca, SC ARHIPAC SERVICE SRL
* <li>BF [ 1778373 ] AcctViewer: data is not sorted proper * <li>BF [ 1778373 ] AcctViewer: data is not sorted proper
*/ */
public class RModel implements Serializable public class RModel implements Serializable
{ {
/** /**
* *
*/ */
private static final long serialVersionUID = 1283407521250413019L; private static final long serialVersionUID = 1283407521250413019L;
@ -62,19 +62,19 @@ public class RModel implements Serializable
/** Logger */ /** Logger */
private static CLogger log = CLogger.getCLogger(RModel.class); private static CLogger log = CLogger.getCLogger(RModel.class);
/************************************************************************** /**************************************************************************
* Get Column Display Name * Get Column Display Name
* @param col * @param col
* @return RColumn * @return RColumn
*/ */
protected RColumn getRColumn (int col) public RColumn getRColumn (int col)
{ {
if (col < 0 || col > m_data.cols.size()) if (col < 0 || col > m_data.cols.size())
throw new java.lang.IllegalArgumentException("Column invalid"); throw new java.lang.IllegalArgumentException("Column invalid");
return (RColumn)m_data.cols.get(col); return (RColumn)m_data.cols.get(col);
} // getRColumn } // getRColumn
/** /**
* Get column by column name * Get column by column name
* @param columnName * @param columnName
@ -93,7 +93,7 @@ public class RModel implements Serializable
return null; return null;
} }
/************************************************************************** /**************************************************************************
* Add Column * Add Column
* @param rc * @param rc
@ -176,7 +176,7 @@ public class RModel implements Serializable
return -1; return -1;
} // getColumnIndex } // getColumnIndex
/************************************************************************** /**************************************************************************
* Query * Query
* @param ctx * @param ctx
@ -188,7 +188,7 @@ public class RModel implements Serializable
m_data.query (ctx, whereClause, orderClause); m_data.query (ctx, whereClause, orderClause);
} // query } // query
/************************************************************************** /**************************************************************************
* Set a group column * Set a group column
* @param columnName * @param columnName
@ -388,7 +388,7 @@ public class RModel implements Serializable
{ {
m_data.moveRow(from,to); m_data.moveRow(from,to);
} // moveRow } // moveRow
/** /**
* Returns the ArrayList of ArrayLists that contains the table's data values. * Returns the ArrayList of ArrayLists that contains the table's data values.
* The ArrayLists contained in the outer vector are each a single row of values. * The ArrayLists contained in the outer vector are each a single row of values.

View File

@ -41,7 +41,7 @@ import org.compiere.util.KeyNamePair;
* @author Jorg Janke * @author Jorg Janke
* @version $Id: RModelData.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $ * @version $Id: RModelData.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $
*/ */
class RModelData public class RModelData
{ {
/** /**
* Constructor. Use query method to populate data * Constructor. Use query method to populate data
@ -80,7 +80,7 @@ class RModelData
/** Logger */ /** Logger */
private static CLogger log = CLogger.getCLogger(RModelData.class); private static CLogger log = CLogger.getCLogger(RModelData.class);
/** /**
* Dispose * Dispose
*/ */
@ -351,7 +351,7 @@ class RModelData
m_rows.clear(); m_rows.clear();
} // process } // process
/************************************************************************** /**************************************************************************
* Is Row a Group Row * Is Row a Group Row
* @param row row index * @param row row index

View File

@ -27,10 +27,10 @@ import javax.swing.table.AbstractTableModel;
* @author Jorg Janke * @author Jorg Janke
* @version $Id: ResultTableModel.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $ * @version $Id: ResultTableModel.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $
*/ */
class ResultTableModel extends AbstractTableModel public class ResultTableModel extends AbstractTableModel
{ {
/** /**
* *
*/ */
private static final long serialVersionUID = 9197559914473854935L; private static final long serialVersionUID = 9197559914473854935L;