Interface DetailAdapter<T>
-
- Type Parameters:
T- the class representing a group bean in the table model
- All Known Implementing Classes:
SingleTypeDetailAdapter
public interface DetailAdapter<T>Interface for retrieving detail rows for a group bean in aHeaderDetailTableModel.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intappendDetail(T group)Appendd an empty detail to the group.intdetailIndex(T group, java.lang.Object detail)java.lang.ObjectgetDetail(T group, int detailIndex)intgetDetailCount(T group)java.util.List<?>getDetails(T group, int subRowTypeIndex)intgetDetailTypeIndex(T group, int detailIndex)java.lang.ObjectremoveDetail(T group, int index)Remove a detail from a group.voidremoveDetail(T group, java.lang.Object detail)Remove a detail from a group.
-
-
-
Method Detail
-
getDetailCount
int getDetailCount(T group)
- Returns:
- the number of details for the
group.
-
getDetails
java.util.List<?> getDetails(T group, int subRowTypeIndex)
- Returns:
- the details of the specified type for the
group.
-
getDetail
java.lang.Object getDetail(T group, int detailIndex)
- Returns:
- the detail at the specified index.
-
detailIndex
int detailIndex(T group, java.lang.Object detail)
- Returns:
- the index of the detail within the
group.
-
getDetailTypeIndex
int getDetailTypeIndex(T group, int detailIndex)
- Returns:
- the type of the detail at the specified index.
-
appendDetail
int appendDetail(T group)
Appendd an empty detail to the group.- Returns:
- the new detail count.
-
removeDetail
java.lang.Object removeDetail(T group, int index)
Remove a detail from a group.- Returns:
- the deleted detail.
-
removeDetail
void removeDetail(T group, java.lang.Object detail)
Remove a detail from a group.
-
-