|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdesktop.dataset.DataRelation
public class DataRelation
Field Summary | |
---|---|
protected static java.lang.String |
DEFAULT_NAME_PREFIX
Used as a prefix for auto-generated DataRelation names. |
Constructor Summary | |
---|---|
protected |
DataRelation(DataSet ds)
Create a new DataRelation |
protected |
DataRelation(DataSet ds,
java.lang.String name)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this class for any changes to bean properties. |
void |
addPropertyChangeListener(java.lang.String property,
java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener to this class for specific property changes. |
DataColumn |
getChildColumn()
|
DataSet |
getDataSet()
|
java.lang.String |
getName()
|
DataColumn |
getParentColumn()
|
java.util.List<DataRow> |
getRows(DataRow parentRow)
Given a DataRow from the parent DataTable, return a list of related DataRows from the child DataTable. |
java.util.List<DataRow> |
getRows(DataRow[] parentRows)
Given an array of DataRows, produce the union of the results for each DataRow from the child DataTable |
java.util.List<DataRow> |
getRows(int parentRowIndex)
Given the index of a row in the parent DataTable, produce a corrosponding list of related rows from the child DataTable |
java.util.List<DataRow> |
getRows(int[] parentRowIndices)
Given an array if parent row indices, produce the union of the results for each index from the child DataTable |
java.util.List<DataRow> |
getRows(java.util.List<java.lang.Integer> parentRowIndices)
Given a List of indices, produce the union of the results for each index from the child DataTable |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Stops notifying a specific listener of any changes to bean properties. |
void |
removePropertyChangeListener(java.lang.String propertyName,
java.beans.PropertyChangeListener listener)
Stops notifying a specific listener of changes to a specific property. |
void |
setChildColumn(DataColumn childColumn)
sets the child DataColumn in this parent/child relation |
void |
setName(java.lang.String name)
Set the name of the DataRelation |
void |
setParentColumn(DataColumn parentColumn)
Sets the DataColumn that is the parent in this parent/child relation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String DEFAULT_NAME_PREFIX
Constructor Detail |
---|
protected DataRelation(DataSet ds)
protected DataRelation(DataSet ds, java.lang.String name)
Method Detail |
---|
public DataSet getDataSet()
public void setName(java.lang.String name)
name
- public java.lang.String getName()
public DataColumn getParentColumn()
public void setParentColumn(DataColumn parentColumn)
parentColumn
- public DataColumn getChildColumn()
public void setChildColumn(DataColumn childColumn)
childColumn
- public java.util.List<DataRow> getRows(DataRow parentRow)
parentRow
- public java.util.List<DataRow> getRows(int parentRowIndex)
parentRowIndex
- public java.util.List<DataRow> getRows(DataRow[] parentRows)
parentRows
- public java.util.List<DataRow> getRows(int[] parentRowIndices)
parentRowIndices
- public java.util.List<DataRow> getRows(java.util.List<java.lang.Integer> parentRowIndices)
parentRowIndices
- public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The PropertyChangeListener to notify of changes to this
instance.public void addPropertyChangeListener(java.lang.String property, java.beans.PropertyChangeListener listener)
property
- The name of the property to listen to changes for.listener
- The PropertyChangeListener to notify of changes to this
instance.public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener to stop receiving notifications.public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
propertyName
- The name of the property to ignore from now on.listener
- The listener to stop receiving notifications.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |