Interface IBiglistbox
-
- All Superinterfaces:
IAnyGroup<IBiglistbox>,IComponent<IBiglistbox>,IHtmlBasedComponent<IBiglistbox>,IXulElement<IBiglistbox>
public interface IBiglistbox extends IXulElement<IBiglistbox>, IAnyGroup<IBiglistbox>
ImmutableBiglistboxcomponentA component to handle a huge data sets and provides the same and as many as the functionalities of
IListboxincluding 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 Classes Modifier and Type Interface Description static classIBiglistbox.BuilderBuilds instances of typeIBiglistbox.static classIBiglistbox.UpdaterBuilds an updater of typeIBiglistboxforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Field Summary
Fields Modifier and Type Field Description static IBiglistboxDEFAULTConstant for default attributes of this immutable component.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intgetCols()Returns the number of columns within the viewport.default java.lang.StringgetColWidth()Returns the width of the single columndefault intgetFrozenCols()Returns the size of the frozen columns.default java.lang.StringgetOddRowSclass()Returns the style class for the odd rows.default intgetPreloadSize()Returns the number of items to preload when receiving the rendering request from the client.default java.lang.StringgetRowHeight()Returns the height of the single row.default intgetRows()Returns the rows' size of the viewport.org.zkoss.zkmax.zul.MatrixComparatorProvider<?>getSortAscending()Returns the ascending sorter provider, or null if not available.org.zkoss.zkmax.zul.MatrixComparatorProvider<?>getSortDescending()Returns the descending sorter provider, or null if not available.default java.lang.StringgetWidgetClass()Returns the client widget class.default booleanisAutoCols()Returns whether enables the auto adjusting cols size.default booleanisAutoRows()Returns whether enables the auto adjusting rows size.default booleanisFixFrozenCols()Returns whether is fix frozen columns, that means user cannot change the size of the frozen columns dynamically.static IBiglistboxofId(java.lang.String id)Returns the instance with the given id.IBiglistboxwithAutoCols(boolean autoCols)Returns a copy ofthisimmutable component with the specifiedautoCols.IBiglistboxwithAutoRows(boolean autoRows)Returns a copy ofthisimmutable component with the specifiedautoRows.IBiglistboxwithCols(int cols)Returns a copy ofthisimmutable component with the specifiedcols.IBiglistboxwithColWidth(java.lang.String colWidth)Returns a copy ofthisimmutable component with the specifiedcolWidth.IBiglistboxwithFixFrozenCols(boolean fixFrozenCols)Returns a copy ofthisimmutable component with the specifiedfixFrozenCols.IBiglistboxwithFrozenCols(int frozenCols)Returns a copy ofthisimmutable component with the specifiedfrozenCols.IBiglistboxwithOddRowSclass(java.lang.String oddRowSclass)Returns a copy ofthisimmutable component with the specifiedoddRowSclass.IBiglistboxwithPreloadSize(int preloadSize)Returns a copy ofthisimmutable component with the specifiedpreloadSize.IBiglistboxwithRowHeight(java.lang.String rowHeight)Returns a copy ofthisimmutable component with the specifiedrowHeight.IBiglistboxwithRows(int rows)Returns a copy ofthisimmutable component with the specifiedrows.IBiglistboxwithSortAscending(org.zkoss.zkmax.zul.MatrixComparatorProvider<?> sortAscending)Returns a copy ofthisimmutable component with the specifiedsortAscending.IBiglistboxwithSortDescending(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, withWidgetOverrides
-
Methods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getWidth, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withHflex, withLeft, withRenderdefer, withSclass, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withWidth, withZclass, withZIndex
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Field Detail
-
DEFAULT
static final IBiglistbox DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String 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
IBiglistbox withAutoCols(boolean autoCols)
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
IBiglistbox withAutoRows(boolean autoRows)
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
IBiglistbox withFrozenCols(int frozenCols)
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
IBiglistbox withFixFrozenCols(boolean fixFrozenCols)
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
default java.lang.String getOddRowSclass()
Returns the style class for the odd rows.Default:
IHtmlBasedComponent.getZclass()-odd.
-
withOddRowSclass
IBiglistbox withOddRowSclass(java.lang.String oddRowSclass)
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
IBiglistbox withPreloadSize(int preloadSize)
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
IBiglistbox withRows(int rows)
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
IBiglistbox withCols(int cols)
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
default java.lang.String getRowHeight()
Returns the height of the single row.Default:
"30px"
-
withRowHeight
IBiglistbox withRowHeight(java.lang.String rowHeight)
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
default java.lang.String getColWidth()
Returns the width of the single columnDefault:
"60px"
-
withColWidth
IBiglistbox withColWidth(java.lang.String colWidth)
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
static IBiglistbox ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component.
-
-