Package org.zkoss.stateless.sul
Interface IInputgroup
-
- All Superinterfaces:
IAnyGroup<IInputgroup>,IChildable<IInputgroup,IChildrenOfInputgroup>,IComponent<IInputgroup>,IHtmlBasedComponent<IInputgroup>,IXulElement<IInputgroup>
public interface IInputgroup extends IXulElement<IInputgroup>, IAnyGroup<IInputgroup>, IChildable<IInputgroup,IChildrenOfInputgroup>
ImmutableInputgroupcomponentAn inputgroup.
Inspired by Bootstrap’s Input group and Button group. By prepending or appending some components to the input component, you can merge them like a new form-input component.
Example
@RichletMapping("/example") public IComponent example() { return IVlayout.of( IInputgroup.of(ILabel.of("@"), ITextbox.DEFAULT), IInputgroup.of(ITextbox.DEFAULT.withPlaceholder("Recipient's username"), ILabel.of("@example.com")), IInputgroup.of(ILabel.of("$"), ITextbox.DEFAULT, ILabel.of(".00")), IInputgroup.of(ILabel.of("With textarea"), ITextbox.ofCols(30).withRows(5).withMultiline(true)) ); }- Author:
- katherine
- See Also:
Inputgroup
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIInputgroup.BuilderBuilds instances of typeIInputgroup.static classIInputgroup.OrientSpecifies the orient ofIInputgroupcomponentstatic classIInputgroup.UpdaterBuilds an updater of typeIInputgroupforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Field Summary
Fields Modifier and Type Field Description static IInputgroupDEFAULTConstant for default attributes of this immutable component.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetOrient()Returns the orient.default java.lang.StringgetWidgetClass()Returns the client widget class.static IInputgroupof(java.lang.Iterable<? extends IChildrenOfInputgroup> children)Returns the instance with the givenIChildrenOfInputgroupchildren.static IInputgroupof(IChildrenOfInputgroup... children)Returns the instance with the givenIChildrenOfInputgroupchildren.static IInputgroupofId(java.lang.String id)Returns the instance with the given id.IInputgroupwithOrient(java.lang.String orient)Returns a copy ofthisimmutable component with the specifiedorient.default IInputgroupwithOrient(IInputgroup.Orient orient)Returns a copy ofthisimmutable component with the specifiedorient.-
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 IInputgroup DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.wgt.Inputgroup"- Specified by:
getWidgetClassin interfaceIComponent<IInputgroup>- Returns:
-
getOrient
default java.lang.String getOrient()
Returns the orient.Default:
"horizontal".
-
withOrient
IInputgroup withOrient(java.lang.String orient)
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- Either"horizontal"or"vertical"Default:
"horizontal".- Returns:
- A modified copy of the
thisobject
-
withOrient
default IInputgroup withOrient(IInputgroup.Orient orient)
Returns a copy ofthisimmutable component with the specifiedorient.Sets the orient of component
- Parameters:
orient- TheorientDefault:
"horizontal".- Returns:
- A modified copy of the
thisobject
-
of
static IInputgroup of(java.lang.Iterable<? extends IChildrenOfInputgroup> children)
Returns the instance with the givenIChildrenOfInputgroupchildren.- Parameters:
children- The children ofIChildrenOfInputgroup
-
of
static IInputgroup of(IChildrenOfInputgroup... children)
Returns the instance with the givenIChildrenOfInputgroupchildren.- Parameters:
children- The children ofIChildrenOfInputgroup
-
ofId
static IInputgroup ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component.
-
-