Package org.zkoss.stateless.sul
Interface IAbsolutechildren<I extends IAnyGroup>
- All Superinterfaces:
IChildable<IAbsolutechildren<I>,,I> IComponent<IAbsolutechildren<I>>,IHtmlBasedComponent<IAbsolutechildren<I>>,IXulElement<IAbsolutechildren<I>>
public interface IAbsolutechildren<I extends IAnyGroup>
extends IXulElement<IAbsolutechildren<I>>, IChildable<IAbsolutechildren<I>,I>
Immutable
Absolutechildren component
A container component that can contain any other ZK component and can only
be contained as direct child of Absolutelayout component. It can be absolutely
positioned within Absolutelayout component by either setting "x" and "y"
attribute or calling withX(int) and withY(int) methods.
- Author:
- katherine
- See Also:
-
AbsolutechildrenIAbsolutelayout
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIAbsolutechildren.Builder<I extends IAnyGroup>Builds instances of typeIAbsolutechildren.static classBuilds an updater of typeIAbsolutechildrenforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IAbsolutechildren<IAnyGroup>Constant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the client widget class.default intgetX()Returns the currentxposition within parent container componentdefault intgetY()Returns the currentyposition within parent container componentstatic <I extends IAnyGroup>
IAbsolutechildrenof(int x, int y) Returns the instance with the given x and y.static <I extends IAnyGroup>
IAbsolutechildren<I>of(int x, int y, I... children) Returns the instance with the given x, y, and any group children.static <I extends IAnyGroup>
IAbsolutechildren<I>Returns the instance with the given x, y, and any group children.static <I extends IAnyGroup>
IAbsolutechildrenReturns the instance with the given id.withX(int x) Returns a copy ofthisimmutable component with the specifiedx.withY(int y) Returns a copy ofthisimmutable component with the specifiedy.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.layout.Absolutechildren"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getX
default int getX()Returns the currentxposition within parent container componentDefault:
0 -
withX
Returns a copy ofthisimmutable component with the specifiedx.Sets current
xposition within parent container component.- Parameters:
x- The x positionDefault:
0.- Returns:
- A modified copy of the
thisobject
-
getY
default int getY()Returns the currentyposition within parent container componentDefault:
0 -
withY
Returns a copy ofthisimmutable component with the specifiedy.Sets current
yposition within parent container component.- Parameters:
y- The y positionDefault:
0.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given x, y, and any group children.- Parameters:
x- The x positiony- The y positionchildren- The children belong to any group- See Also:
-
of
Returns the instance with the given x, y, and any group children.- Parameters:
x- The x positiony- The y positionchildren- The children belong to any group- See Also:
-
of
Returns the instance with the given x and y.- Parameters:
x- The x positiony- The y position
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-