Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
package org.nuiton.jaxx.widgets.temperature;
/*-
* #%L
* JAXX :: Widgets
* %%
* Copyright (C) 2008 - 2024 Code Lutin, Ultreia.io
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.GridLayout;
import java.awt.LayoutManager;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.ButtonGroup;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.nuiton.jaxx.runtime.JAXXBinding;
import org.nuiton.jaxx.runtime.JAXXContext;
import org.nuiton.jaxx.runtime.JAXXObject;
import org.nuiton.jaxx.runtime.JAXXObjectDescriptor;
import org.nuiton.jaxx.runtime.JAXXUtil;
import org.nuiton.jaxx.runtime.bean.BeanScopeAware;
import org.nuiton.jaxx.runtime.binding.DefaultJAXXBinding;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
import org.nuiton.jaxx.runtime.spi.UIHandler;
import org.nuiton.jaxx.runtime.swing.JAXXButtonGroup;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
import org.nuiton.jaxx.widgets.number.NumberEditor;
public class TemperatureEditor extends JPanel implements BeanScopeAware, JAXXObject {
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_C_FORMAT_SELECTED = "cFormat.selected";
public static final String BINDING_EDITOR_NUMBER_VALUE = "editor.numberValue";
public static final String BINDING_F_FORMAT_SELECTED = "fFormat.selected";
public static final String BINDING_MODEL_FORMAT = "model.format";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAL1VzXIbRRBuiUiyLcxPKCAHDioSHCeEUXLgggng2FJISrZV8iYV8CGMtCN5XaudYaY3XpeKHDhw4wU4cOVC5R1SnKjiwtXvQFUegZ7ZldbGUuz4gA6zo9nub7q//rr393+gZDTckHrAojhAGbE9niRMxxEGQ8Hurz56tNXdEz1cF6anA4VSQ/orFKG4A1V/cm4Q2E6LkOopUt0i1TOk+pocKhmJ6AjQSgsWDB6EwuwKgQjLM517xtS3J5YriYp1dtfUqKfd9ddPtw4LYv2XIkCiKPwKpf3xKwDkWV9oQTHwES629vgTXg95NKDgdBANKKFFe7YWcmM2+VB8D0+h0oKy4prAED45Fz0OzkElCmHuyv02j0R4E+HT/8a/H/gDgYahGCqhOcZaMC/fN3wy1Uo5sDJCaSh9ESJ8di6cDeucg5WFO8WTrI7RonjYFZptukeKYX3nJxDVvtRDji494tdSmTCzT8yyNOfj5pVe09kjXDpm2uF+IO/ESAFYy4u5Qz91sH/fP/5qLr36zl0q0ixVZPDUEin4XS1jRQRoWJrlQsJluXBzDRV2oKRjOka4PLtnrOw7ZJUK/vJswdtrnOGPz57q3/ZfHI5VXqbgaqd5HWlokpzSkuqMgY3tzVTiMQZhfYOrlR2YNyKkaeC6/erLI9/OLCl6iuJti8QsEvuam11CK1UOn//x3nd/vwbFJiyEkvtNbu3vwTzuamJMhn6ivvzKBff6/hytb9kwSWr9rO43R8tHZJkW99q4koxEl8Yg/Ic8jMXytR8S4vHqy3mchP1s68Wfv/780fMxlwXK4spZPHM+S99COYjCIBJuZmTjYOqMqCojYl/mvT6t+2Hcsyrruw/dunSCJNtM3Vykx/Q935e92PBuSIIs9Xlo6HkBRUJ81kYn6GRrlscW74qQ+COPJ5ZKhHenmdL7KkoZeoHyHODSLMDxmAtk5GDnTFYphOvTfGq3b9dc5tY5PXTltOlfd8WxuxuQT4X/kaLm2Slqnomi5jkoar4CRf2zUVRCWEiHtnegKKHFUZPaFFnPSpIiWkxftqkVhY4QPhht2xH5wDb5emPt3sZq69bj9qrnNTqbNoFstBzQjB1N/5ywdmer3eh43zz2Ghu0WfUedBrkWomN2A4GUV6Oanr3w5TqS6NJ5keAZ6SffalOy94OmpAfSNIIvPG5z5HXukHkU4JfnEAt2HXhVER73LVLbzrCO4TwL/qvBbqTCQAA";
private static final Logger log = LogManager.getLogger(TemperatureEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List