]> source.dussan.org Git - vaadin-framework.git/commit
Replace setRequired & HasRequired with setRequiredIndicator
authorPekka Hyvönen <pekka@vaadin.com>
Thu, 27 Oct 2016 13:13:44 +0000 (16:13 +0300)
committerVaadin Code Review <review@vaadin.com>
Tue, 1 Nov 2016 10:26:33 +0000 (10:26 +0000)
commit48c249a13ecca8c4c8bd68814850e5e3cdd37d81
treeb1f066b2bdd48b09b38b27bd677abba1b0d5d5fc
parent92d697b9886896f1dad41026ba3519563838f93e
Replace setRequired & HasRequired with setRequiredIndicator

Vaadin 7 compatiblity fields still use setRequired via AbstractField (legacy).
Public setRequiredIndicator is added to AbstractField, AbstractMultiSelect and AbstractSingleSelect.
Internally it is still handled on AbstractComponent & -Connector level.
Changes the declarative syntax, required -> required-indicator-visible.

Fixes vaadin/framework8-issue#419

Change-Id: I940dc66944d27584bd78e5452aee627ee3abd03a
34 files changed:
client/src/main/java/com/vaadin/client/connectors/AbstractMultiSelectConnector.java
client/src/main/java/com/vaadin/client/connectors/AbstractSingleSelectConnector.java [new file with mode: 0644]
client/src/main/java/com/vaadin/client/ui/AbstractComponentConnector.java
client/src/main/java/com/vaadin/client/ui/AbstractFieldConnector.java
client/src/main/java/com/vaadin/client/ui/combobox/ComboBoxConnector.java
client/src/main/java/com/vaadin/client/ui/nativeselect/NativeSelectConnector.java
client/src/main/java/com/vaadin/client/ui/optiongroup/CheckBoxGroupConnector.java
client/src/main/java/com/vaadin/client/ui/optiongroup/RadioButtonGroupConnector.java
compatibility-server/src/main/java/com/vaadin/v7/ui/AbstractField.java
compatibility-server/src/main/java/com/vaadin/v7/ui/Field.java
server/src/main/java/com/vaadin/data/HasRequired.java [deleted file]
server/src/main/java/com/vaadin/data/HasValue.java
server/src/main/java/com/vaadin/data/validator/NotEmptyValidator.java
server/src/main/java/com/vaadin/ui/AbstractComponent.java
server/src/main/java/com/vaadin/ui/AbstractField.java
server/src/main/java/com/vaadin/ui/AbstractMultiSelect.java
server/src/main/java/com/vaadin/ui/AbstractSingleSelect.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerPopup.java
server/src/main/java/com/vaadin/ui/components/colorpicker/ColorPickerPreview.java
server/src/test/java/com/vaadin/tests/server/component/abstractfield/AbstractFieldDeclarativeTest.java
shared/src/main/java/com/vaadin/shared/AbstractFieldState.java
shared/src/main/java/com/vaadin/shared/ui/AbstractSingleSelectState.java
shared/src/main/java/com/vaadin/shared/ui/RequiredIndicatorState.java [new file with mode: 0644]
shared/src/main/java/com/vaadin/shared/ui/TabIndexState.java
shared/src/main/java/com/vaadin/shared/ui/listselect/ListSelectState.java
shared/src/main/java/com/vaadin/shared/ui/optiongroup/CheckBoxGroupState.java
shared/src/main/java/com/vaadin/shared/ui/twincolselect/TwinColSelectState.java
uitest/src/main/java/com/vaadin/tests/components/AbstractComponentTestCase.java
uitest/src/main/java/com/vaadin/tests/components/ComponentTestCase.java
uitest/src/main/java/com/vaadin/tests/components/datefield/DatePopupStyleName.java
uitest/src/main/java/com/vaadin/tests/layouts/CaptionsInLayoutsWaiAria.java
uitest/src/main/java/com/vaadin/tests/layouts/FormLayoutWithInvisibleComponent.java
uitest/src/main/java/com/vaadin/tests/layouts/OrderedLayoutBasics.java
uitest/src/main/java/com/vaadin/tests/util/CheckBoxWithPropertyDataSource.java