Package org.zkoss.stateless.sul
Interface ITreerow
-
- All Superinterfaces:
IChildable<ITreerow,ITreecell<IAnyGroup>>,IComponent<ITreerow>,IHtmlBasedComponent<ITreerow>,ITreeitemComposite<ITreerow>,IXulElement<ITreerow>
public interface ITreerow extends IXulElement<ITreerow>, IChildable<ITreerow,ITreecell<IAnyGroup>>, ITreeitemComposite<ITreerow>
ImmutableTreerowcomponent- Author:
- jumperchen
- See Also:
Treerow
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classITreerow.BuilderBuilds instances of typeITreerow.static classITreerow.UpdaterBuilds an updater of typeITreerowforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetImage()Returns the image of the firstITreecellit contains, or null if no such treecell.default java.lang.StringgetLabel()Returns the label of the firstITreecellit contains, or null if no such treecell.default java.lang.StringgetWidgetClass()Returns the client widget class.static ITreerowof(java.lang.Iterable<? extends ITreecell<IAnyGroup>> children)Returns the instance with the giventreecells.static ITreerowof(java.lang.String label)Returns the instance with aITreecellholding the given label.static ITreerowof(java.lang.String label, java.lang.String image)Returns the instance with aITreecellholding the given label and image.static ITreerowof(ITreecell<IAnyGroup>... children)Returns the instance with the giventreecells.static ITreerowofImage(java.lang.String image)Returns the instance with aITreecellholding the given image.ITreerowwithImage(java.lang.String image)Returns a copy ofthisimmutable component with the specifiedimage.ITreerowwithLabel(java.lang.String label)Returns a copy ofthisimmutable component with the specifiedlabel.-
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 ITreerow DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.sel.Treerow"- Specified by:
getWidgetClassin interfaceIComponent<ITreerow>
-
getImage
@Nullable default java.lang.String getImage()
Returns the image of the firstITreecellit contains, or null if no such treecell.
-
withImage
ITreerow withImage(@Nullable java.lang.String image)
Returns a copy ofthisimmutable component with the specifiedimage.Sets the image of the first
ITreecellit contains.Note: if no any treecell exists, this method creates one automatically.
- Parameters:
image- The image of the firstITreecellit contains.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getLabel
@Nullable default java.lang.String getLabel()
Returns the label of the firstITreecellit contains, or null if no such treecell.
-
withLabel
ITreerow withLabel(@Nullable java.lang.String label)
Returns a copy ofthisimmutable component with the specifiedlabel.Sets the label of the first
ITreecellit contains.Note: if no any treecell exists, this method creates one automatically.
- Parameters:
label- The label of the firstITreecellit contains.Default:
null.- Returns:
- A modified copy of the
thisobject
-
of
static ITreerow of(java.lang.String label)
Returns the instance with aITreecellholding the given label.- Parameters:
label- The label of the firstITreecell
-
of
static ITreerow of(java.lang.String label, java.lang.String image)
Returns the instance with aITreecellholding the given label and image.
-
of
static ITreerow of(ITreecell<IAnyGroup>... children)
Returns the instance with the giventreecells.- Parameters:
children- The tree cells of the component
-
of
static ITreerow of(java.lang.Iterable<? extends ITreecell<IAnyGroup>> children)
Returns the instance with the giventreecells.- Parameters:
children- The tree cells of the component
-
-