|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.toolbox.ui.DataQueryListModelBuilder.DataQueryListModel
Encapsulates a DataQuery as a ListModel.
Uses the key and value attributes as specified in the
DataQueryListModelBuilder constructor.
| Field Summary |
| Fields inherited from interface com.arsdigita.bebop.list.ListModel |
versionId |
| Constructor Summary | |
DataQueryListModelBuilder.DataQueryListModel(DataQuery dq,
String keyName,
String valueName)
Construct a new DataQueryListModel |
|
| Method Summary | |
Object |
getElement()
Return the value of the attribute specified in the valueName
constructor parameter. |
String |
getKey()
Returns the string representation of the primary key of the current row. |
boolean |
next()
Advance to the next row |
long |
size()
Return the number of rows in the query |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataQueryListModelBuilder.DataQueryListModel(DataQuery dq,
String keyName,
String valueName)
DataQueryListModel
dq - the DataQuery that will be used to supply the list with datakeyName - the name of the attribute which contains the primary key for
each row of the queryvalueName - the name of the attribute which contains the value for
each row of the query| Method Detail |
public boolean next()
throws NoSuchElementException
next in interface ListModelNoSuchElementExceptionpublic Object getElement()
valueName
constructor parameter. This value will most likely be used by the
ListCellRenderer to display a label.
getElement in interface ListModelListCellRendererpublic String getKey()
keyName constructor parameter. This value will be used to
uniquely identify the current row.
getKey in interface ListModelList.getSelectedKey(PageState)public long size()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||