Package io.jmix.flowui.facet.settings
Class AbstractUiComponentSettings<S extends UiComponentSettings<S>>
java.lang.Object
io.jmix.flowui.facet.settings.AbstractUiComponentSettings<S>
- All Implemented Interfaces:
UiComponentSettings<S>
- Direct Known Subclasses:
AbstractUiComponentSettingsJson
public abstract class AbstractUiComponentSettings<S extends UiComponentSettings<S>>
extends Object
implements UiComponentSettings<S>
Abstract base class that partially implements the
UiComponentSettings interface
and provides common functionality related to managing settings for a specific Component.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidsetModified(boolean modified) Set totrueif screen settings changed manually.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.flowui.facet.settings.UiComponentSettings
delete, delete, getBoolean, getDouble, getInteger, getLong, getSettings, getSettingsOrCreate, getString, initialize, put, put, put, put, put, put, serialize
-
Field Details
-
ownerId
-
modified
protected boolean modified
-
-
Constructor Details
-
AbstractUiComponentSettings
-
-
Method Details
-
getOwnerId
- Specified by:
getOwnerIdin interfaceUiComponentSettings<S extends UiComponentSettings<S>>- Returns:
- a
Componentid to which settings are corresponded
-
setModified
public void setModified(boolean modified) Description copied from interface:UiComponentSettingsSet totrueif screen settings changed manually. It guarantees that settings will be persisted.- Specified by:
setModifiedin interfaceUiComponentSettings<S extends UiComponentSettings<S>>- Parameters:
modified- whether settings were modified
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceUiComponentSettings<S extends UiComponentSettings<S>>- Returns:
trueif settings were modified
-