Package org.zkoss.stateless.sul
Interface IReadonly<I extends IComponent>
- All Known Subinterfaces:
IBandbox,ICodeeditor,ICombobox,IDatebox,IDaterangebox,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>
Immutable
Readonly interface.
Indicate a component can be set to readonly
- Author:
- katherine
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns whether it is readonly.withReadonly(boolean readonly) Returns a copy ofthisimmutable component with the specifiedreadonly.
-
Method Details
-
isReadonly
default boolean isReadonly()Returns whether it is readonly.Default:
false. -
withReadonly
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
-