From 6d2d70f7afd0d699bb87f7615d45ac2de5ddb06c Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Mon, 22 Nov 2010 14:30:04 +0800 Subject: [PATCH] Fixed http://kenai.com/jira/browse/HENGSIN-8 - swing account viewer not working. --- .../src/org/compiere/report/core/RModel.java | 18 +++++++++--------- .../org/compiere/report/core/RModelData.java | 6 +++--- .../compiere/report/core/ResultTableModel.java | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/org.adempiere.base/src/org/compiere/report/core/RModel.java b/org.adempiere.base/src/org/compiere/report/core/RModel.java index bdadc419a4..a52206b5bc 100644 --- a/org.adempiere.base/src/org/compiere/report/core/RModel.java +++ b/org.adempiere.base/src/org/compiere/report/core/RModel.java @@ -28,14 +28,14 @@ import org.compiere.util.CLogger; * * @author Jorg Janke * @version $Id: RModel.java,v 1.2 2006/07/30 00:51:06 jjanke Exp $ - * + * * @author Teo Sarca, SC ARHIPAC SERVICE SRL *
  • BF [ 1778373 ] AcctViewer: data is not sorted proper */ public class RModel implements Serializable { /** - * + * */ private static final long serialVersionUID = 1283407521250413019L; @@ -62,19 +62,19 @@ public class RModel implements Serializable /** Logger */ private static CLogger log = CLogger.getCLogger(RModel.class); - + /************************************************************************** * Get Column Display Name * @param col * @return RColumn */ - protected RColumn getRColumn (int col) + public RColumn getRColumn (int col) { if (col < 0 || col > m_data.cols.size()) throw new java.lang.IllegalArgumentException("Column invalid"); return (RColumn)m_data.cols.get(col); } // getRColumn - + /** * Get column by column name * @param columnName @@ -93,7 +93,7 @@ public class RModel implements Serializable return null; } - + /************************************************************************** * Add Column * @param rc @@ -176,7 +176,7 @@ public class RModel implements Serializable return -1; } // getColumnIndex - + /************************************************************************** * Query * @param ctx @@ -188,7 +188,7 @@ public class RModel implements Serializable m_data.query (ctx, whereClause, orderClause); } // query - + /************************************************************************** * Set a group column * @param columnName @@ -388,7 +388,7 @@ public class RModel implements Serializable { m_data.moveRow(from,to); } // moveRow - + /** * 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. diff --git a/org.adempiere.base/src/org/compiere/report/core/RModelData.java b/org.adempiere.base/src/org/compiere/report/core/RModelData.java index 28680061cf..dbf2e14181 100644 --- a/org.adempiere.base/src/org/compiere/report/core/RModelData.java +++ b/org.adempiere.base/src/org/compiere/report/core/RModelData.java @@ -41,7 +41,7 @@ import org.compiere.util.KeyNamePair; * @author Jorg Janke * @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 @@ -80,7 +80,7 @@ class RModelData /** Logger */ private static CLogger log = CLogger.getCLogger(RModelData.class); - + /** * Dispose */ @@ -351,7 +351,7 @@ class RModelData m_rows.clear(); } // process - + /************************************************************************** * Is Row a Group Row * @param row row index diff --git a/org.adempiere.base/src/org/compiere/report/core/ResultTableModel.java b/org.adempiere.base/src/org/compiere/report/core/ResultTableModel.java index fce6847f9b..fcf2b11faa 100644 --- a/org.adempiere.base/src/org/compiere/report/core/ResultTableModel.java +++ b/org.adempiere.base/src/org/compiere/report/core/ResultTableModel.java @@ -27,10 +27,10 @@ import javax.swing.table.AbstractTableModel; * @author Jorg Janke * @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;