|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.rreport.RArraySource
Uses an array as data source for an area. See also RSource.
exampleOrder.java. Uses the report definition file Order.rep. It uses an array as data source for the report. runExampleOrder.bat
Constructor Summary | |
RArraySource(java.lang.String[] names,
java.lang.Object[][] val)
The first array contains the names of the fields, the second the values. |
Method Summary | |
java.lang.String[] |
getFromFields()
field names in the linked RSource used for the relationship (this is normally the primary key in a table or record). |
RSource |
getLinkSource()
linked RSource (if the RSource supports nested RSources). |
java.lang.String[] |
getToFields()
field names in this RSource used for the relationship (this is normally a foreign key). |
void |
rsource_end()
finalizes data source. |
java.lang.Object |
rsource_getData(java.lang.String FieldName)
get value for field. |
boolean |
rsource_nextRecord()
get next row in array. |
boolean |
rsource_start()
set array to read first row. |
void |
setData(java.lang.String[] names,
java.lang.Object[][] val)
set new array for the source |
void |
setFromFields(java.lang.String[] s)
field names in the linked RSource used for the relationship (this is normally the primary key). |
void |
setLinkSource(RSource l)
linked RSource (if the RSource supports nested RSources). |
void |
setParameter(java.lang.String param,
java.lang.String value)
parameters are not implemented in RArraySource. |
void |
setToFields(java.lang.String[] s)
field names in this RSource used for the relationship (this is normally a foreign key). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RArraySource(java.lang.String[] names, java.lang.Object[][] val)
Method Detail |
public void setData(java.lang.String[] names, java.lang.Object[][] val)
public java.lang.Object rsource_getData(java.lang.String FieldName)
rsource_getData
in interface RSource
public boolean rsource_nextRecord()
rsource_nextRecord
in interface RSource
public boolean rsource_start()
rsource_start
in interface RSource
public void rsource_end()
rsource_end
in interface RSource
public RSource getLinkSource()
getLinkSource
in interface RSource
public void setLinkSource(RSource l)
setLinkSource
in interface RSource
public java.lang.String[] getFromFields()
getFromFields
in interface RSource
public java.lang.String[] getToFields()
getToFields
in interface RSource
public void setFromFields(java.lang.String[] s)
setFromFields
in interface RSource
public void setToFields(java.lang.String[] s)
setToFields
in interface RSource
public void setParameter(java.lang.String param, java.lang.String value)
setParameter
in interface RSource
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |