Package org.zkoss.stateless.sul
Interface IDiv<I extends IAnyGroup>
-
- All Superinterfaces:
IAnyGroup<IDiv<I>>
,IChildable<IDiv<I>,I>
,IComponent<IDiv<I>>
,IHtmlBasedComponent<IDiv<I>>
,IXulElement<IDiv<I>>
public interface IDiv<I extends IAnyGroup> extends IXulElement<IDiv<I>>, IAnyGroup<IDiv<I>>, IChildable<IDiv<I>,I>
ImmutableDiv
component.The same as HTML DIV tag. It is one of the most lightweight containers to group child component for, say, assigning CSS or making more sophisticated layout. Div is displayed as block that the following sibling won't be displayed in the same vertical position; as if there is a line break before and after it.
- Author:
- katherine
- See Also:
Div
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IDiv.Builder<I extends IAnyGroup>
Builds instances of typeIDiv
.static class
IDiv.Updater
Builds an updater of typeIDiv
forUiAgent.smartUpdate(Locator, SmartUpdater)
.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.String
getWidgetClass()
Returns the client widget class.static <I extends IAnyGroup>
IDiv<I>of(I... children)
Returns the instance with the given any group children.static <I extends IAnyGroup>
IDiv<I>of(java.lang.Iterable<? extends I> children)
Returns the instance with the given any group children.static <I extends IAnyGroup>
IDiv<I>ofId(java.lang.String id)
Returns the instance with the given id.static <I extends IAnyGroup>
IDiv<I>ofSize(java.lang.String width, java.lang.String height)
Returns the instance with the given size, width and height.-
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
-
-
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.wgt.Div"
- Specified by:
getWidgetClass
in interfaceIComponent<I extends IAnyGroup>
-
of
static <I extends IAnyGroup> IDiv<I> of(java.lang.Iterable<? extends I> children)
Returns the instance with the given any group children.- Parameters:
children
- The children belong to any group- See Also:
IAnyGroup
-
of
static <I extends IAnyGroup> IDiv<I> of(I... children)
Returns the instance with the given any group children.- Parameters:
children
- The children belong to any group- See Also:
IAnyGroup
-
ofId
static <I extends IAnyGroup> IDiv<I> ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id
- The id to identify this component
-
-