Package org.zkoss.stateless.sul
Interface IDetail<I extends IAnyGroup>
- All Superinterfaces:
IChildable<IDetail<I>,,I> IComponent<IDetail<I>>,IDetailChild<IDetail<I>>,IHtmlBasedComponent<IDetail<I>>,IXulElement<IDetail<I>>
public interface IDetail<I extends IAnyGroup>
extends IDetailChild<IDetail<I>>, IChildable<IDetail<I>,I>
Immutable
Detail component
The detail component is used to display a detailed section where a master row and multiple detail rows are on the same row.
Support @Action
| Name | Action Type |
|---|---|
| onOpen | ActionData: OpenData
Denotes user has opened or closed a component. It is useful to implement load-on-demand by listening to the onOpen action, and creating components when the first time the component is opened. |
- Author:
- katherine
- See Also:
-
Detail
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classIDetail.Builder<I extends IAnyGroup>Builds instances of typeIDetail.static classBuilds an updater of typeIDetailforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the style class used for the content block.Returns the CSS style for the content block of the window.default StringReturns the client widget class.default booleanisOpen()Returns whether the detail is open.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.withContentSclass(String contentSclass) Returns a copy ofthisimmutable component with the specifiedcontentSclass.withContentStyle(String contentStyle) Returns a copy ofthisimmutable component with the specifiedcontentStyle.withOpen(boolean open) Returns a copy ofthisimmutable component with the specifiedopen.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:
"zkex.grid.Detail"- Specified by:
getWidgetClassin interfaceIComponent<I extends IAnyGroup>
-
getContentSclass
Returns the style class used for the content block.Default:
null -
withContentSclass
Returns a copy ofthisimmutable component with the specifiedcontentSclass.Sets the style class used for the content block.
- Parameters:
contentSclass- The style class used for the content block.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getContentStyle
Returns the CSS style for the content block of the window.Default:
null -
withContentStyle
Returns a copy ofthisimmutable component with the specifiedcontentStyle.Sets the CSS style for the content block of the window.
- Parameters:
contentStyle- The CSS style for the content block of the window.Default:
null.- Returns:
- A modified copy of the
thisobject
-
isOpen
default boolean isOpen()Returns whether the detail is open.Default:
false -
withOpen
Returns a copy ofthisimmutable component with the specifiedopen.Sets whether the detail is open.
- Parameters:
open- Whether the detail is open.Default:
false.- 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
-