Package org.zkoss.stateless.sul
Interface IListhead
- All Superinterfaces:
IChildable<IListhead,,IListheader> IComponent<IListhead>,IHeadersElement<IListhead>,IHtmlBasedComponent<IListhead>,IListboxComposite<IListhead>,IMeshComposite<IListhead>,IXulElement<IListhead>
public interface IListhead
extends IHeadersElement<IListhead>, IChildable<IListhead,IListheader>, IListboxComposite<IListhead>
Immutable
Listhead component
A list headers used to define multi-columns and/or headers.
- Author:
- katherine
- See Also:
-
Listhead
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIListhead.static classBuilds an updater of typeIListheadforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the height of the component.default StringgetHflex()Return horizontal flex hint of this component.default StringReturns the ID of the Menupopup (IMenupopup) that should appear when the user clicks on the element.default StringgetVflex()Return vertical flex hint of this component.default StringReturns the client widget class.default StringgetWidth()Returns the width of the component.default booleanReturns whether to enable grouping of columns with the header context menu.default booleanReturns whether to enable hiding of columns with the header context menu.static IListheadof(Iterable<? extends IListheader<IAnyGroup>> children) Returns the instance with the givenIColumnchildren.static IListheadof(IListheader<IAnyGroup>... children) Returns the instance with the givenIColumnchildren.static IListheadReturns the instance with the given id.default voidrenderProperties(org.zkoss.zk.ui.sys.ContentRenderer renderer) Internal usewithColumnsgroup(boolean columnsgroup) Returns a copy ofthisimmutable component with the specifiedcolumnsgroup.withColumnshide(boolean columnshide) Returns a copy ofthisimmutable component with the specifiedcolumnshide.default IListheadwithHeight(String height) default IListheadwithMenupopup(String menupopup) Returns a copy ofthisimmutable component with the specifiedmenupopup.default IListheaddefault IListheadMethods 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.IHeadersElement
isSizable, withSizableMethods inherited from interface org.zkoss.stateless.sul.IHtmlBasedComponent
getClientAction, getDraggable, getDroppable, getLeft, getRenderdefer, getSclass, getSkeleton, getStyle, getTabindex, getTooltiptext, getTop, getZclass, getZIndex, isFocus, withClientAction, withDraggable, withDroppable, withFocus, withLeft, withRenderdefer, withSclass, withSkeleton, withStyle, withTabindex, withTabindex, withTooltiptext, withTop, 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.sel.Listhead"- Specified by:
getWidgetClassin interfaceIComponent<IListhead>- Returns:
-
getWidth
Description copied from interface:IHtmlBasedComponentReturns the width of the component. If not specified,nullis assumed.Default:
null- Specified by:
getWidthin interfaceIHtmlBasedComponent<IListhead>
-
withWidth
- Specified by:
withWidthin interfaceIHtmlBasedComponent<IListhead>- 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<IListhead>
-
withHflex
- Specified by:
withHflexin interfaceIHtmlBasedComponent<IListhead>- Parameters:
hflex- The horizontal flex hint.Default:
null- Returns:
- A modified copy of the
thisobject
-
getHeight
Description copied from interface:IHtmlBasedComponentReturns the height of the component. If not specified,nullis assumed.Default:
null- Specified by:
getHeightin interfaceIHtmlBasedComponent<IListhead>
-
withHeight
- Specified by:
withHeightin interfaceIHtmlBasedComponent<IListhead>- Parameters:
height- The height of the component.Default:
null- Returns:
- A modified copy of the
thisobject
-
getVflex
Description copied from interface:IHtmlBasedComponentReturn vertical flex hint of this component.Default:
null- Specified by:
getVflexin interfaceIHtmlBasedComponent<IListhead>
-
withVflex
- Specified by:
withVflexin interfaceIHtmlBasedComponent<IListhead>- Parameters:
vflex- The vertical flex hint.Default:
null- Returns:
- A modified copy of the
thisobject
-
isColumnshide
default boolean isColumnshide()Returns whether to enable hiding of columns with the header context menu.Default:
true. -
withColumnshide
Returns a copy ofthisimmutable component with the specifiedcolumnshide.Sets whether to enable hiding of columns with the header context menu.
- Parameters:
columnshide- Whether to enable hiding of columns with the header context menu.Default:
true.- Returns:
- A modified copy of the
thisobject
-
isColumnsgroup
default boolean isColumnsgroup()Returns whether to enable grouping of columns with the header context menu.Default:
true. -
withColumnsgroup
Returns a copy ofthisimmutable component with the specifiedcolumnsgroup.Sets whether to enable grouping of columns with the header context menu.
- Parameters:
columnsgroup- Whether to enable grouping of columns with the header context menu.Default:
true.- Returns:
- A modified copy of the
thisobject
-
getMenupopup
Returns the ID of the Menupopup (IMenupopup) that should appear when the user clicks on the element.Default:
"none"(a default menupopup). -
withMenupopup
Returns a copy ofthisimmutable component with the specifiedmenupopup.Sets the ID of the menupopup (
IMenupopup) that should appear when the user clicks on the element of each column.- Parameters:
menupopup- The ID of the menupopup (IMenupopup) that should appear when the user clicks on the element of each column.Default:
"none".- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the givenIColumnchildren.- Parameters:
children- The children ofIColumn
-
of
Returns the instance with the givenIColumnchildren.- Parameters:
children- The children ofIColumn
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
renderProperties
Internal use- Specified by:
renderPropertiesin interfaceIComponent<IListhead>- Specified by:
renderPropertiesin interfaceIHeadersElement<IListhead>- Specified by:
renderPropertiesin interfaceIHtmlBasedComponent<IListhead>- Specified by:
renderPropertiesin interfaceIXulElement<IListhead>- Parameters:
renderer-- Throws:
IOException
-