View Javadoc
1   package fr.ifremer.quadrige3.ui.core.dto.referential;
2   
3   /*-
4    * #%L
5    * Quadrige3 Core :: UI Core Common
6    * %%
7    * Copyright (C) 2017 - 2024 Ifremer
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU Affero General Public License as published by
11   * the Free Software Foundation, either version 3 of the License, or
12   * (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 Affero General Public License
20   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
21   * #L%
22   */
23  import fr.ifremer.quadrige3.ui.core.dto.QuadrigeAbstractBean;
24  import javax.annotation.Generated;
25  
26  @Generated(value = "org.nuiton.eugene.java.SimpleJavaBeanTransformer", date = "Mon Jul 22 16:58:51 CEST 2024")
27  public abstract class AbstractStatusDTOBean extends QuadrigeAbstractBean implements StatusDTO {
28  
29      private static final long serialVersionUID = 7148674096756568632L;
30  
31      protected String code;
32  
33      protected String name;
34  
35      protected boolean newCode;
36  
37      @Override
38      public String getCode() {
39          return code;
40      }
41  
42      @Override
43      public void setCode(String code) {
44          String oldValue = getCode();
45          this.code = code;
46          firePropertyChange(PROPERTY_CODE, oldValue, code);
47      }
48  
49      @Override
50      public String getName() {
51          return name;
52      }
53  
54      @Override
55      public void setName(String name) {
56          String oldValue = getName();
57          this.name = name;
58          firePropertyChange(PROPERTY_NAME, oldValue, name);
59      }
60  
61      @Override
62      public boolean isNewCode() {
63          return newCode;
64      }
65  
66      @Override
67      public void setNewCode(boolean newCode) {
68          boolean oldValue = isNewCode();
69          this.newCode = newCode;
70          firePropertyChange(PROPERTY_NEW_CODE, oldValue, newCode);
71      }
72  
73  } //AbstractStatusDTOBean