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>
ImmutableAbsolutechildrencomponentA 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)andwithY(int)methods.- Author:
- katherine
- See Also:
Absolutechildren,IAbsolutelayout
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIAbsolutechildren.Builder<I extends IAnyGroup>Builds instances of typeIAbsolutechildren.static classIAbsolutechildren.UpdaterBuilds an updater of typeIAbsolutechildrenforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Field Summary
Fields Modifier and Type Field Description static IAbsolutechildren<IAnyGroup>DEFAULTConstant 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 java.lang.StringgetWidgetClass()Returns 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>of(int x, int y, java.lang.Iterable<? extends I> children)Returns the instance with the given x, y, and any group children.static <I extends IAnyGroup>
IAbsolutechildrenofId(java.lang.String id)Returns the instance with the given id.IAbsolutechildren<I>withX(int x)Returns a copy ofthisimmutable component with the specifiedx.IAbsolutechildren<I>withY(int y)Returns a copy ofthisimmutable component with the specifiedy.-
Methods inherited from interface org.zkoss.stateless.sul.IChildable
getChildren, withChildren, withChildren
-
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 IAbsolutechildren<IAnyGroup> DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String 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
IAbsolutechildren<I> withX(int x)
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
IAbsolutechildren<I> withY(int y)
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
static <I extends IAnyGroup> IAbsolutechildren<I> of(int x, int y, java.lang.Iterable<? extends I> children)
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:
IAnyGroup
-
of
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.- Parameters:
x- The x positiony- The y positionchildren- The children belong to any group- See Also:
IAnyGroup
-
of
static <I extends IAnyGroup> IAbsolutechildren of(int x, int y)
Returns the instance with the given x and y.- Parameters:
x- The x positiony- The y position
-
ofId
static <I extends IAnyGroup> IAbsolutechildren ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
-