public abstract class BasicGridForm<T extends ru.curs.celesta.dbutils.BasicCursor> extends BasicLyraForm<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BasicGridForm.ExternalAction<T> |
PROPERTIES| Constructor and Description |
|---|
BasicGridForm(ru.curs.celesta.CallContext context) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
externalAction(BasicGridForm.ExternalAction<T> f,
T fallBack) |
int |
getApproxTotalCount()
Returns (approximate) total record count.
|
Runnable |
getChangeNotifier()
Returns change notifier.
|
int |
getGridHeight()
Should return a number of rows in grid.
|
int |
getMaxExactScrollValue()
If the grid is scrolled less than for given amount of records, the exact
positioning in cycle will be used instead of interpolation.
|
List<LyraFormData> |
getRows() |
List<LyraFormData> |
getRows(int position) |
List<LyraFormData> |
getRowsH(int h)
Returns contents of grid for current cursor's position.
|
List<LyraFormData> |
getRowsH(int position,
int h)
Returns contents of grid given scrollbar's position.
|
Map<String,String> |
getSummaryRow()
Should return a summary row.
|
int |
getTopVisiblePosition()
Returns scrollbar's knob position for current cursor value.
|
void |
restoreCursorPosition() |
void |
saveCursorPosition() |
void |
setChangeNotifier(Runnable callback)
Sets change notifier to be run when refined grid parameters are ready.
|
void |
setMaxExactScrollValue(int val)
If the grid is scrolled less than for given amount of records, the exact
positioning in cycle will be used instead of interpolation.
|
List<LyraFormData> |
setPosition(Object... pk) |
List<LyraFormData> |
setPositionH(int h,
Object... pk)
Positions grid to a certain record.
|
beforeSending, createAllBoundFields, createAllUnboundFields, createField, descOrders, getCursor, getFieldsMeta, getFormProperties, getId, meta, orderByColumnNames, setCallContextpublic <T> T externalAction(BasicGridForm.ExternalAction<T> f, T fallBack)
public List<LyraFormData> getRows(int position)
public List<LyraFormData> getRowsH(int position, int h)
position - New scrollbar's position.public List<LyraFormData> getRows()
public List<LyraFormData> getRowsH(int h)
public List<LyraFormData> setPosition(Object... pk)
public List<LyraFormData> setPositionH(int h, Object... pk)
pk - Values of primary key.public void setChangeNotifier(Runnable callback)
callback - A callback to be run.public Runnable getChangeNotifier()
public void setMaxExactScrollValue(int val)
val - new value.public int getMaxExactScrollValue()
public int getApproxTotalCount()
Just after creation of the form this method returns DEFAULT_COUNT value, but it asynchronously requests total count right after constructor execution.
public int getTopVisiblePosition()
public void saveCursorPosition()
public void restoreCursorPosition()
public int getGridHeight()
Copyright © 2019 CURS. All rights reserved.