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>
Immutable
Inputgroup component
An 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 ClassesModifier and TypeInterfaceDescriptionstatic classBuilds instances of typeIInputgroup.static enumSpecifies the orient ofIInputgroupcomponentstatic classBuilds an updater of typeIInputgroupforUiAgent.smartUpdate(Locator, SmartUpdater). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IInputgroupConstant for default attributes of this immutable component. -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturns the orient.default StringReturns the client widget class.static IInputgroupof(Iterable<? extends IChildrenOfInputgroup> children) Returns the instance with the givenIChildrenOfInputgroupchildren.static IInputgroupof(IChildrenOfInputgroup... children) Returns the instance with the givenIChildrenOfInputgroupchildren.static IInputgroupReturns the instance with the given id.withOrient(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, 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:
"zul.wgt.Inputgroup"- Specified by:
getWidgetClassin interfaceIComponent<IInputgroup>- Returns:
-
getOrient
Returns the orient.Default:
"horizontal". -
withOrient
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
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
Returns the instance with the givenIChildrenOfInputgroupchildren.- Parameters:
children- The children ofIChildrenOfInputgroup
-
of
Returns the instance with the givenIChildrenOfInputgroupchildren.- Parameters:
children- The children ofIChildrenOfInputgroup
-
ofId
Returns the instance with the given id.- Parameters:
id- The id to identify this component.
-