Package org.zkoss.stateless.sul
Interface IRowlayout
- All Superinterfaces:
IAnyGroup<IRowlayout>,IChildable<IRowlayout,,IRowchildren> IComponent<IRowlayout>,IHtmlBasedComponent<IRowlayout>,IXulElement<IRowlayout>
public interface IRowlayout
extends IXulElement<IRowlayout>, IChildable<IRowlayout,IRowchildren>, IAnyGroup<IRowlayout>
Immutable
Rowlayout component
Divide the parent container into a row of equal-width columns separated by spacings. Stacking multiple rowlayout components with the same configuration creates a grid inside the parent container.
- Author:
- katherine
- See Also:
-
Rowlayout
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIRowlayout.static classBuilds an updater of typeIRowlayoutforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IRowlayoutConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringgetHflex()Return horizontal flex hint of this component.default intgetNcols()Returns number of columns to divide the row intodefault StringReturns spacing between columns should be given as a ratio to the column width.default StringReturns the client widget class.default StringgetWidth()Returns the width of the component.static IRowlayoutof(Iterable<? extends IRowchildren<IAnyGroup>> children) Returns the instance with the givenIRowchildrenchildren.static IRowlayoutof(IRowchildren<IAnyGroup>... children) Returns the instance with the givenIRowchildrenchildren.static IRowlayoutReturns the instance with the given id.default IRowlayoutReadonlywithNcols(int ncols) Returns a copy ofthisimmutable component with the specifiedncols.withSpacing(String spacing) Returns a copy ofthisimmutable component with the specifiedspacing.default IRowlayoutReadonly.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.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:
"zkmax.layout.Rowlayout"- Specified by:
getWidgetClassin interfaceIComponent<IRowlayout>
-
getWidth
Description copied from interface:IHtmlBasedComponentReturns the width of the component. If not specified,nullis assumed.Default:
null- Specified by:
getWidthin interfaceIHtmlBasedComponent<IRowlayout>
-
withWidth
Readonly.- Specified by:
withWidthin interfaceIHtmlBasedComponent<IRowlayout>- 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<IRowlayout>
-
withHflex
Readonly- Specified by:
withHflexin interfaceIHtmlBasedComponent<IRowlayout>- Parameters:
hflex- The horizontal flex hint.Default:
null- Returns:
- A modified copy of the
thisobject
-
getNcols
default int getNcols()Returns number of columns to divide the row intoDefault:
12 -
withNcols
Returns a copy ofthisimmutable component with the specifiedncols.Sets the number of columns to divide the row into
- Parameters:
ncols- The number of columns to divide the row intoDefault:
12.- Returns:
- A modified copy of the
thisobject
-
getSpacing
Returns spacing between columns should be given as a ratio to the column width. e.g. "1/3", "33.3%", or "0.3333"Default:
20.0/60.0 = 0.3333... -
withSpacing
Returns a copy ofthisimmutable component with the specifiedspacing.Sets the spacing between columns should be given as a ratio to the column width.
- Parameters:
spacing- The spacing between columns should be given as a ratio to the column width.Default:
"0.333333333333333".- Returns:
- A modified copy of the
thisobject
-
of
Returns the instance with the givenIRowchildrenchildren.- Parameters:
children- The children ofIRowchildren
-
of
Returns the instance with the givenIRowchildrenchildren.- Parameters:
children- The children ofIRowchildren
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-