Package org.zkoss.stateless.sul
Interface IReadonly<I extends IComponent>
-
- All Known Subinterfaces:
IBandbox,ICombobox,IDatebox,IDateTimeFormatInputElement<I>,IDecimalbox,IDoublebox,IDoublespinner,IFormatInputElement<I,ValueTypeT>,IInputElement<I,ValueTypeT>,IIntbox,ILongbox,INumberInputElement<I,ValueTypeT>,IRating,ISpinner,ITextbox,ITextboxBase<I>,ITimebox,ITimepicker
public interface IReadonly<I extends IComponent>ImmutableReadonlyinterface.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 booleanisReadonly()Returns whether it is readonly.IwithReadonly(boolean readonly)Returns a copy ofthisimmutable 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 ofthisimmutable component with the specifiedreadonly.Sets whether it's readonly.
- Parameters:
readonly-truemeans readonly.Default:
false.- Returns:
- A modified copy of the
thisobject
-
-