com.arsdigita.toolbox.ui
Class DataTable.DataBuilderAdapter
java.lang.Object
com.arsdigita.util.LockableImpl
com.arsdigita.toolbox.ui.DataTable.DataBuilderAdapter
- All Implemented Interfaces:
- Lockable, TableModelBuilder
- Enclosing class:
- DataTable
- protected static class DataTable.DataBuilderAdapter
- extends LockableImpl
- implements TableModelBuilder
Adapts a DataQueryBuilder
into a TableModelBuilder
.
Wraps the query returned by the builder in a DataQueryTableModel.
- See Also:
DataTable.DataQueryTableModel
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataTable.DataBuilderAdapter
public DataTable.DataBuilderAdapter()
- Create a new
DataBuilderAdapter
createQuery
protected DataQuery createQuery(DataTable t,
PageState s)
- Obtain a
DataQuery
and apply query events to it.
The query events may add additional filters to the query,
among other things. Finally, retrieve the current sort
column from the parent DataTable
and apply it to
the query
- Parameters:
t
- the parent DataTable
s
- the current page state
- Returns:
- the final
DataQuery
, which is now ready
to be wrapped in a DataQueryTableModel - See Also:
DataTable.DataQueryTableModel
makeModel
public TableModel makeModel(Table table,
PageState s)
- Construct a DataQueryTableModel by wrapping the query.
- Specified by:
makeModel
in interface TableModelBuilder
- Parameters:
table
- the parent DataTable
s
- the current page state
- Returns:
- a DataQueryTableModel that will iterate through the
query
- See Also:
DataTable.DataQueryTableModel
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC