Package org.zkoss.stateless.sul
Interface IAbsolutelayout
- All Superinterfaces:
IAnyGroup<IAbsolutelayout>,IChildable<IAbsolutelayout,,IAbsolutechildren<IAnyGroup>> IComponent<IAbsolutelayout>,IHtmlBasedComponent<IAbsolutelayout>,IXulElement<IAbsolutelayout>
public interface IAbsolutelayout
extends IXulElement<IAbsolutelayout>, IAnyGroup<IAbsolutelayout>, IChildable<IAbsolutelayout,IAbsolutechildren<IAnyGroup>>
Immutable
Absolutelayout component
An Absolutelayout component can contain absolute positioned multiple absolutechildren components.
Example
@RichletMapping("/example")
public IComponent example() {
return IAbsolutelayout.of(IAbsolutechildren.of(60, 100,
IWindow.ofTitle("X=60, Y=100").withBorder("normal")
.withChildren(ILabel.of("Window 1"))),
IAbsolutechildren.of(160, 200,
IWindow.ofTitle("X=160, Y=200").withBorder("normal")
.withChildren(ILabel.of("Window 2"))),
IAbsolutechildren.of(260, 300,
IWindow.ofTitle("X=260, Y=300").withBorder("normal")
.withChildren(ILabel.of("Window 3"))));
}
}
- Author:
- katherine
- See Also:
-
Absolutelayout
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIAbsolutelayout.static classBuilds an updater of typeIAbsolutelayoutforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IAbsolutelayoutConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the client widget class.static IAbsolutelayoutof(Iterable<? extends IAbsolutechildren<IAnyGroup>> children) Returns the instance with the givenIAbsolutechildrenchildren.static IAbsolutelayoutof(IAbsolutechildren<IAnyGroup>... children) Returns the instance with the givenIAbsolutechildrenchildren.static IAbsolutelayoutReturns the instance with the given id.static IAbsolutelayoutReturns the instance with the given size, width and height.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.Absolutelayout"- Specified by:
getWidgetClassin interfaceIComponent<IAbsolutelayout>
-
of
Returns the instance with the givenIAbsolutechildrenchildren.- Parameters:
children- The children ofIAbsolutechildren
-
of
Returns the instance with the givenIAbsolutechildrenchildren.- Parameters:
children- The children ofIAbsolutechildren
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
ofSize
Returns the instance with the given size, width and height.- Parameters:
width- The width of the componentheight- The height of the component
-