Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
-
631e84a7
by Tony Chemit at 2024-08-31T10:30:23+02:00
-
6e294852
by Tony Chemit at 2024-08-31T13:25:04+02:00
7 changed files:
- − client/configuration/src/main/java/fr/ird/observe/client/CoordinatesEditorState.java
- − client/configuration/src/main/java/fr/ird/observe/client/FilterableComboBoxState.java
- − client/configuration/src/main/java/fr/ird/observe/client/ListHeaderState.java
- − client/configuration/src/main/java/fr/ird/observe/client/NauticalLengthEditorState.java
- client/configuration/src/main/java/fr/ird/observe/client/ObserveSwingSession.java
- − client/configuration/src/main/java/fr/ird/observe/client/TemperatureEditorState.java
- pom.xml
Changes:
| 1 | -package fr.ird.observe.client;
|
|
| 2 | - |
|
| 3 | -/*-
|
|
| 4 | - * #%L
|
|
| 5 | - * ObServe Client :: Configuration
|
|
| 6 | - * %%
|
|
| 7 | - * Copyright (C) 2008 - 2024 IRD, Ultreia.io
|
|
| 8 | - * %%
|
|
| 9 | - * This program is free software: you can redistribute it and/or modify
|
|
| 10 | - * it under the terms of the GNU General Public License as
|
|
| 11 | - * published by the Free Software Foundation, either version 3 of the
|
|
| 12 | - * License, or (at your option) any later version.
|
|
| 13 | - *
|
|
| 14 | - * This program is distributed in the hope that it will be useful,
|
|
| 15 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| 16 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| 17 | - * GNU General Public License for more details.
|
|
| 18 | - *
|
|
| 19 | - * You should have received a copy of the GNU General Public
|
|
| 20 | - * License along with this program. If not, see
|
|
| 21 | - * <http://www.gnu.org/licenses/gpl-3.0.html>.
|
|
| 22 | - * #L%
|
|
| 23 | - */
|
|
| 24 | - |
|
| 25 | -import org.nuiton.jaxx.runtime.swing.session.State;
|
|
| 26 | -import org.nuiton.jaxx.widgets.gis.CoordinateFormat;
|
|
| 27 | -import org.nuiton.jaxx.widgets.gis.absolute.CoordinatesEditor;
|
|
| 28 | - |
|
| 29 | -/**
|
|
| 30 | - * All states to persist on a {@link CoordinatesEditor}.
|
|
| 31 | - * <p>
|
|
| 32 | - * Created at 30/08/2024.
|
|
| 33 | - *
|
|
| 34 | - * @author Tony Chemit - dev@tchemit.fr
|
|
| 35 | - * @since 9.3.7
|
|
| 36 | - * <p>
|
|
| 37 | - * FIXME Move this back to JAXX
|
|
| 38 | - */
|
|
| 39 | -public class CoordinatesEditorState implements State {
|
|
| 40 | - |
|
| 41 | - protected CoordinateFormat format;
|
|
| 42 | - |
|
| 43 | - public CoordinatesEditorState() {
|
|
| 44 | - }
|
|
| 45 | - |
|
| 46 | - public CoordinatesEditorState(CoordinateFormat format) {
|
|
| 47 | - this.format = format;
|
|
| 48 | - }
|
|
| 49 | - |
|
| 50 | - public CoordinateFormat getFormat() {
|
|
| 51 | - return format;
|
|
| 52 | - }
|
|
| 53 | - |
|
| 54 | - public void setFormat(CoordinateFormat format) {
|
|
| 55 | - this.format = format;
|
|
| 56 | - }
|
|
| 57 | - |
|
| 58 | - protected CoordinatesEditor checkComponent(Object o) {
|
|
| 59 | - if (o == null) {
|
|
| 60 | - throw new IllegalArgumentException("null component");
|
|
| 61 | - }
|
|
| 62 | - if (!(o instanceof CoordinatesEditor)) {
|
|
| 63 | - throw new IllegalArgumentException("invalid component");
|
|
| 64 | - }
|
|
| 65 | - return (CoordinatesEditor) o;
|
|
| 66 | - }
|
|
| 67 | - |
|
| 68 | - @Override
|
|
| 69 | - public State getState(Object o) {
|
|
| 70 | - CoordinatesEditor ui = checkComponent(o);
|
|
| 71 | - return new CoordinatesEditorState(ui.getModel().getFormat());
|
|
| 72 | - }
|
|
| 73 | - |
|
| 74 | - @Override
|
|
| 75 | - public void setState(Object o, State state) {
|
|
| 76 | - if (!(state instanceof CoordinatesEditorState)) {
|
|
| 77 | - throw new IllegalArgumentException("invalid state");
|
|
| 78 | - }
|
|
| 79 | - CoordinatesEditor ui = checkComponent(o);
|
|
| 80 | - CoordinatesEditorState typedState = (CoordinatesEditorState) state;
|
|
| 81 | - ui.getModel().setFormat(typedState.getFormat());
|
|
| 82 | - }
|
|
| 83 | -} |
| 1 | -package fr.ird.observe.client;
|
|
| 2 | - |
|
| 3 | -/*-
|
|
| 4 | - * #%L
|
|
| 5 | - * ObServe Client :: Configuration
|
|
| 6 | - * %%
|
|
| 7 | - * Copyright (C) 2008 - 2024 IRD, Ultreia.io
|
|
| 8 | - * %%
|
|
| 9 | - * This program is free software: you can redistribute it and/or modify
|
|
| 10 | - * it under the terms of the GNU General Public License as
|
|
| 11 | - * published by the Free Software Foundation, either version 3 of the
|
|
| 12 | - * License, or (at your option) any later version.
|
|
| 13 | - *
|
|
| 14 | - * This program is distributed in the hope that it will be useful,
|
|
| 15 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| 16 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| 17 | - * GNU General Public License for more details.
|
|
| 18 | - *
|
|
| 19 | - * You should have received a copy of the GNU General Public
|
|
| 20 | - * License along with this program. If not, see
|
|
| 21 | - * <http://www.gnu.org/licenses/gpl-3.0.html>.
|
|
| 22 | - * #L%
|
|
| 23 | - */
|
|
| 24 | - |
|
| 25 | -import io.ultreia.java4all.jaxx.widgets.combobox.FilterableComboBox;
|
|
| 26 | -import org.nuiton.jaxx.runtime.swing.session.State;
|
|
| 27 | - |
|
| 28 | -/**
|
|
| 29 | - * All states to persist on a {@link FilterableComboBox}.
|
|
| 30 | - * <p>
|
|
| 31 | - * Created at 30/08/2024.
|
|
| 32 | - *
|
|
| 33 | - * @author Tony Chemit - dev@tchemit.fr
|
|
| 34 | - * @since 9.3.7
|
|
| 35 | - * <p>
|
|
| 36 | - * FIXME Move this back to JAXX
|
|
| 37 | - */
|
|
| 38 | -public class FilterableComboBoxState implements State {
|
|
| 39 | - |
|
| 40 | - protected int index = 0;
|
|
| 41 | - |
|
| 42 | - protected boolean reverseSort = false;
|
|
| 43 | - |
|
| 44 | - public FilterableComboBoxState() {
|
|
| 45 | - }
|
|
| 46 | - |
|
| 47 | - public FilterableComboBoxState(int index, boolean reverseSort) {
|
|
| 48 | - this.index = index;
|
|
| 49 | - this.reverseSort = reverseSort;
|
|
| 50 | - }
|
|
| 51 | - |
|
| 52 | - public int getIndex() {
|
|
| 53 | - return index;
|
|
| 54 | - }
|
|
| 55 | - |
|
| 56 | - public void setIndex(int index) {
|
|
| 57 | - this.index = index;
|
|
| 58 | - }
|
|
| 59 | - |
|
| 60 | - public boolean isReverseSort() {
|
|
| 61 | - return reverseSort;
|
|
| 62 | - }
|
|
| 63 | - |
|
| 64 | - public void setReverseSort(boolean reverseSort) {
|
|
| 65 | - this.reverseSort = reverseSort;
|
|
| 66 | - }
|
|
| 67 | - |
|
| 68 | - protected FilterableComboBox<?> checkComponent(Object o) {
|
|
| 69 | - if (o == null) {
|
|
| 70 | - throw new IllegalArgumentException("null component");
|
|
| 71 | - }
|
|
| 72 | - if (!(o instanceof FilterableComboBox)) {
|
|
| 73 | - throw new IllegalArgumentException("invalid component");
|
|
| 74 | - }
|
|
| 75 | - return (FilterableComboBox<?>) o;
|
|
| 76 | - }
|
|
| 77 | - |
|
| 78 | - @Override
|
|
| 79 | - public State getState(Object o) {
|
|
| 80 | - FilterableComboBox<?> combo = checkComponent(o);
|
|
| 81 | - return new FilterableComboBoxState(combo.getModel().getIndex(), combo.getModel().getReverseSort());
|
|
| 82 | - }
|
|
| 83 | - |
|
| 84 | - @Override
|
|
| 85 | - public void setState(Object o, State state) {
|
|
| 86 | - if (!(state instanceof FilterableComboBoxState)) {
|
|
| 87 | - throw new IllegalArgumentException("invalid state");
|
|
| 88 | - }
|
|
| 89 | - FilterableComboBox<?> ui = checkComponent(o);
|
|
| 90 | - FilterableComboBoxState typedState = (FilterableComboBoxState) state;
|
|
| 91 | - ui.getModel().setIndex(typedState.getIndex());
|
|
| 92 | - ui.getModel().setReverseSort(typedState.isReverseSort());
|
|
| 93 | - }
|
|
| 94 | - |
|
| 95 | - |
|
| 96 | -}
|
|
| 97 | - |
| 1 | -package fr.ird.observe.client;
|
|
| 2 | - |
|
| 3 | -/*-
|
|
| 4 | - * #%L
|
|
| 5 | - * ObServe Client :: Configuration
|
|
| 6 | - * %%
|
|
| 7 | - * Copyright (C) 2008 - 2024 IRD, Ultreia.io
|
|
| 8 | - * %%
|
|
| 9 | - * This program is free software: you can redistribute it and/or modify
|
|
| 10 | - * it under the terms of the GNU General Public License as
|
|
| 11 | - * published by the Free Software Foundation, either version 3 of the
|
|
| 12 | - * License, or (at your option) any later version.
|
|
| 13 | - *
|
|
| 14 | - * This program is distributed in the hope that it will be useful,
|
|
| 15 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| 16 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| 17 | - * GNU General Public License for more details.
|
|
| 18 | - *
|
|
| 19 | - * You should have received a copy of the GNU General Public
|
|
| 20 | - * License along with this program. If not, see
|
|
| 21 | - * <http://www.gnu.org/licenses/gpl-3.0.html>.
|
|
| 22 | - * #L%
|
|
| 23 | - */
|
|
| 24 | - |
|
| 25 | -import io.ultreia.java4all.jaxx.widgets.list.ListHeader;
|
|
| 26 | -import org.nuiton.jaxx.runtime.swing.JAXXButtonGroup;
|
|
| 27 | -import org.nuiton.jaxx.runtime.swing.session.State;
|
|
| 28 | - |
|
| 29 | -/**
|
|
| 30 | - * All states to persist on a {@link ListHeader}.
|
|
| 31 | - * <p>
|
|
| 32 | - * Created at 30/08/2024.
|
|
| 33 | - *
|
|
| 34 | - * @author Tony Chemit - dev@tchemit.fr
|
|
| 35 | - * @since 9.3.7
|
|
| 36 | - * <p>
|
|
| 37 | - * FIXME Move this back to JAXX
|
|
| 38 | - */
|
|
| 39 | -public class ListHeaderState implements State {
|
|
| 40 | - |
|
| 41 | - protected int index = 0;
|
|
| 42 | - |
|
| 43 | - protected boolean reverseSort = false;
|
|
| 44 | - |
|
| 45 | - public ListHeaderState() {
|
|
| 46 | - }
|
|
| 47 | - |
|
| 48 | - public ListHeaderState(int index, boolean reverseSort) {
|
|
| 49 | - this.index = index;
|
|
| 50 | - this.reverseSort = reverseSort;
|
|
| 51 | - }
|
|
| 52 | - |
|
| 53 | - public int getIndex() {
|
|
| 54 | - return index;
|
|
| 55 | - }
|
|
| 56 | - |
|
| 57 | - public void setIndex(int index) {
|
|
| 58 | - this.index = index;
|
|
| 59 | - }
|
|
| 60 | - |
|
| 61 | - public boolean isReverseSort() {
|
|
| 62 | - return reverseSort;
|
|
| 63 | - }
|
|
| 64 | - |
|
| 65 | - public void setReverseSort(boolean reverseSort) {
|
|
| 66 | - this.reverseSort = reverseSort;
|
|
| 67 | - }
|
|
| 68 | - |
|
| 69 | - protected ListHeader<?> checkComponent(Object o) {
|
|
| 70 | - if (o == null) {
|
|
| 71 | - throw new IllegalArgumentException("null component");
|
|
| 72 | - }
|
|
| 73 | - if (!(o instanceof ListHeader)) {
|
|
| 74 | - throw new IllegalArgumentException("invalid component");
|
|
| 75 | - }
|
|
| 76 | - return (ListHeader<?>) o;
|
|
| 77 | - }
|
|
| 78 | - |
|
| 79 | - @Override
|
|
| 80 | - public State getState(Object o) {
|
|
| 81 | - ListHeader<?> combo = checkComponent(o);
|
|
| 82 | - return new ListHeaderState(combo.getIndex(), combo.getReverseSort());
|
|
| 83 | - }
|
|
| 84 | - |
|
| 85 | - @Override
|
|
| 86 | - public void setState(Object o, State state) {
|
|
| 87 | - if (!(state instanceof ListHeaderState)) {
|
|
| 88 | - throw new IllegalArgumentException("invalid state");
|
|
| 89 | - }
|
|
| 90 | - ListHeader<?> ui = checkComponent(o);
|
|
| 91 | - ListHeaderState typedState = (ListHeaderState) state;
|
|
| 92 | - ui.setIndex(typedState.getIndex());
|
|
| 93 | - ui.setReverseSort(typedState.isReverseSort());
|
|
| 94 | - //FIXME Move this back to JListHeader.setIndex method
|
|
| 95 | - JAXXButtonGroup indexes = ui.getIndexes();
|
|
| 96 | - indexes.setSelectedButton(ui.getIndex());
|
|
| 97 | - }
|
|
| 98 | - |
|
| 99 | -} |
| 1 | -package fr.ird.observe.client;
|
|
| 2 | - |
|
| 3 | -/*-
|
|
| 4 | - * #%L
|
|
| 5 | - * ObServe Client :: Configuration
|
|
| 6 | - * %%
|
|
| 7 | - * Copyright (C) 2008 - 2024 IRD, Ultreia.io
|
|
| 8 | - * %%
|
|
| 9 | - * This program is free software: you can redistribute it and/or modify
|
|
| 10 | - * it under the terms of the GNU General Public License as
|
|
| 11 | - * published by the Free Software Foundation, either version 3 of the
|
|
| 12 | - * License, or (at your option) any later version.
|
|
| 13 | - *
|
|
| 14 | - * This program is distributed in the hope that it will be useful,
|
|
| 15 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| 16 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| 17 | - * GNU General Public License for more details.
|
|
| 18 | - *
|
|
| 19 | - * You should have received a copy of the GNU General Public
|
|
| 20 | - * License along with this program. If not, see
|
|
| 21 | - * <http://www.gnu.org/licenses/gpl-3.0.html>.
|
|
| 22 | - * #L%
|
|
| 23 | - */
|
|
| 24 | - |
|
| 25 | -import io.ultreia.java4all.jaxx.widgets.length.nautical.NauticalLengthEditor;
|
|
| 26 | -import io.ultreia.java4all.jaxx.widgets.length.nautical.NauticalLengthFormat;
|
|
| 27 | -import org.nuiton.jaxx.runtime.swing.session.State;
|
|
| 28 | - |
|
| 29 | -/**
|
|
| 30 | - * All states to persist on a {@link NauticalLengthEditor}.
|
|
| 31 | - * <p>
|
|
| 32 | - * Created at 30/08/2024.
|
|
| 33 | - *
|
|
| 34 | - * @author Tony Chemit - dev@tchemit.fr
|
|
| 35 | - * @since 9.3.7
|
|
| 36 | - * <p>
|
|
| 37 | - * FIXME Move this back to JAXX
|
|
| 38 | - */
|
|
| 39 | -public class NauticalLengthEditorState implements State {
|
|
| 40 | - |
|
| 41 | - protected NauticalLengthFormat format;
|
|
| 42 | - |
|
| 43 | - public NauticalLengthEditorState() {
|
|
| 44 | - }
|
|
| 45 | - |
|
| 46 | - public NauticalLengthEditorState(NauticalLengthFormat format) {
|
|
| 47 | - this.format = format;
|
|
| 48 | - }
|
|
| 49 | - |
|
| 50 | - public NauticalLengthFormat getFormat() {
|
|
| 51 | - return format;
|
|
| 52 | - }
|
|
| 53 | - |
|
| 54 | - public void setFormat(NauticalLengthFormat format) {
|
|
| 55 | - this.format = format;
|
|
| 56 | - }
|
|
| 57 | - |
|
| 58 | - protected NauticalLengthEditor checkComponent(Object o) {
|
|
| 59 | - if (o == null) {
|
|
| 60 | - throw new IllegalArgumentException("null component");
|
|
| 61 | - }
|
|
| 62 | - if (!(o instanceof NauticalLengthEditor)) {
|
|
| 63 | - throw new IllegalArgumentException("invalid component");
|
|
| 64 | - }
|
|
| 65 | - return (NauticalLengthEditor) o;
|
|
| 66 | - }
|
|
| 67 | - |
|
| 68 | - @Override
|
|
| 69 | - public State getState(Object o) {
|
|
| 70 | - NauticalLengthEditor ui = checkComponent(o);
|
|
| 71 | - return new NauticalLengthEditorState(ui.getModel().getFormat());
|
|
| 72 | - }
|
|
| 73 | - |
|
| 74 | - @Override
|
|
| 75 | - public void setState(Object o, State state) {
|
|
| 76 | - if (!(state instanceof NauticalLengthEditorState)) {
|
|
| 77 | - throw new IllegalArgumentException("invalid state");
|
|
| 78 | - }
|
|
| 79 | - NauticalLengthEditor ui = checkComponent(o);
|
|
| 80 | - NauticalLengthEditorState typedState = (NauticalLengthEditorState) state;
|
|
| 81 | - ui.getModel().setFormat(typedState.getFormat());
|
|
| 82 | - }
|
|
| 83 | -} |
| ... | ... | @@ -23,15 +23,20 @@ package fr.ird.observe.client; |
| 23 | 23 | */
|
| 24 | 24 | |
| 25 | 25 | import io.ultreia.java4all.jaxx.widgets.combobox.FilterableComboBox;
|
| 26 | +import io.ultreia.java4all.jaxx.widgets.combobox.session.FilterableComboBoxState;
|
|
| 26 | 27 | import io.ultreia.java4all.jaxx.widgets.length.nautical.NauticalLengthEditor;
|
| 28 | +import io.ultreia.java4all.jaxx.widgets.length.nautical.session.NauticalLengthEditorState;
|
|
| 27 | 29 | import io.ultreia.java4all.jaxx.widgets.list.DoubleList;
|
| 28 | 30 | import io.ultreia.java4all.jaxx.widgets.list.ListHeader;
|
| 29 | 31 | import io.ultreia.java4all.jaxx.widgets.list.session.DoubleListState;
|
| 32 | +import io.ultreia.java4all.jaxx.widgets.list.session.ListHeaderState;
|
|
| 30 | 33 | import io.ultreia.java4all.util.SortedProperties;
|
| 31 | 34 | import org.nuiton.jaxx.runtime.swing.session.State;
|
| 32 | 35 | import org.nuiton.jaxx.runtime.swing.session.SwingSession;
|
| 33 | 36 | import org.nuiton.jaxx.widgets.gis.absolute.CoordinatesEditor;
|
| 37 | +import org.nuiton.jaxx.widgets.gis.absolute.session.CoordinatesEditorState;
|
|
| 34 | 38 | import org.nuiton.jaxx.widgets.temperature.TemperatureEditor;
|
| 39 | +import org.nuiton.jaxx.widgets.temperature.session.TemperatureEditorState;
|
|
| 35 | 40 | |
| 36 | 41 | import java.io.BufferedReader;
|
| 37 | 42 | import java.io.File;
|
| 1 | -package fr.ird.observe.client;
|
|
| 2 | - |
|
| 3 | -/*-
|
|
| 4 | - * #%L
|
|
| 5 | - * ObServe Client :: Configuration
|
|
| 6 | - * %%
|
|
| 7 | - * Copyright (C) 2008 - 2024 IRD, Ultreia.io
|
|
| 8 | - * %%
|
|
| 9 | - * This program is free software: you can redistribute it and/or modify
|
|
| 10 | - * it under the terms of the GNU General Public License as
|
|
| 11 | - * published by the Free Software Foundation, either version 3 of the
|
|
| 12 | - * License, or (at your option) any later version.
|
|
| 13 | - *
|
|
| 14 | - * This program is distributed in the hope that it will be useful,
|
|
| 15 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
| 16 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
| 17 | - * GNU General Public License for more details.
|
|
| 18 | - *
|
|
| 19 | - * You should have received a copy of the GNU General Public
|
|
| 20 | - * License along with this program. If not, see
|
|
| 21 | - * <http://www.gnu.org/licenses/gpl-3.0.html>.
|
|
| 22 | - * #L%
|
|
| 23 | - */
|
|
| 24 | - |
|
| 25 | -import org.nuiton.jaxx.runtime.swing.session.State;
|
|
| 26 | -import org.nuiton.jaxx.widgets.temperature.TemperatureEditor;
|
|
| 27 | -import org.nuiton.jaxx.widgets.temperature.TemperatureFormat;
|
|
| 28 | - |
|
| 29 | -/**
|
|
| 30 | - * All states to persist on a {@link TemperatureEditor}.
|
|
| 31 | - * <p>
|
|
| 32 | - * Created at 30/08/2024.
|
|
| 33 | - *
|
|
| 34 | - * @author Tony Chemit - dev@tchemit.fr
|
|
| 35 | - * @since 9.3.7
|
|
| 36 | - * <p>
|
|
| 37 | - * FIXME Move this back to JAXX
|
|
| 38 | - */
|
|
| 39 | -public class TemperatureEditorState implements State {
|
|
| 40 | - |
|
| 41 | - protected TemperatureFormat format;
|
|
| 42 | - |
|
| 43 | - public TemperatureEditorState() {
|
|
| 44 | - }
|
|
| 45 | - |
|
| 46 | - public TemperatureEditorState(TemperatureFormat format) {
|
|
| 47 | - this.format = format;
|
|
| 48 | - }
|
|
| 49 | - |
|
| 50 | - public TemperatureFormat getFormat() {
|
|
| 51 | - return format;
|
|
| 52 | - }
|
|
| 53 | - |
|
| 54 | - public void setFormat(TemperatureFormat format) {
|
|
| 55 | - this.format = format;
|
|
| 56 | - }
|
|
| 57 | - |
|
| 58 | - protected TemperatureEditor checkComponent(Object o) {
|
|
| 59 | - if (o == null) {
|
|
| 60 | - throw new IllegalArgumentException("null component");
|
|
| 61 | - }
|
|
| 62 | - if (!(o instanceof TemperatureEditor)) {
|
|
| 63 | - throw new IllegalArgumentException("invalid component");
|
|
| 64 | - }
|
|
| 65 | - return (TemperatureEditor) o;
|
|
| 66 | - }
|
|
| 67 | - |
|
| 68 | - @Override
|
|
| 69 | - public State getState(Object o) {
|
|
| 70 | - TemperatureEditor ui = checkComponent(o);
|
|
| 71 | - return new TemperatureEditorState(ui.getModel().getFormat());
|
|
| 72 | - }
|
|
| 73 | - |
|
| 74 | - @Override
|
|
| 75 | - public void setState(Object o, State state) {
|
|
| 76 | - if (!(state instanceof TemperatureEditorState)) {
|
|
| 77 | - throw new IllegalArgumentException("invalid state");
|
|
| 78 | - }
|
|
| 79 | - TemperatureEditor ui = checkComponent(o);
|
|
| 80 | - TemperatureEditorState typedState = (TemperatureEditorState) state;
|
|
| 81 | - ui.getModel().setFormat(typedState.getFormat());
|
|
| 82 | - }
|
|
| 83 | -} |
| ... | ... | @@ -113,7 +113,7 @@ |
| 113 | 113 | <buildDate>${maven.build.timestamp}</buildDate>
|
| 114 | 114 | <!-- >>> Sealed version -->
|
| 115 | 115 | <plugin.version.site>4.0.0-M13</plugin.version.site>
|
| 116 | - <lib.version.java4all.jaxx>3.0.25</lib.version.java4all.jaxx>
|
|
| 116 | + <lib.version.java4all.jaxx>3.0.26</lib.version.java4all.jaxx>
|
|
| 117 | 117 | <lib.version.java4all.validation>1.0.3</lib.version.java4all.validation>
|
| 118 | 118 | <lib.version.java4all.i18n>4.0-beta-26</lib.version.java4all.i18n>
|
| 119 | 119 | <lib.version.ognl>3.1.29</lib.version.ognl>
|