com.java4less.rreport
Class RJTableSource

java.lang.Object
  |
  +--com.java4less.rreport.RJTableSource
All Implemented Interfaces:
RSource

public class RJTableSource
extends java.lang.Object
implements RSource

Uses a JTable as data source for an area.


Constructor Summary
RJTableSource(javax.swing.table.TableModel TableM)
          constructs the class using the tablemodel.
 
Method Summary
 java.lang.String[] getFromFields()
          linked RSources are not implemented in RJTableSource.
 RSource getLinkSource()
          linked RSources are not implemented in RJTableSource.
 java.lang.String[] getToFields()
          linked RSources are not implemented in RJTableSource.
 void rsource_end()
          close JTable.
 java.lang.Object rsource_getData(java.lang.String FieldName)
          get value for field.
 boolean rsource_nextRecord()
          get next row in JTable
 boolean rsource_start()
          reset data source to first row in table
 void setFromFields(java.lang.String[] s)
          linked RSources are not implemented in RJTableSource.
 void setLinkSource(RSource l)
          linked RSources are not implemented in RJTableSource.
 void setParameter(java.lang.String param, java.lang.String value)
          parameters are not implemented in RJTableSource.
 void setToFields(java.lang.String[] s)
          linked RSources are not implemented in RJTableSource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RJTableSource

public RJTableSource(javax.swing.table.TableModel TableM)
constructs the class using the tablemodel. Name of column will be used to identify fields.
Method Detail

rsource_getData

public java.lang.Object rsource_getData(java.lang.String FieldName)
get value for field. It must must a name of column.
Specified by:
rsource_getData in interface RSource

rsource_nextRecord

public boolean rsource_nextRecord()
get next row in JTable
Specified by:
rsource_nextRecord in interface RSource

rsource_start

public boolean rsource_start()
reset data source to first row in table
Specified by:
rsource_start in interface RSource

rsource_end

public void rsource_end()
close JTable. Empty method.
Specified by:
rsource_end in interface RSource

getLinkSource

public RSource getLinkSource()
linked RSources are not implemented in RJTableSource. This is an empty method.
Specified by:
getLinkSource in interface RSource

setLinkSource

public void setLinkSource(RSource l)
linked RSources are not implemented in RJTableSource. This is an empty method.
Specified by:
setLinkSource in interface RSource

getFromFields

public java.lang.String[] getFromFields()
linked RSources are not implemented in RJTableSource. This is an empty method.
Specified by:
getFromFields in interface RSource

getToFields

public java.lang.String[] getToFields()
linked RSources are not implemented in RJTableSource. This is an empty method.
Specified by:
getToFields in interface RSource

setFromFields

public void setFromFields(java.lang.String[] s)
linked RSources are not implemented in RJTableSource. This is an empty method.
Specified by:
setFromFields in interface RSource

setToFields

public void setToFields(java.lang.String[] s)
linked RSources are not implemented in RJTableSource. This is an empty method.
Specified by:
setToFields in interface RSource

setParameter

public void setParameter(java.lang.String param,
                         java.lang.String value)
parameters are not implemented in RJTableSource. This is an empty method.
Specified by:
setParameter in interface RSource