Interface IBiglistbox
- All Superinterfaces:
IAnyGroup<IBiglistbox>,IComponent<IBiglistbox>,IHtmlBasedComponent<IBiglistbox>,IXulElement<IBiglistbox>
Biglistbox component
A component to handle a huge data sets and provides the same and as many as
the functionalities of IListbox including selection,
sorting, keystroke navigation, ROD(rendering-on-demand), and so on.
Support @Action
| Name | Action Type |
|---|---|
| onSelect | ActionData: SelectData
Represents an action cause by user's the list selection is changed at the client. |
| onSort | ActionData: SortExtData
Represents an action that indicates a sorting request to data for Biglistbox and provides more information about the column index. |
| onScroll | ActionData: ScrollExtData
Represents an action that indicates a sorting request to data for Biglistbox and provides more information about the column index. |
| onScrollX | ActionData: ScrollExtData
Represents an action caused by that user is scrolling or has scrolled the X-axis at the client for Biglistbox component and provides more information about the position X and Y data. |
| onScrollY | ActionData: ScrollExtData
Represents an action caused by that user is scrolling or has scrolled the Y-axis at the client for Biglistbox component and provides more information about the position X and Y data. |
| onCellClick | ActionData: CellClickData
Represents an event that indicates a clicking on a cell data for a matrix data component like Biglistbox, and provides more information about the row index and the column index. |
Support Application Library Properties
-
To specify the number of items to preload when receiving the rendering request from the client for this component, you have to specify
withPreloadSize(int).Or configure it from zk.xml by setting library properties. For example,
<library-property/> <name>org.zkoss.zkmax.zul.biglistbox.preloadSize</name/> <value>100</value/> </library-property/>
- Author:
- katherine
- See Also:
-
Biglistbox
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIBiglistbox.static classBuilds an updater of typeIBiglistboxforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IBiglistboxConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault intgetCols()Returns the number of columns within the viewport.default StringReturns the width of the single columndefault intReturns the size of the frozen columns.default StringReturns the style class for the odd rows.default intReturns the number of items to preload when receiving the rendering request from the client.default StringReturns the height of the single row.default intgetRows()Returns the rows' size of the viewport.org.zkoss.zkmax.zul.MatrixComparatorProvider<?>Returns the ascending sorter provider, or null if not available.org.zkoss.zkmax.zul.MatrixComparatorProvider<?>Returns the descending sorter provider, or null if not available.default StringReturns the client widget class.default booleanReturns whether enables the auto adjusting cols size.default booleanReturns whether enables the auto adjusting rows size.default booleanReturns whether is fix frozen columns, that means user cannot change the size of the frozen columns dynamically.static IBiglistboxReturns the instance with the given id.withAutoCols(boolean autoCols) Returns a copy ofthisimmutable component with the specifiedautoCols.withAutoRows(boolean autoRows) Returns a copy ofthisimmutable component with the specifiedautoRows.withCols(int cols) Returns a copy ofthisimmutable component with the specifiedcols.withColWidth(String colWidth) Returns a copy ofthisimmutable component with the specifiedcolWidth.withFixFrozenCols(boolean fixFrozenCols) Returns a copy ofthisimmutable component with the specifiedfixFrozenCols.withFrozenCols(int frozenCols) Returns a copy ofthisimmutable component with the specifiedfrozenCols.withOddRowSclass(String oddRowSclass) Returns a copy ofthisimmutable component with the specifiedoddRowSclass.withPreloadSize(int preloadSize) Returns a copy ofthisimmutable component with the specifiedpreloadSize.withRowHeight(String rowHeight) Returns a copy ofthisimmutable component with the specifiedrowHeight.withRows(int rows) Returns a copy ofthisimmutable component with the specifiedrows.withSortAscending(org.zkoss.zkmax.zul.MatrixComparatorProvider<?> sortAscending) Returns a copy ofthisimmutable component with the specifiedsortAscending.withSortDescending(org.zkoss.zkmax.zul.MatrixComparatorProvider<?> sortDescending) Returns a copy ofthisimmutable component with the specifiedsortDescending.Methods inherited from interface org.zkoss.stateless.sul.IComponent
getAction, getActions, getClientAttributes, getId, getMold, getWidgetListeners, getWidgetOverrides, isVisible, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withAction, withActions, withActions, withClientAttribute, withClientAttributes, withId, withMold, withVisible, withWidgetClass, withWidgetListener, withWidgetListeners, withWidgetOverride, withWidgetOverridesMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
Field Details
-
DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Details
-
getWidgetClass
Returns the client widget class.Default:
"zkmax.big.Biglistbox"- Specified by:
getWidgetClassin interfaceIComponent<IBiglistbox>
-
isAutoCols
default boolean isAutoCols()Returns whether enables the auto adjusting cols size.Default:
true. -
withAutoCols
Returns a copy ofthisimmutable component with the specifiedautoCols.Sets whether enables auto adjusting the number of cols.
- Parameters:
autoCols- Whether enables auto adjusting the number of cols.Default:
true.- Returns:
- A modified copy of the
thisobject
-
isAutoRows
default boolean isAutoRows()Returns whether enables the auto adjusting rows size.Default:
true. -
withAutoRows
Returns a copy ofthisimmutable component with the specifiedautoRows.Sets whether enables auto adjusting the number of rows.
- Parameters:
autoRows- Whether enables auto adjusting the number of rows.Default:
true.- Returns:
- A modified copy of the
thisobject
-
getFrozenCols
default int getFrozenCols()Returns the size of the frozen columns.Default:
0 -
withFrozenCols
Returns a copy ofthisimmutable component with the specifiedfrozenCols.Sets the size of the frozen columns
- Parameters:
frozenCols- The size of the frozen columnsDefault:
0.- Returns:
- A modified copy of the
thisobject
-
isFixFrozenCols
default boolean isFixFrozenCols()Returns whether is fix frozen columns, that means user cannot change the size of the frozen columns dynamically.Default:
false -
withFixFrozenCols
Returns a copy ofthisimmutable component with the specifiedfixFrozenCols.Sets whether is fix frozen columns, that means user cannot change the size of the frozen columns dynamically.
- Parameters:
fixFrozenCols- Whether is fix frozen columnsDefault:
false.- Returns:
- A modified copy of the
thisobject
-
getOddRowSclass
Returns the style class for the odd rows.Default:
IHtmlBasedComponent.getZclass()-odd. -
withOddRowSclass
Returns a copy ofthisimmutable component with the specifiedoddRowSclass.Sets the style class for the odd rows.
- Parameters:
oddRowSclass- The style class for the odd rows.Default:
IHtmlBasedComponent.getZclass()-odd.- Returns:
- A modified copy of the
thisobject
-
getPreloadSize
default int getPreloadSize()Returns the number of items to preload when receiving the rendering request from the client.Default:
50, if the"org.zkoss.zkmax.zul.biglistbox.preloadSize"library property is not set in zk.xml. -
withPreloadSize
Returns a copy ofthisimmutable component with the specifiedpreloadSize.Sets the number of items to preload when receiving the rendering request from the client.
- Parameters:
preloadSize- The number of items to preload.Default:
50, if the"org.zkoss.zkmax.zul.biglistbox.preloadSize"library property is not set in zk.xml.- Returns:
- A modified copy of the
thisobject
-
getRows
default int getRows()Returns the rows' size of the viewport.Default:
30 -
withRows
Returns a copy ofthisimmutable component with the specifiedrows.Sets the rows' size of the viewport.
- Parameters:
rows- The rows' size of the viewport.Default:
30- Returns:
- A modified copy of the
thisobject
-
getCols
default int getCols()Returns the number of columns within the viewport.Default:
30 -
withCols
Returns a copy ofthisimmutable component with the specifiedcols.Sets the number of columns within the viewport.
- Parameters:
cols- The number of columns within the viewport.Default:
30- Returns:
- A modified copy of the
thisobject
-
getRowHeight
Returns the height of the single row.Default:
"30px" -
withRowHeight
Returns a copy ofthisimmutable component with the specifiedrowHeight.Sets the height of the single row.
- Parameters:
rowHeight- The height of the single row.Default:
"30px"- Returns:
- A modified copy of the
thisobject
-
getColWidth
Returns the width of the single columnDefault:
"60px" -
withColWidth
Returns a copy ofthisimmutable component with the specifiedcolWidth.Sets the width of the single column
- Parameters:
colWidth- The width of the single columnDefault:
"60px"- Returns:
- A modified copy of the
thisobject
-
getSortAscending
@Nullable org.zkoss.zkmax.zul.MatrixComparatorProvider<?> getSortAscending()Returns the ascending sorter provider, or null if not available.Default:
null -
withSortAscending
IBiglistbox withSortAscending(@Nullable org.zkoss.zkmax.zul.MatrixComparatorProvider<?> sortAscending) Returns a copy ofthisimmutable component with the specifiedsortAscending.Sets the ascending sorter provider, or null if not available.
- Parameters:
sortAscending- The ascending sorter providerDefault:
null- Returns:
- A modified copy of the
thisobject
-
getSortDescending
@Nullable org.zkoss.zkmax.zul.MatrixComparatorProvider<?> getSortDescending()Returns the descending sorter provider, or null if not available.Default:
null -
withSortDescending
IBiglistbox withSortDescending(@Nullable org.zkoss.zkmax.zul.MatrixComparatorProvider<?> sortDescending) Returns a copy ofthisimmutable component with the specifiedsortDescending.Sets the descending sorter provider, or null if not available.
- Parameters:
sortDescending- The descending sorter providerDefault:
null- Returns:
- A modified copy of the
thisobject
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component.
-