Interface IBiglistbox
-
- All Superinterfaces:
IAnyGroup<IBiglistbox>
,IComponent<IBiglistbox>
,IHtmlBasedComponent<IBiglistbox>
,IXulElement<IBiglistbox>
public interface IBiglistbox extends IXulElement<IBiglistbox>, IAnyGroup<IBiglistbox>
ImmutableBiglistbox
componentA 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 Classes Modifier and Type Interface Description static class
IBiglistbox.Builder
Builds instances of typeIBiglistbox
.static class
IBiglistbox.Updater
Builds an updater of typeIBiglistbox
forUiAgent.smartUpdate(Locator, SmartUpdater)
.
-
Field Summary
Fields Modifier and Type Field Description static IBiglistbox
DEFAULT
Constant 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 int
getCols()
Returns the number of columns within the viewport.default java.lang.String
getColWidth()
Returns the width of the single columndefault int
getFrozenCols()
Returns the size of the frozen columns.default java.lang.String
getOddRowSclass()
Returns the style class for the odd rows.default int
getPreloadSize()
Returns the number of items to preload when receiving the rendering request from the client.default java.lang.String
getRowHeight()
Returns the height of the single row.default int
getRows()
Returns the rows' size of the viewport.MatrixComparatorProvider<?>
getSortAscending()
Returns the ascending sorter provider, or null if not available.MatrixComparatorProvider<?>
getSortDescending()
Returns the descending sorter provider, or null if not available.default java.lang.String
getWidgetClass()
Returns the client widget class.default boolean
isAutoCols()
Returns whether enables the auto adjusting cols size.default boolean
isAutoRows()
Returns whether enables the auto adjusting rows size.default boolean
isFixFrozenCols()
Returns whether is fix frozen columns, that means user cannot change the size of the frozen columns dynamically.static IBiglistbox
ofId(java.lang.String id)
Returns the instance with the given id.IBiglistbox
withAutoCols(boolean autoCols)
Returns a copy ofthis
immutable component with the specifiedautoCols
.IBiglistbox
withAutoRows(boolean autoRows)
Returns a copy ofthis
immutable component with the specifiedautoRows
.IBiglistbox
withCols(int cols)
Returns a copy ofthis
immutable component with the specifiedcols
.IBiglistbox
withColWidth(java.lang.String colWidth)
Returns a copy ofthis
immutable component with the specifiedcolWidth
.IBiglistbox
withFixFrozenCols(boolean fixFrozenCols)
Returns a copy ofthis
immutable component with the specifiedfixFrozenCols
.IBiglistbox
withFrozenCols(int frozenCols)
Returns a copy ofthis
immutable component with the specifiedfrozenCols
.IBiglistbox
withOddRowSclass(java.lang.String oddRowSclass)
Returns a copy ofthis
immutable component with the specifiedoddRowSclass
.IBiglistbox
withPreloadSize(int preloadSize)
Returns a copy ofthis
immutable component with the specifiedpreloadSize
.IBiglistbox
withRowHeight(java.lang.String rowHeight)
Returns a copy ofthis
immutable component with the specifiedrowHeight
.IBiglistbox
withRows(int rows)
Returns a copy ofthis
immutable component with the specifiedrows
.IBiglistbox
withSortAscending(MatrixComparatorProvider<?> sortAscending)
Returns a copy ofthis
immutable component with the specifiedsortAscending
.IBiglistbox
withSortDescending(MatrixComparatorProvider<?> sortDescending)
Returns a copy ofthis
immutable 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:
getWidgetClass
in interfaceIComponent<IBiglistbox>
-
isAutoCols
default boolean isAutoCols()
Returns whether enables the auto adjusting cols size.Default:
true
.
-
withAutoCols
IBiglistbox withAutoCols(boolean autoCols)
Returns a copy ofthis
immutable 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
this
object
-
isAutoRows
default boolean isAutoRows()
Returns whether enables the auto adjusting rows size.Default:
true
.
-
withAutoRows
IBiglistbox withAutoRows(boolean autoRows)
Returns a copy ofthis
immutable 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
this
object
-
getFrozenCols
default int getFrozenCols()
Returns the size of the frozen columns.Default:
0
-
withFrozenCols
IBiglistbox withFrozenCols(int frozenCols)
Returns a copy ofthis
immutable 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
this
object
-
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 ofthis
immutable 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
this
object
-
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 ofthis
immutable 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
this
object
-
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 ofthis
immutable 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
this
object
-
getRows
default int getRows()
Returns the rows' size of the viewport.Default:
30
-
withRows
IBiglistbox withRows(int rows)
Returns a copy ofthis
immutable 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
this
object
-
getCols
default int getCols()
Returns the number of columns within the viewport.Default:
30
-
withCols
IBiglistbox withCols(int cols)
Returns a copy ofthis
immutable 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
this
object
-
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 ofthis
immutable 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
this
object
-
getColWidth
default java.lang.String getColWidth()
Returns the width of the single columnDefault:
"60px"
-
withColWidth
IBiglistbox withColWidth(java.lang.String colWidth)
Returns a copy ofthis
immutable 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
this
object
-
getSortAscending
@Nullable MatrixComparatorProvider<?> getSortAscending()
Returns the ascending sorter provider, or null if not available.Default:
null
-
withSortAscending
IBiglistbox withSortAscending(@Nullable MatrixComparatorProvider<?> sortAscending)
Returns a copy ofthis
immutable 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
this
object
-
getSortDescending
@Nullable MatrixComparatorProvider<?> getSortDescending()
Returns the descending sorter provider, or null if not available.Default:
null
-
withSortDescending
IBiglistbox withSortDescending(@Nullable MatrixComparatorProvider<?> sortDescending)
Returns a copy ofthis
immutable 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
this
object
-
ofId
static IBiglistbox ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id
- The id to identify this component.
-
-