Package org.zkoss.stateless.sul
Interface IReadonly<I extends IComponent>
-
- All Known Subinterfaces:
IBandbox
,ICombobox
,IDatebox
,IDateTimeFormatInputElement<I>
,IDecimalbox
,IDoublebox
,IDoublespinner
,IFormatInputElement<I,ValueType>
,IInputElement<I,ValueType>
,IIntbox
,ILongbox
,INumberInputElement<I,ValueType>
,IRating
,ISpinner
,ITextbox
,ITextboxBase<I>
,ITimebox
,ITimepicker
public interface IReadonly<I extends IComponent>
ImmutableReadonly
interface.Indicate a component can be set to readonly
- Author:
- katherine
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isReadonly()
Returns whether it is readonly.I
withReadonly(boolean readonly)
Returns a copy ofthis
immutable component with the specifiedreadonly
.
-
-
-
Method Detail
-
isReadonly
default boolean isReadonly()
Returns whether it is readonly.Default:
false
.
-
withReadonly
I withReadonly(boolean readonly)
Returns a copy ofthis
immutable component with the specifiedreadonly
.Sets whether it's readonly.
- Parameters:
readonly
-true
means readonly.Default:
false
.- Returns:
- A modified copy of the
this
object
-
-