Class ReadOnlyTracker.ReadOnlyChangeEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<View<?>>
io.jmix.flowui.view.ReadOnlyTracker.ReadOnlyChangeEvent
All Implemented Interfaces:
Serializable
Enclosing interface:
ReadOnlyTracker

public static class ReadOnlyTracker.ReadOnlyChangeEvent extends com.vaadin.flow.component.ComponentEvent<View<?>>
The event is dispatched when a view changes its read-only state. Use this event listener to perform additional actions on view components to change their read-only state.

For example:


     @Subscribe
     public void onReadOnlyChangeEvent(ReadOnlyChangeEvent event) {
          myComponent.setReadOnly(event.isReadOnly());
     }
 
See Also:
  • Field Details

    • readOnly

      protected boolean readOnly
  • Constructor Details

    • ReadOnlyChangeEvent

      public ReadOnlyChangeEvent(View<?> source, boolean readOnly)
  • Method Details

    • isReadOnly

      public boolean isReadOnly()
      Returns:
      true if the view is read-only, false otherwise