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.SpinnerNumberModel;
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.UnlimitedTimeEditorResetAction;
import static io.ultreia.java4all.i18n.I18n.t;
public class UnlimitedTimeEditor 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 = "H4sIAAAAAAAAAKVWy24TMRR1AklfKdCCeEi8pAIFARMQSAgVAX0qoLQgChKiG5yMm7hy7MH2NAMVXbBgxwKWLNiyQf2HihUSG7b9ByQ+gWvPNDNpkyaBSJl07hyfe+8Z3+N++40ySqIrQlYc7lMtuLOCg8CRPte0RpyHk8+fPyqtkLKeIaosqaeFROEnlUbpJTTkNuJKI2epCEz5kClvmPIRU35a1DzBCU8QTRTRoNKvGVFVQrRGF9suLiuVX2wgJwLPl1GullW3yvXz/fWtFJn5nEYo8KD8A9D25R4I4q73F1GauhqNFlfwKs4zzCtQnKS8Ag0Nm9g0w0ot4Bp5hdZRXxFlPSyBTKOr/ySPpbNUgadR/7mHjzEn7JpGN3fWX6duhWjluFgT28gzzmiNauI+hbtZF5DS8yxXVqNMTbiEaXT7X2jmzdqYa6Aq/DCm0WmjQeCoOkjiLHqUcyIX/FqJ7Fw0VKPc18RGTWgkwaeqov6EKLMvRgyfY3R2poRgBPMEjpFlbfWAF5LMG4pkUAMx2DRTxKXdYBs0qGMNcE5DrhKWURFHmvBP4dkUls0rMjKEHm6CTvkahDWQU3HjxGrYKPFEc52DRsxQ5p2JIzkNcKyBzzJTfsHcnWx+kgsVDrlMbLz5+ahi1CWyQF0hEz2diVASXWg3IjCSTjyS8XSklkAHH8IajbV3AzPQTwAVjvJY+1E2aSzw3ca6/Fr/s7U9vzko7mynVQmrgmHypPCI1NTUdjAcXl9Tlp/H3sQS7DjCwOesj43vXflihITqoYpwexomp4BVFdgyfVub34++/LUPpefQIBPYncMG/wB2YBU2SVUwN/Du3bfF5er9cD0E3/0aDZeEhPfxGFMO0wZbahkz2FMoKzz8yidxYGBZlH2FS6wpBql0MhaAuON7i9voZePRnx9fPpzf3BY4Ba2d62ZlLHLmBcpSsApOrEVG7tfSEoc8RXxXxNbWyuyQsbvtWYtm/oa93tol3r7/Ei/wDeukbdv8NW1S90Wz2yFzCia+KiR9I7jGbJLRCq9Zt8+W4YfI3dyQVVPNiNeZObOKmSl9dM2atQO+XABzUBcvvW3FG9twJ+507P9Da41Vb6Frwo0yoN/wGlWz4U2bdAmj6iLfnipp2P4kgPtcfMY4hVZJI7frQbwjsXjz1g/byZc8kHoQcHgtsa5HCZscuoue+laponbnHgTuxe1Tsh178hDrhr2HysPjrgtSeGGvBUwSOnAH/qPAZ0uUu3CY3d1FmjLXwY6MJvzRXD61ZjgODH8B9QZD89kKAAA=";
private static final Logger log = LogManager.getLogger(UnlimitedTimeEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List