Uses of Interface
is.codion.common.state.ObservableState
Packages that use ObservableState
Package
Description
Condition related classes.
Selection related classes.
See
State
and ObservableState
.Package configuration values:
EntityApplicationModel.USERNAME_PREFIX
EntityApplicationModel.SAVE_DEFAULT_USERNAME
EntityEditModel.POST_EDIT_EVENTS
EntityEditModel.EntityEditor.PERSIST_FOREIGN_KEYS
EntityQueryModel.LIMIT
EntityTableModel.ON_INSERT
EntityTableModel.HANDLE_EDIT_EVENTS
EntityTableModel.ORDER_QUERY_BY_SORT_ORDER
ForeignKeyModelLink.SET_CONDITION_ON_INSERT
ForeignKeyModelLink.SET_VALUE_ON_INSERT
ForeignKeyModelLink.REFRESH_ON_SELECTION
ForeignKeyModelLink.CLEAR_CONDITION_ON_EMPTY_SELECTION
ForeignKeyModelLink.CLEAR_VALUE_ON_EMPTY_SELECTION
EntitySearchModel.DEFAULT_LIMIT
Component builder related classes.
Package configuration values:
UnderlineModifiedIndicatorFactory.UNDERLINE_STYLE
Package configuration values:
ExceptionDialogBuilder.SYSTEM_PROPERTIES
LookAndFeelComboBox.INCLUDE_INSTALLED_LOOK_AND_FEELS
Look and feel related classes
Package configuration values:
DomainGeneratorModel.DEFAULT_DOMAIN_PACKAGE
DomainGeneratorModel.DEFAULT_SOURCE_DIRECTORY
-
Uses of ObservableState in is.codion.common.model.condition
Methods in is.codion.common.model.condition that return ObservableState -
Uses of ObservableState in is.codion.common.model.filter
Methods in is.codion.common.model.filter that return ObservableStateModifier and TypeMethodDescriptionfinal ObservableState
FilterModel.AbstractRefresher.active()
FilterModel.Refresher.active()
Changes to this state are always triggered on the UI thread. -
Uses of ObservableState in is.codion.common.model.selection
Methods in is.codion.common.model.selection that return ObservableState -
Uses of ObservableState in is.codion.common.state
Subinterfaces of ObservableState in is.codion.common.stateModifier and TypeInterfaceDescriptioninterface
A class encapsulating a boolean state, non-nullable with null values translated to false.static interface
A state which combines a number of states, either ANDing or ORing those together when determining its own state.Methods in is.codion.common.state that return ObservableStateModifier and TypeMethodDescriptionObservableState.not()
State.observable()
Returns anObservableState
notified each time the state changesMethods in is.codion.common.state with parameters of type ObservableStateModifier and TypeMethodDescriptionvoid
State.Combination.add
(ObservableState state) Adds a state to this state combinationstatic State.Combination
State.and
(ObservableState... observableStates) Creates a newState.Combination
instance usingConjunction.AND
.static State.Combination
State.combination
(Conjunction conjunction, ObservableState... observableStates) Creates a newState.Combination
instance.static State.Combination
State.or
(ObservableState... observableStates) Creates a newState.Combination
instance usingConjunction.OR
.void
State.Combination.remove
(ObservableState state) Removes a state from this state combinationMethod parameters in is.codion.common.state with type arguments of type ObservableStateModifier and TypeMethodDescriptionstatic State.Combination
State.and
(Collection<? extends ObservableState> observableStates) Creates a newState.Combination
instance usingConjunction.AND
.static State.Combination
State.combination
(Conjunction conjunction, Collection<? extends ObservableState> observableStates) Creates a newState.Combination
instance.static State.Combination
State.or
(Collection<? extends ObservableState> observableStates) Creates a newState.Combination
instance usingConjunction.OR
. -
Uses of ObservableState in is.codion.framework.model
Subinterfaces of ObservableState in is.codion.framework.modelModifier and TypeInterfaceDescriptionstatic interface
Indicates whether the active entity exists in the database.static interface
Indicates whether the active entity is modified, that is, exists and has one or more modified attribute values.Methods in is.codion.framework.model that return ObservableStateModifier and TypeMethodDescriptionEntityQueryModel.conditionChanged()
This state is reset each timeEntityQueryModel.query()
returns successfully.EntitySearchModel.Selection.empty()
EntityTableConditionModel.enabled()
EntityEditModel.EditorValue.modified()
Returns anObservableState
instance indicating whether the value of the given attribute has been modified.EntityEditModel.EditorValue.present()
EntityEditModel.EntityEditor.primaryKeyNull()
EntityEditModel.EditorValue.valid()
EntityEditModel.EntityEditor.valid()
Methods in is.codion.framework.model that return types with arguments of type ObservableStateModifier and TypeMethodDescriptionEntityQueryModel.conditionEnabled()
It can be necessary to prevent the user from selecting too much data, when working with a large dataset. -
Uses of ObservableState in is.codion.plugin.flatlaf.indicator
Methods in is.codion.plugin.flatlaf.indicator with parameters of type ObservableStateModifier and TypeMethodDescriptionvoid
FlatLafValidIndicatorFactory.enable
(JComponent component, ObservableState valid) -
Uses of ObservableState in is.codion.swing.common.ui
Methods in is.codion.swing.common.ui with parameters of type ObservableStateModifier and TypeMethodDescriptionstatic void
Utilities.enableActions
(ObservableState enabledState, Action... actions) Links the given actions to the givenObservableState
, so that the actions are enabled only when the observed state is activestatic void
Utilities.enableComponents
(ObservableState enabledState, JComponent... components) Links the given components to the givenObservableState
, so that each component is enabled only when the observed state is active -
Uses of ObservableState in is.codion.swing.common.ui.component.builder
Methods in is.codion.swing.common.ui.component.builder with parameters of type ObservableStateModifier and TypeMethodDescriptionfinal B
AbstractComponentBuilder.enabled
(ObservableState enabled) ComponentBuilder.enabled
(ObservableState enabled) protected void
AbstractComponentBuilder.enableValidIndicator
(ValidIndicatorFactory validIndicatorFactory, C component, ObservableState valid) Enables a valid indicator on the given component, based on the given valid state instance using the givenValidIndicatorFactory
, override for special handling.final B
AbstractComponentBuilder.modifiedIndicator
(ObservableState modified) ComponentBuilder.modifiedIndicator
(ObservableState modified) Enables a modified indicator based on the given modified state.final B
AbstractComponentBuilder.validIndicator
(ObservableState valid) ComponentBuilder.validIndicator
(ObservableState valid) Enables a valid indicator based on the given valid state. -
Uses of ObservableState in is.codion.swing.common.ui.component.calendar
Methods in is.codion.swing.common.ui.component.calendar with parameters of type ObservableState -
Uses of ObservableState in is.codion.swing.common.ui.component.indicator
Methods in is.codion.swing.common.ui.component.indicator with parameters of type ObservableStateModifier and TypeMethodDescriptionvoid
DefaultValidIndicatorFactory.enable
(JComponent component, ObservableState valid) void
ModifiedIndicatorFactory.enable
(JComponent component, ObservableState modified) Enables the modified indicator for the given component, based on the given modified statevoid
UnderlineModifiedIndicatorFactory.enable
(JComponent component, ObservableState modified) void
ValidIndicatorFactory.enable
(JComponent component, ObservableState valid) Enables the valid indicator for the given component, based on the given valid state -
Uses of ObservableState in is.codion.swing.common.ui.control
Methods in is.codion.swing.common.ui.control that return ObservableStateMethods in is.codion.swing.common.ui.control with parameters of type ObservableState -
Uses of ObservableState in is.codion.swing.common.ui.dialog
Methods in is.codion.swing.common.ui.dialog with parameters of type ObservableStateModifier and TypeMethodDescriptionOkCancelDialogBuilder.cancelEnabled
(ObservableState cancelEnabled) Note that this is overridden byOkCancelDialogBuilder.cancelAction(Action)
.OkCancelDialogBuilder.okEnabled
(ObservableState okEnabled) Note that this is overridden byOkCancelDialogBuilder.okAction(Action)
.InputDialogBuilder.valid
(ObservableState valid) AObservableState
indicating whether the input is valid, this state controls the enabled state of the OK button. -
Uses of ObservableState in is.codion.swing.common.ui.laf
Methods in is.codion.swing.common.ui.laf with parameters of type ObservableState -
Uses of ObservableState in is.codion.tools.generator.model
Methods in is.codion.tools.generator.model that return ObservableState