|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.dataset.DataTable
org.jdesktop.dataset.DataRelationTable
public class DataRelationTable
Field Summary |
---|
Fields inherited from class org.jdesktop.dataset.DataTable |
---|
classComparators, columnComparators, columns, DEFAULT_NAME_PREFIX, rows, selectors |
Constructor Summary | |
---|---|
DataRelationTable(DataSet ds)
Creates a new instance of DataRelationTable |
|
DataRelationTable(DataSet ds,
java.lang.String name)
|
Method Summary | |
---|---|
DataRow |
appendRow()
Appends a row to the child table, retrieved by relation.getChildColumn().getTable() . |
DataColumn |
getColumn(java.lang.String colName)
Overridden so that it will defer to the child Table first. |
java.util.List<DataColumn> |
getColumns()
|
DataSelector |
getParentSelector()
|
DataTable |
getParentTable()
|
DataRelation |
getRelation()
|
void |
refresh()
Removes all of the rows from this DataRelationTable, and reloads it with the proper rows from the DataRelation using the parentSelector DataSelector. |
void |
save()
This method makes no sense for a DataRelationTable. |
void |
setDataProvider(DataProvider dataProvider)
This method makes no sense for a DataRelationTable. |
void |
setParentSelector(DataSelector selector)
Sets the selector for this DataRelationTable. |
void |
setParentTable(DataTable parent)
|
void |
setRelation(DataRelation relation)
Set the relation that this DataRelationTable uses |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataRelationTable(DataSet ds)
public DataRelationTable(DataSet ds, java.lang.String name)
Method Detail |
---|
public void setRelation(DataRelation relation)
relation
- the DataRelation to usepublic DataRelation getRelation()
public void setParentSelector(DataSelector selector)
selector
- The selector on the parent table. The selector must belong
to the same table as the relation's parentColumnpublic DataSelector getParentSelector()
public void setParentTable(DataTable parent)
public DataTable getParentTable()
public void setDataProvider(DataProvider dataProvider)
setDataProvider
in class DataTable
dataProvider
- the DataProvider for this DataTable. This may be null.public void save()
save
in class DataTable
public DataRow appendRow()
relation.getChildColumn().getTable()
. If the DataTable
doesn't exist, null is returned
appendRow
in class DataTable
public void refresh()
refresh
in class DataTable
public DataColumn getColumn(java.lang.String colName)
getColumn
in class DataTable
colName
- The String name for the column to retrieve.
public java.util.List<DataColumn> getColumns()
getColumns
in class DataTable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |