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.USER_PREFERENCES
EntityApplicationModel.RESTORE_DEFAULT_PREFERENCES
EntityApplicationModel.PREFERENCES_KEY
EntityEditModel.EDIT_EVENTS
EntityEditModel.EntityEditor.PERSIST_FOREIGN_KEYS
EntityQueryModel.LIMIT
EntityTableModel.ON_INSERT
EntityTableModel.ORDER_QUERY
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
Common Swing UI utilities and components.
Component builder related classes.
Button and toggle button builders.
Calendar panel component.
Package configuration values:
UnderlineModifiedIndicatorFactory.UNDERLINE_STYLE
Package configuration values:
FilterTableCellRenderer.TABLE_CELL_LEFT_PADDING
FilterTableCellRenderer.TABLE_CELL_RIGHT_PADDING
FilterTableCellRenderer.NUMERICAL_HORIZONTAL_ALIGNMENT
FilterTableCellRenderer.TEMPORAL_HORIZONTAL_ALIGNMENT
FilterTableCellRenderer.BOOLEAN_HORIZONTAL_ALIGNMENT
FilterTableCellRenderer.HORIZONTAL_ALIGNMENT
FilterTableCellRenderer.ALTERNATE_ROW_COLORING
FilterTable.COLUMN_REORDERING
FilterTable.AUTO_RESIZE_MODE
FilterTable.COLUMN_RESIZING
Action control framework for UI components.
Look and feel related classes
-
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 ObservableStateFilterModel.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 TypeInterfaceDescriptioninterfaceA class encapsulating a boolean state.static interfaceA 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 anObservableStatenotified each time the state changesstatic <T> ObservableStateState.present(Observable<T> observable) Methods in is.codion.common.state with parameters of type ObservableStateModifier and TypeMethodDescriptionstatic State.CombinationState.and(ObservableState... observableStates) Creates a newState.Combinationinstance usingConjunction.AND.static State.CombinationState.combination(Conjunction conjunction, ObservableState... observableStates) Creates a newState.Combinationinstance.static State.CombinationState.or(ObservableState... observableStates) Creates a newState.Combinationinstance usingConjunction.OR.Method parameters in is.codion.common.state with type arguments of type ObservableStateModifier and TypeMethodDescriptionstatic State.CombinationState.and(Collection<? extends ObservableState> observableStates) Creates a newState.Combinationinstance usingConjunction.AND.static State.CombinationState.combination(Conjunction conjunction, Collection<? extends ObservableState> observableStates) Creates a newState.Combinationinstance.static State.CombinationState.or(Collection<? extends ObservableState> observableStates) Creates a newState.Combinationinstance usingConjunction.OR. -
Uses of ObservableState in is.codion.framework.model
Subinterfaces of ObservableState in is.codion.framework.modelModifier and TypeInterfaceDescriptionstatic interfaceIndicates whether the active entity exists in the database.static interfaceIndicates 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 anObservableStateinstance 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 TypeMethodDescriptionvoidFlatLafValidIndicatorFactory.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 voidUtilities.enabled(ObservableState enabledState, @Nullable Action... actions) Links the given actions to the givenObservableState, so that the actions are enabled only when the observed state is activestatic voidUtilities.enabled(ObservableState enabledState, @Nullable JComponent... components) Links the given components to the givenObservableState, so that each component is enabled only when the observed state is activestatic voidUtilities.focusable(ObservableState focusableState, JComponent... components) Links the given components to the givenObservableState, so that each component is focusable only when the observed state is activestatic voidUtilities.visible(ObservableState visibleState, JComponent... components) Links the given components to the givenObservableState, so that each component is visible 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 BAbstractComponentBuilder.enabled(@Nullable ObservableState enabled) ComponentBuilder.enabled(@Nullable ObservableState enabled) protected voidAbstractComponentBuilder.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 BAbstractComponentBuilder.focusable(@Nullable ObservableState focusable) ComponentBuilder.focusable(@Nullable ObservableState focusable) final BAbstractComponentValueBuilder.modifiedIndicator(@Nullable ObservableState modified) ComponentValueBuilder.modifiedIndicator(@Nullable ObservableState modified) Enables a modified indicator based on the given modified state.final BAbstractComponentValueBuilder.validIndicator(@Nullable ObservableState valid) ComponentValueBuilder.validIndicator(@Nullable ObservableState valid) Enables a valid indicator based on the given valid state.final BAbstractComponentBuilder.visible(@Nullable ObservableState visible) ComponentBuilder.visible(@Nullable ObservableState visible) -
Uses of ObservableState in is.codion.swing.common.ui.component.button
Methods in is.codion.swing.common.ui.component.button with parameters of type ObservableStateModifier and TypeMethodDescriptionToggleButtonBuilder.link(ObservableState linkedState) Creates a read-only link to the givenObservableState.ToggleMenuItemBuilder.link(ObservableState linkedState) Creates a read-only link to the givenObservableState. -
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 TypeMethodDescriptionvoidDefaultValidIndicatorFactory.enable(JComponent component, ObservableState valid) voidModifiedIndicatorFactory.enable(JComponent component, ObservableState modified) Enables the modified indicator for the given component, based on the given modified statevoidUnderlineModifiedIndicatorFactory.enable(JComponent component, ObservableState modified) voidValidIndicatorFactory.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.component.table
Methods in is.codion.swing.common.ui.component.table that return ObservableState -
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) AObservableStateindicating 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 ObservableStateModifier and TypeMethodDescriptionLookAndFeelComboBox.Builder.enabled(@Nullable ObservableState enabled) -
Uses of ObservableState in is.codion.tools.generator.model
Methods in is.codion.tools.generator.model that return ObservableStateModifier and TypeMethodDescriptionDomainGeneratorModel.apiImplSaveEnabled()DomainGeneratorModel.combinedSaveEnabled()