Package org.zkoss.stateless.sul
Interface IFrozen<I extends IAnyGroup>
- All Superinterfaces:
IAnyGroup<IFrozen<I>>,IChildable<IFrozen<I>,,I> IComponent<IFrozen<I>>,IHtmlBasedComponent<IFrozen<I>>,IMeshComposite<IFrozen<I>>,IXulElement<IFrozen<I>>
public interface IFrozen<I extends IAnyGroup>
extends IXulElement<IFrozen<I>>, IChildable<IFrozen<I>,I>, IMeshComposite<IFrozen<I>>, IAnyGroup<IFrozen<I>>
Immutable
Frozen component- Author:
- jumperchen
- See Also:
-
Frozen
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIFrozen.Builder<I extends IAnyGroup>Builds instances of typeIFrozen.static classBuilds an updater of typeIFrozenforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault intReturns the number of columns to freeze.default intReturns the number of right columns to freeze.default intgetStart()Returns the start position of the scrollbar.default StringReturns the client widget class.default booleanisSmooth()Returns the frozen is smooth or not.ofColumns(int columns) Return the instance with the given columnsReturns the instance with the given id.withColumns(int columns) Returns a copy ofthisimmutable component with the specifiedcolumns.withRightColumns(int rightColumns) Returns a copy ofthisimmutable component with the specifiedrightColumns.withSmooth(boolean smooth) Returns a copy ofthisimmutable component with the specifiedsmooth.withStart(int start) Returns a copy ofthisimmutable component with the specifiedstart.Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildrenMethods 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:
"zul.mesh.Frozen"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getColumns
default int getColumns()Returns the number of columns to freeze.Default:
0 -
withColumns
Returns a copy ofthisimmutable component with the specifiedcolumns.Sets the number of columns to freeze.
- Parameters:
columns- The number of columns to freeze.Default:
0.- Returns:
- A modified copy of the
thisobject
-
getStart
default int getStart()Returns the start position of the scrollbar.Default:
0 -
withStart
Returns a copy ofthisimmutable component with the specifiedstart.Sets the start position of the scrollbar.
- Parameters:
start- The start position of the scrollbar.Default:
0.- Returns:
- A modified copy of the
thisobject
-
getRightColumns
default int getRightColumns()Returns the number of right columns to freeze. Note: only useful when using smooth Frozen and browsers that supports CSS position: sticky.Default:
0 -
withRightColumns
Returns a copy ofthisimmutable component with the specifiedrightColumns.Sets the number of right columns to freeze.
- Parameters:
rightColumns- The number of right columns to freeze.Default:
0.- Returns:
- A modified copy of the
thisobject
-
isSmooth
default boolean isSmooth()Returns the frozen is smooth or not.Default:
true -
withSmooth
Returns a copy ofthisimmutable component with the specifiedsmooth.Sets the frozen is smooth or not.
- Parameters:
smooth- The number of right columns to freeze.Default:
true.- Returns:
- A modified copy of the
thisobject
-
ofColumns
Return the instance with the given columns- Parameters:
columns- The number of columns to freeze.(from left to right)
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component.
-