Interface AttributeWriteReadOnly

    • Method Detail

      • isReadOnly

        default boolean isReadOnly()
        Returns:
        true if this widget is read-only (value can not be edited by the user and is displayed as view only like a label), false otherwise. The read-only flag is different from enabled as a read-only widget is not grayed out but rather visualizes its value as an output (like a label).
      • setReadOnly

        void setReadOnly​(boolean readOnly)
        Switches this widget between view (read-only true) and edit (read-only false) mode. This may also have effects such that a UiButtonPanel is showing a "Save" button only in edit mode, while it shows an "Edit" button in read-only mode that switches to edit mode.
        A UiComposite will propagate the read-only state to all its children when this method is called. Please note that several widgets such as UiLabel are always read-only. In such case this method will have no effect.
        Parameters:
        readOnly - the new value of isReadOnly().