Package org.zkoss.stateless.sul
Interface IScrollview<I extends IAnyGroup>
- All Superinterfaces:
IAnyGroup<IScrollview<I>>,IChildable<IScrollview<I>,,I> IComponent<IScrollview<I>>,IHtmlBasedComponent<IScrollview<I>>,IXulElement<IScrollview<I>>
public interface IScrollview<I extends IAnyGroup>
extends IXulElement<IScrollview<I>>, IAnyGroup<IScrollview<I>>, IChildable<IScrollview<I>,I>
Immutable
Scrollview component
A container that can scroll containing elements on touch devices.
Note: if using this component not in touch devices, it will treat as a simple DIV element, no functions at all.
Support @Action
| Name | Action Type |
|---|---|
| onScroll | ActionData: ScrollData
In mobile devices: Denotes that the content of a scrollable component has been scrolled by the user. Notice that you can check if it is scrolled outside/inside boundaries by invoking getOutOfBound method in the ScrollEvent. In desktop: This action will be triggered when users scroll all the way to the top or to the end of the page. |
| onScrolling | ActionData: ScrollData
Denotes that the user is scrolling a scrollable component. |
- Author:
- katherine
- See Also:
-
Scrollview
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIScrollview.Builder<I extends IAnyGroup>Builds instances of typeIScrollview.static enumSpecifies the orient ofIScrollviewcomponentstatic classBuilds an updater of typeIScrollviewforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IScrollview<IAnyGroup>Constant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns current orient (horizontal or vertical).default StringReturns the client widget class.static <I extends IAnyGroup>
IScrollview<I>of(I... children) Returns the instance with the given any group children.static <I extends IAnyGroup>
IScrollview<I>Returns the instance with the given any group children.static <I extends IAnyGroup>
IScrollview<I>Returns the instance with the given id.static <I extends IAnyGroup>
IScrollview<I>Returns the instance with the given size, width and height.withOrient(String orient) Returns a copy ofthisimmutable component with the specifiedorient.default IScrollview<I>withOrient(IScrollview.Orient orient) Returns a copy ofthisimmutable component with the specifiedorient.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:
"zkmax.layout.Scrollview"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getOrient
Returns current orient (horizontal or vertical).Default:
"vertical" -
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- Either"horizontal"or"vertical"Default:
"vertical".- Returns:
- A modified copy of the
thisobject
-
withOrient
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- Either"horizontal"or"vertical"Default:
"vertical".- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
-
of
Returns the instance with the given any group children.- Parameters:
children- The children belong to any group- See Also:
-
ofSize
Returns the instance with the given size, width and height.- Parameters:
width- The width of the componentheight- The height of the component
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-