Package org.zkoss.stateless.sul
Interface IIntbox
-
- All Superinterfaces:
IAnyGroup<IIntbox>,IChildrenOfInputgroup<IIntbox>,IComponent<IIntbox>,IFormatInputElement<IIntbox,java.lang.Integer>,IHtmlBasedComponent<IIntbox>,IInputElement<IIntbox,java.lang.Integer>,INumberInputElement<IIntbox,java.lang.Integer>,IReadonly<IIntbox>,IXulElement<IIntbox>
public interface IIntbox extends INumberInputElement<IIntbox,java.lang.Integer>, IAnyGroup<IIntbox>
ImmutableIntboxcomponentAn edit box for holding an integer.
Constraint
You could specify what value to accept for input controls by use of the
constraintattribute. It could be a combination ofno positive,no negative,no zero, andno empty.- Author:
- katherine
- See Also:
Intbox
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classIIntbox.BuilderBuilds instances of typeIIntbox.static classIIntbox.UpdaterBuilds an updater of typeIIntboxforUiAgent.smartUpdate(Locator, SmartUpdater).
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringgetWidgetClass()Returns the client widget class.static IIntboxof(int value)Returns the instance with the given value.static IIntboxof(java.lang.Integer value)Returns the instance with the given value.static IIntboxofCols(int cols)Returns the instance with the given cols.static IIntboxofConstraint(java.lang.String constraint)Returns the instance with the given constraint.static IIntboxofId(java.lang.String id)Returns the instance with the given id.IIntboxwithValue(java.lang.Integer value)Returns a copy ofthisimmutable component with the specifiedvalue.-
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.IFormatInputElement
getFormat, withFormat
-
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.IInputElement
getConstraint, getErrorboxIconSclass, getErrorboxSclass, getErrorMessage, getInputAttributes, getInstant, getMaxlength, getName, getPlaceholder, getValue, isDisabled, isInplace, withCols, withConstraint, withDisabled, withErrorboxIconSclass, withErrorboxSclass, withErrorMessage, withInplace, withInputAttributes, withInstant, withMaxlength, withName, withPlaceholder
-
Methods inherited from interface org.zkoss.stateless.sul.INumberInputElement
getCols, getLocale, getRoundingMode, withLocale, withLocale, withRoundingMode
-
Methods inherited from interface org.zkoss.stateless.sul.IReadonly
isReadonly, withReadonly
-
Methods inherited from interface org.zkoss.stateless.sul.IXulElement
getContext, getCtrlKeys, getPopup, getTooltip, withContext, withCtrlKeys, withPopup, withTooltip
-
-
-
-
Field Detail
-
DEFAULT
static final IIntbox DEFAULT
Constant for default attributes of this immutable component.
-
-
Method Detail
-
withValue
IIntbox withValue(java.lang.Integer value)
Description copied from interface:IInputElementReturns a copy ofthisimmutable component with the specifiedvalue.Sets the value of the input component.
- Specified by:
withValuein interfaceIInputElement<IIntbox,java.lang.Integer>- Parameters:
value- The value of the input component.Default:
null.- Returns:
- A modified copy of the
thisobject
-
getWidgetClass
default java.lang.String getWidgetClass()
Returns the client widget class.Default:
"zul.inp.Intbox"- Specified by:
getWidgetClassin interfaceIComponent<IIntbox>
-
of
static IIntbox of(java.lang.Integer value)
Returns the instance with the given value.- Parameters:
value- The integer value
-
of
static IIntbox of(int value)
Returns the instance with the given value.- Parameters:
value- The integer value
-
ofCols
static IIntbox ofCols(int cols)
Returns the instance with the given cols.- Parameters:
cols- The cols which determines the visible width
-
ofConstraint
static IIntbox ofConstraint(java.lang.String constraint)
Returns the instance with the given constraint.- Parameters:
constraint- The intbox constraint
-
ofId
static IIntbox ofId(java.lang.String id)
Returns the instance with the given id.- Parameters:
id- The id to identify this component
-
-