|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.report.core.RModel
public class RModel
Report Model. Data is maintained in RModelData
| Field Summary | |
|---|---|
static String |
FUNCTION_COUNT
Function: Count |
static String |
FUNCTION_SUM
Function: Sum |
static String |
TABLE_ALIAS
Table Alias for SQL |
| Constructor Summary | |
|---|---|
RModel(String TableName)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addColumn(RColumn rc)
Add Column |
void |
addColumn(RColumn rc,
int index)
Add Column at Index |
void |
addRow()
Add Row |
void |
addRow(ArrayList<Object> l)
Add Row |
void |
addRow(ArrayList<Object> l,
int index)
Add Row at Index |
void |
addRow(int index)
Add Row at Index |
Class |
getColumnClass(int col)
Get Column Class |
int |
getColumnCount()
Get total number of columns |
int |
getColumnIndex(String columnName)
Find index for ColumnName |
String |
getColumnName(int col)
Get Column Display Name |
protected RColumn |
getRColumn(int col)
Get Column Display Name |
RColumn |
getRColumn(String columnName)
Get column by column name |
int |
getRowCount()
Return Total mumber of rows |
protected ArrayList<ArrayList<Object>> |
getRows()
Returns the ArrayList of ArrayLists that contains the table's data values. |
Object |
getValueAt(int row,
int col)
Get Value At |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Is Cell Editable |
boolean |
isGroupRow(int row)
Is Row a Group Row |
void |
moveRow(int from,
int to)
Move Row |
void |
query(Properties ctx,
String whereClause,
String orderClause)
Query |
void |
setFunction(int col,
String function)
Set Group Function - for the column, set a function like FUNCTION_SUM, FUNCTION_COUNT, ... |
void |
setFunction(String columnName,
String function)
Set Group Function |
void |
setGroup(int col)
Set a group column - if the group value changes, a new row in inserted performing the calculations set in setGroupFunction(). |
void |
setGroup(String columnName)
Set a group column |
void |
setValueAt(Object aValue,
int row,
int col)
Set Value At |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String TABLE_ALIAS
public static final String FUNCTION_COUNT
public static final String FUNCTION_SUM
| Constructor Detail |
|---|
public RModel(String TableName)
TableName - | Method Detail |
|---|
protected RColumn getRColumn(int col)
col -
public RColumn getRColumn(String columnName)
columnName -
public void addColumn(RColumn rc)
rc -
public void addColumn(RColumn rc,
int index)
rc - index - public void addRow()
public void addRow(int index)
index - public void addRow(ArrayList<Object> l)
l -
public void addRow(ArrayList<Object> l,
int index)
l - index - public int getColumnIndex(String columnName)
columnName -
public void query(Properties ctx,
String whereClause,
String orderClause)
ctx - whereClause - orderClause - public void setGroup(String columnName)
columnName - public void setGroup(int col)
A AA 1 A AB 2 B BA 3 B BB 4 after setGroup (0) A AA 1 A AB 2 A B BA 3 B BB 4 B
col - The Group BY Columnpublic boolean isGroupRow(int row)
row - index
public void setFunction(String columnName,
String function)
columnName - function -
public void setFunction(int col,
String function)
col - The column on which the function is performedfunction - The functionpublic int getRowCount()
public int getColumnCount()
public String getColumnName(int col)
col - index
public Class getColumnClass(int col)
col - index
public boolean isCellEditable(int rowIndex,
int columnIndex)
rowIndex - columnIndex -
public Object getValueAt(int row,
int col)
row - col -
public void setValueAt(Object aValue,
int row,
int col)
aValue - row - col -
IllegalArgumentException - if row/column is invalid or cell is read only
public void moveRow(int from,
int to)
from - indexto - indexprotected ArrayList<ArrayList<Object>> getRows()
|
Adempiere 3.5.2a | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||