View Javadoc
1   package fr.ifremer.quadrige3.ui.swing;
2   
3   /*-
4    * #%L
5    * Quadrige3 Core :: Quadrige3 UI Common
6    * $Id:$
7    * $HeadURL:$
8    * %%
9    * Copyright (C) 2017 Ifremer
10   * %%
11   * This program is free software: you can redistribute it and/or modify
12   * it under the terms of the GNU Affero General Public License as published by
13   * the Free Software Foundation, either version 3 of the License, or
14   * (at your option) any later version.
15   * 
16   * This program is distributed in the hope that it will be useful,
17   * but WITHOUT ANY WARRANTY; without even the implied warranty of
18   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19   * GNU General Public License for more details.
20   * 
21   * You should have received a copy of the GNU Affero General Public License
22   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
23   * #L%
24   */
25  
26  
27  /**
28   * Contract to place on each generated jaxx ui.
29   *
30   * @param <M> type of UI model
31   * @param <H> type of handler
32   */
33  public interface ApplicationUI<M, H extends AbstractUIHandler<M, ?>> extends org.nuiton.jaxx.application.swing.ApplicationUI<M, H> {
34  
35      /**
36       * Pattern to use for high decimal numeric values with 10 digits + 10 decimal digits in editors.
37       * Used for control rule min & max values
38       *
39       * @since 2.8
40       */
41      String SIGNED_HIGH_DECIMAL_DIGITS_PATTERN = "-?\\d{0,10}(\\.\\d{0,10})?";
42  
43      /**
44       * Pattern to use for decimal numeric values with 10 digits + 7 decimal digits in editors.
45       * It is the maximum number of decimal for default DECIMAL(38,7) format
46       */
47      String DECIMAL7_PATTERN = "\\d{0,10}(\\.\\d{0,7})?";
48  
49      /** {@inheritDoc} */
50      @Override
51      H getHandler();
52  }