public interface HasReadOnly
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReadOnly()
Checks whether this object is in read-only mode.
|
void |
setReadOnly(boolean readOnly)
Sets the new read-only state.
|
static void |
setReadOnly(boolean readOnly,
com.vaadin.flow.component.Component component)
Helper method to update read-only state of a component if it supports the method.
|
boolean isReadOnly()
void setReadOnly(boolean readOnly)
readOnly - Whether the object should be in read-only mode.static void setReadOnly(boolean readOnly,
com.vaadin.flow.component.Component component)
Component.getChildren().readOnly - New state.component - Component.
If it implements HasReadOnly or HasValue, the state will be updated.
If it implements HasEnabled and does not implement HasComponents, read-only means disabled.
Otherwise, nothing happens.Copyright © 2023 Miki. All rights reserved.