Package org.zkoss.stateless.sul
Interface ITreecell<I extends IAnyGroup>
- All Superinterfaces:
IChildable<ITreecell<I>,,I> IChildrenOfInputgroup<ITreecell<I>>,IComponent<ITreecell<I>>,IHtmlBasedComponent<ITreecell<I>>,ILabelElement<ITreecell<I>>,ILabelImageElement<ITreecell<I>>,IXulElement<ITreecell<I>>
public interface ITreecell<I extends IAnyGroup>
extends ILabelImageElement<ITreecell<I>>, IChildable<ITreecell<I>,I>
Immutable
Treecell component
ITreecell represents one column in a treerow by sequential. Treecell can contain any components in it, such as label, image, textbox etc..
- Author:
- jumperchen
- See Also:
-
Treecell
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classITreecell.Builder<I extends IAnyGroup>Builds instances of typeITreecell.static classBuilds an updater of typeITreecellforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetHflex()Return horizontal flex hint of this component.default intgetSpan()Returns number of columns to span this cell.default StringReturns the client widget class.default StringgetWidth()Returns the width of the component.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 label.Returns the instance with the given label and image.Returns the instance with the given id.Returns the instance with the given image.withSpan(int span) Returns a copy ofthisimmutable component with the specifiedspan.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, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getVflex, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withHeight, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, withVflex, withZclass, withZIndexMethods inherited from interface org.zkoss.stateless.sul.ILabelElement
getLabel, withLabelMethods inherited from interface org.zkoss.stateless.sul.ILabelImageElement
getHoverImage, getIconSclass, getIconSclasses, getIconTooltip, getIconTooltips, getImage, isPreloadImage, withHoverImage, withIconSclass, withIconSclasses, withIconTooltip, withIconTooltips, withImage, withPreloadImageMethods 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.sel.Treecell"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getWidth
Description copied from interface:IHtmlBasedComponentReturns the width of the component. If not specified,nullis assumed.Default:
null- Specified by:
getWidthin interfaceIHtmlBasedComponent<I extends IAnyGroup>
-
withWidth
- Specified by:
withWidthin interfaceIHtmlBasedComponent<I extends IAnyGroup>- Parameters:
width- The width of the component.Default:
null- Returns:
- A modified copy of the
thisobject
-
getHflex
Description copied from interface:IHtmlBasedComponentReturn horizontal flex hint of this component.Default:
null- Specified by:
getHflexin interfaceIHtmlBasedComponent<I extends IAnyGroup>
-
withHflex
- Specified by:
withHflexin interfaceIHtmlBasedComponent<I extends IAnyGroup>- Parameters:
hflex- The horizontal flex hint.Default:
null- Returns:
- A modified copy of the
thisobject
-
getSpan
default int getSpan()Returns number of columns to span this cell.Default:
1. -
withSpan
Returns a copy ofthisimmutable component with the specifiedspan.Sets the number of columns to span this cell. It is the same as the colspan attribute of HTML TD tag.
- Parameters:
span- The number of columns to span this cell.Default:
1.- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the given label.- Parameters:
label- The label that the cell holds.
-
of
Returns the instance with the given label and image.- Parameters:
label- The label that the cell holds.image- The image that the cell holds.
-
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
-
ofImage
Returns the instance with the given image.- Parameters:
image- The image that the cell holds.
-