Package org.zkoss.stateless.sul
Interface ICell<I extends IAnyGroup>
- All Superinterfaces:
IChildable<ICell<I>,,I> IComponent<ICell<I>>,IHtmlBasedComponent<ICell<I>>,IXulElement<ICell<I>>
Immutable
Cell component
The generic cell component to be embedded into IRow
- Author:
- katherine
- See Also:
-
Cell
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classICell.Builder<I extends IAnyGroup>Builds instances of typeICell.static classBuilds an updater of typeICellforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Returns the horizontal alignment.default intReturns number of columns to span.default intReturns number of rows to span.Returns the vertical alignment.default StringReturns the client widget class.of(I... children) Returns the instance with the given any group children.Returns the instance with the given any group children.Returns the instance with the given id.Returns a copy ofthisimmutable component with the specifiedalign.withColspan(int colspan) Returns a copy ofthisimmutable component with the specifiedcolspan.withRowspan(int rowspan) Returns a copy ofthisimmutable component with the specifiedrowspan.withValign(String valign) Returns a copy ofthisimmutable component with the specifiedvalign.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.wgt.Cell"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getAlign
Returns the horizontal alignment.Default:
null(system default: left unless CSS specified). -
withAlign
Returns a copy ofthisimmutable component with the specifiedalign.Sets the horizontal alignment. Allowed values:
"left","right,"center","justify", and"char".- Parameters:
align- the horizontal alignment.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getValign
Returns the vertical alignment.Default:
null(system default: top). -
withValign
Returns a copy ofthisimmutable component with the specifiedvalign.Sets the vertical alignment. Allowed values:
"top","middle,"bottom", and"baseline".- Parameters:
valign- the vertical alignment.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getColspan
default int getColspan()Returns number of columns to span. Default:1. -
withColspan
Returns a copy ofthisimmutable component with the specifiedcolspan.Sets the number of columns to span.
It is the same as the colspan attribute of HTML TD tag.
- Parameters:
colspan- The number of columns to span.Default:
1.- Returns:
- A modified copy of the
thisobject
-
getRowspan
default int getRowspan()Returns number of rows to span. Default:1. -
withRowspan
Returns a copy ofthisimmutable component with the specifiedrowspan.Sets the number of rows to span.
It is the same as the rows attribute of HTML TD tag.
- Parameters:
rowspan- The number of rows to span.Default:
1.- 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:
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-