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.datetime;
/*-
* #%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.LayoutManager;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSpinner;
import javax.swing.JToolBar;
import javax.swing.SpinnerDateModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
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.binding.SimpleJAXXObjectBinding;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
import org.nuiton.jaxx.runtime.spi.UIHandler;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
import org.nuiton.jaxx.widgets.datetime.actions.TimeEditorResetAction;
import static io.ultreia.java4all.i18n.I18n.t;
public class TimeEditor extends JPanel implements BeanScopeAware, JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_SHOW_RESET = "showReset";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_HOUR_EDITOR_ENABLED = "hourEditor.enabled";
public static final String BINDING_HOUR_MODEL_VALUE = "hourModel.value";
public static final String BINDING_MINUTE_EDITOR_ENABLED = "minuteEditor.enabled";
public static final String BINDING_MINUTE_MODEL_VALUE = "minuteModel.value";
public static final String BINDING_RESET_ENABLED = "reset.enabled";
public static final String BINDING_TOOLBAR_RESET_VISIBLE = "toolbarReset.visible";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAKVVTW8TRxgeG+wQOymkrSjQqkXiI0HQNRx6qEKh+ZRBDkFJqGhzoGPvxJ5oPLOdmY2XWnDogfbSP9BDr71U/AfUU6Vees1/qMRP6PvurnfXZJ3EkMPEO/PO8z7zzPs+8+d/pGQ0uaF025E+t0o6uzQIHO1Ly7vMub/w+PF6c5e17DIzLc09qzSJ/gpFUtwmVTeZN5Y42w1AqkVINUSqxUi1JdX1lGQyAzTfIBVjnwpmOoxZS+ZGbm4ZU9tMIucDz9dxrlzWebn+eXFrv8CWfysSEnhA/zQc+/oYAOmpTzZIkbuWvN/YpXu0JqhsAznNZRsONI1zS4Ia84B22Q/kOZlokLJHNYBZ8vlbyRPChVCBZ8mpy/cfUsnETXuQf4+7bWaN41LLwoNswbDiQoD2vBCibEmpq1wmLLk5xu413JJCTHaUH81Z8gmeOHBMDwRwNj0uJdPLgPDGlmqXSz+examZDJrpqN4GM1gDM4jmoKbOolKCUZnGVZBYxAfUz6aNFMGwySR6oNMt/D6Pw0dpRjxegzaR/zBQOIlRF5LgKQtEmlTHDD8cit+CtUWqh3eUdBT6wVDoom9Bagz5LImcSY+0pKSF+89hW7HJPSSrV9JVvIuBKsPk4tvAwNkkvizwiHX8+nR4ZSq6ojTT9Xhdk6ujOgU600k7M22Swjao4MO0JZdGmwL29QZERR19aXRHY5ow8KeXz/Ufvdf7gzauArmLR+3KOBb0lKeVx7TlyO101MO+5aK2Rr35bShGJsDuQjubPZz5ZhwJ7IFFVLmI5NSp6QBaaWL/1V9nv//3BCmukopQ1F2lGH8P6q8DJdJRwg28u1+H5KZ6p2A8gzShcDpK8x+hIKhYELwtu6F7lFvwj+kApJo9XKqE2cv113///uuVVwO5CkD08nF2ppKVviNlLgWXLPS92NJyfa7qGea7KvWrPAcj0B+WW8G8uLO/CMcvD+hQtGS6RQWTLtWrnAmw3LP9pXjCqa8/2niyvvpkeeHbZ4C4R4UP9Xej36HSFUw74GT1gUl9g4tzoe3hPNra3LVrzwIfE38VyoK/7pKssx2D3sBJq/1kF3CZYJI2BQO6031uVqKPufx0meY9Rr5Dy8KSk5YF8D2V2rZTz0saO8Bb6D+T6r9278GjrZWM9E5W+rXU7McQP/tGjCH/dD+zb8wLGPK8o3KeAMSm0i7TDykHzSFDaYcK8HoysccNhzxgKZBzc/CgQVaoqR3ofUvD1Sg+l0n2mTkGk8kd1fJNFnX0yQE9jH6Ddh6N6O06Kn8hrKKnCp408t5teMToxSaXLrw6dw6AFnCsHImI0z/j8Es+wrl3RvgYEP4HdXJsw/EKAAA=";
private static final Logger log = LogManager.getLogger(TimeEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List