T - type of the form's main cursorpublic abstract class BasicGridForm<T extends ru.curs.celesta.dbutils.BasicCursor> extends BasicLyraForm<T>
PROPERTIES| Constructor and Description |
|---|
BasicGridForm(ru.curs.celesta.CallContext context,
GridRefinementHandler changeNotifier) |
| Modifier and Type | Method and Description |
|---|---|
int |
getApproxTotalCount()
Returns (approximate) total record count.
|
GridRefinementHandler |
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(ru.curs.celesta.CallContext ctx)
Returns contents of grid for current cursor's position.
|
List<LyraFormData> |
getRows(ru.curs.celesta.CallContext ctx,
int position)
Returns contents of grid given scrollbar's position.
|
List<LyraFormData> |
getRowsH(ru.curs.celesta.CallContext ctx,
int h)
Returns contents of grid for current cursor's position.
|
List<LyraFormData> |
getRowsH(ru.curs.celesta.CallContext ctx,
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(ru.curs.celesta.CallContext ctx) |
void |
saveCursorPosition(ru.curs.celesta.CallContext ctx) |
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(ru.curs.celesta.CallContext ctx,
Object... pk) |
List<LyraFormData> |
setPositionH(ru.curs.celesta.CallContext ctx,
int h,
Object... pk)
Positions grid to a certain record.
|
beforeSending, createAllBoundFields, createAllUnboundFields, createField, descOrders, getCursor, getFieldsMeta, getFormProperties, getId, meta, orderByColumnNames, recpublic BasicGridForm(ru.curs.celesta.CallContext context,
GridRefinementHandler changeNotifier)
public List<LyraFormData> getRows(ru.curs.celesta.CallContext ctx, int position)
ctx - current CallContextposition - New scrollbar's position.public List<LyraFormData> getRowsH(ru.curs.celesta.CallContext ctx, int position, int h)
ctx - current CallContextposition - New scrollbar's position.h - Form's height in rowspublic List<LyraFormData> getRows(ru.curs.celesta.CallContext ctx)
ctx - current CallContextpublic List<LyraFormData> getRowsH(ru.curs.celesta.CallContext ctx, int h)
ctx - current CallContexth - form height in rowspublic List<LyraFormData> setPosition(ru.curs.celesta.CallContext ctx, Object... pk)
public List<LyraFormData> setPositionH(ru.curs.celesta.CallContext ctx, int h, Object... pk)
ctx - current CallContextpk - Values of primary keypublic GridRefinementHandler 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(ru.curs.celesta.CallContext ctx)
public void restoreCursorPosition(ru.curs.celesta.CallContext ctx)
public int getGridHeight()
Copyright © 2020 CURS. All rights reserved.