Class EntityValueScreen
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.dashboardsui.screen.parameter.fragment.EntityValueScreen
- All Implemented Interfaces:
ValueFragment
,Window.Committable
,FrameOwner
@UiController("dshbrd_EntityValue.screen")
@UiDescriptor("entity-value-screen.xml")
public class EntityValueScreen
extends Screen
implements ValueFragment, Window.Committable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
-
Field Summary
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
Fields inherited from interface io.jmix.dashboardsui.screen.parameter.fragment.ValueFragment
VALUE, VALUE_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancelAndClose
(Button.ClickEvent event) void
Commit changes and close the window.void
commitAndClose
(Button.ClickEvent event) getValue()
boolean
void
onInit
(Screen.InitEvent event) Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, isScreenAction, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
entityValueFragment
-
prevValue
-
-
Constructor Details
-
EntityValueScreen
public EntityValueScreen()
-
-
Method Details
-
onInit
-
getValue
- Specified by:
getValue
in interfaceValueFragment
-
commitAndClose
-
cancelAndClose
-
isModified
public boolean isModified()- Specified by:
isModified
in interfaceWindow.Committable
- Returns:
- whether the window contains uncommitted changes
-
commitAndClose
public void commitAndClose()Description copied from interface:Window.Committable
Commit changes and close the window.- Specified by:
commitAndClose
in interfaceWindow.Committable
-