Module io.github.mmm.ui.api.core
Package io.github.mmm.ui.api.attribute
Interface AttributeWriteReadOnly
-
- All Known Subinterfaces:
UiAbstractButton
,UiAbstractButtonContainer
,UiAbstractCheckbox
,UiAbstractChoice<O,V>
,UiAbstractCompositeInput<C,V>
,UiAbstractDataTable<R>
,UiAbstractDataTree<R>
,UiAbstractDataWidget<R>
,UiAbstractImage
,UiAbstractInput<V>
,UiAbstractLink
,UiAbstractMenu<E>
,UiAbstractMenuBar<E>
,UiAbstractMenuEntry
,UiAbstractMenuItem
,UiAbstractMenuWithItems
,UiAbstractMultiChoice<V>
,UiAbstractRadioButton
,UiAbstractSingleChoice<V>
,UiAbstractSplitPanel
,UiAbstractWindow
,UiActiveWidget
,UiAdvancedMenu
,UiAudioPlayer
,UiBarChart
,UiBarChartHorizontal
,UiBarChartVertical
,UiBigDecimalInput
,UiBigIntegerInput
,UiBindableWidget<V>
,UiBorderPanel
,UiBreadCrumbBar
,UiButton
,UiButtonPanel
,UiChart<D>
,UiCheckbox
,UiCheckboxChoice<V>
,UiChildWindow
,UiClickableWidget
,UiCollapsibleComposite<C>
,UiCollapsiblePanel
,UiColorInput
,UiColumn<R,V>
,UiComboBox<V>
,UiComposite<C>
,UiCompositeInput<V>
,UiDataTable<R>
,UiDataTree<R>
,UiDataTreeTable<R>
,UiDateInput
,UiDateTimeInput
,UiDoubleInput
,UiExternalLink
,UiFailureComposite<C>
,UiFormGroup<V>
,UiFormPanel<V>
,UiGridPanel
,UiGridRow
,UiHorizontalInput<V>
,UiHorizontalPanel
,UiHorizontalSplitPanel
,UiHtmlEditor
,UiIcon
,UiImage
,UiInput<V>
,UiInputContainer<V>
,UiIntegerInput
,UiIntegerSlider
,UiInternalLink
,UiLabel
,UiLineChart
,UiLongInput
,UiLongSlider
,UiMainWindow
,UiMediaPlayer
,UiMediaWidget
,UiMenu
,UiMenuBar
,UiMenuItem
,UiMenuItemCheckbox
,UiMenuItemRadioButton
,UiMenuItemSeparator
,UiMultiComboBox<V>
,UiMutableComposite<C>
,UiMutablePanel
,UiMutableSingleComposite<C>
,UiNativeWidget
,UiNativeWidgetWrapper<W>
,UiNavigationBar
,UiNumberInput<V>
,UiNumericInput<V>
,UiPasswordInput
,UiPieChart
,UiPopup
,UiRadioButton
,UiRadioChoice<V>
,UiRegularWidget
,UiRemovableComposite<C>
,UiResponsiveColumnPanel
,UiScrollPanel
,UiSingleComposite<C>
,UiSlider<V>
,UiSlot
,UiSourceCodeViewer
,UiStringInput
,UiSwitchComposite<C>
,UiTab
,UiTabPanel
,UiText
,UiTextArea
,UiTextInput
,UiTextualInput<V>
,UiTimeInput
,UiValidatableWidget<V>
,UiValuedComposite<C,V>
,UiValuedWidget<V>
,UiVerticalInput<V>
,UiVerticalPanel
,UiVerticalSplitPanel
,UiVideoPlayer
,UiWidget
,UiWidgetWithSelection
,UiWindow
- All Known Implementing Classes:
AbstractUiCustomWidget
,AbstractUiNativeWidget
,AbstractUiNativeWidgetWrapper
,AbstractUiWidget
,FxAbstractButton
,FxAbstractChoice
,FxAbstractImage
,FxAbstractLink
,FxAbstractWindow
,FxActiveValidatableWidget
,FxActiveWidget
,FxBarChart
,FxBarChartHorizontal
,FxBarChartVertical
,FxBorderPanel
,FxButton
,FxButtonPanel
,FxChart
,FxCheckbox
,FxChildWindow
,FxClickableWidget
,FxCollapsiblePanel
,FxComboBox
,FxComposite
,FxCompositeInput
,FxDataTable
,FxExternalLink
,FxFailureComposite
,FxFormGroup
,FxFormGroup
,FxFormPanel
,FxFormPanel
,FxGridPanel
,FxGridRow
,FxHorizontalInput
,FxHorizontalPanel
,FxHorizontalPanel
,FxImage
,FxInput
,FxInputContainer
,FxInputContainer
,FxInternalLink
,FxLabel
,FxLineChart
,FxMainWindow
,FxMediaPlayer
,FxMediaWidget
,FxMutableComposite
,FxMutableCompositePane
,FxMutablePanel
,FxPasswordInput
,FxPieChart
,FxPopup
,FxRadioButton
,FxRadioChoice
,FxRemovableComposite
,FxScrollPanel
,FxSlot
,FxStringInput
,FxTableColumn
,FxText
,FxTextArea
,FxTextInput
,FxTextualInput
,FxValuedComposite
,FxVerticalPanel
,FxWidget
,FxWidgetNode
,FxWidgetStyleable
,FxWindow
,TestAbstractButton
,TestAbstractChoice
,TestAbstractImage
,TestAbstractLink
,TestAbstractRadioButton
,TestAbstractSingleChoice
,TestAbstractWindow
,TestActiveValidatableWidget
,TestActiveWidget
,TestBarChart
,TestBarChartHorizontal
,TestBarChartVertical
,TestButton
,TestButtonPanel
,TestChart
,TestCheckbox
,TestChildWindow
,TestClickableWidget
,TestCollapsibleComposite
,TestCollapsiblePanel
,TestComboBox
,TestComposite
,TestDataList
,TestExternalLink
,TestFailureComposite
,TestFormGroup
,TestFormPanel
,TestGridPanel
,TestGridRow
,TestIcon
,TestImage
,TestInput
,TestInputContainer
,TestInternalLink
,TestLabel
,TestLineChart
,TestMainWindow
,TestMutableComposite
,TestMutablePanel
,TestPasswordInput
,TestPieChart
,TestPopup
,TestRadioButton
,TestRadioChoice
,TestRemovableComposite
,TestScrollPanel
,TestSelectionInput
,TestSlot
,TestStringInput
,TestTableColumn
,TestText
,TestTextArea
,TestTextInput
,TestTextualInput
,TestValuedComposite
,TestValuedWidget
,TestVerticalPanel
,TestWidget
,TestWindow
,TvmAbstractButton
,TvmAbstractLink
,TvmAbstractTextArea
,TvmActiveWidget
,TvmBooleanInput
,TvmBorderPanel
,TvmButton
,TvmButtonPanel
,TvmCheckbox
,TvmClickableWidget
,TvmComboBoxDataList
,TvmComboBoxSelect
,TvmComposite
,TvmExternalLink
,TvmGridPanel
,TvmGridRow
,TvmHorizontalPanel
,TvmHtmlInput
,TvmHtmlSelect
,TvmInput
,TvmInternalLink
,TvmLabel
,TvmLabelledInput
,TvmMutableComposite
,TvmMutablePanel
,TvmPasswordInput
,TvmRadioButton
,TvmRadioChoice
,TvmRemovableComposite
,TvmScrollPanel
,TvmSlot
,TvmStringInput
,TvmText
,TvmTextArea
,TvmTextInput
,TvmTextualInput
,TvmValuedComposite
,TvmVerticalPanel
,TvmWidget
,TvmWidgetHtmlElement
,UiCustomComposite
,UiCustomCompositeInput
,UiCustomEditor
,UiCustomEditorButtonPanel
,UiCustomFormPanel
,UiCustomGridPanel
,UiCustomHorizontalInput
,UiCustomInput
,UiCustomMutableComposite
,UiCustomMutablePanel
,UiCustomMutableSingleComposite
,UiCustomRemovableComposite
,UiCustomScrollPanel
,UiCustomValidatableWidget
,UiCustomValuedComposite
,UiCustomValuedWidget
,UiCustomVerticalPanel
public interface AttributeWriteReadOnly
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
isReadOnly()
void
setReadOnly(boolean readOnly)
Switches this widget between view (read-onlytrue
) and edit (read-onlyfalse
) mode.
-
-
-
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 fromenabled
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-onlytrue
) and edit (read-onlyfalse
) mode. This may also have effects such that aUiButtonPanel
is showing a "Save" button only in edit mode, while it shows an "Edit" button in read-only mode that switches to edit mode.
AUiComposite
will propagate the read-only state to all its children when this method is called. Please note that several widgets such asUiLabel
are always read-only. In such case this method will have no effect.- Parameters:
readOnly
- the new value ofisReadOnly()
.
-
-