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.awt.event.ActionEvent;
import java.awt.event.ActionListener;
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.JPanel;
import javax.swing.JToolBar;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.jdesktop.swingx.JXDatePicker;
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.DateEditorResetAction;
public class DateEditor 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_DATE_EDITOR_DATE = "dateEditor.date";
public static final String BINDING_DATE_EDITOR_ENABLED = "dateEditor.enabled";
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 = "H4sIAAAAAAAAAJ1Uy27TQBS9SZukSR/QglhHbelDFLusi3j0JYgSWrUsKrJhEk+SSR2PmRk3jiq6YMGOH2DBlg3qP1SskNiw7T8g9RO4Yydx2iZ9YCmWMz5z5txzz/WPv5CQApa4qBqOxxR3jDrxfUN4jmINauRe7u1tleq0rNapLAvmKi4gvGJxiBdh1OquSwVGMY9MZshkaiazzWSu8YbLHer0EK3kISNVy6ayRqlSsDBwc1lKc7eLXPFdT7TP6qu631m/Pz85jdH1r3EA30X5SSz70S0IoqqH8xBnloKpfJ0cENMmThXFCeZUsaBxvbZmEynfkAb9AEeQykPSJQLJFDz+L3sCuoDKdxWMzOa2iUPtZXVZf5NZVaqkYRFFg0LW8WHDQoBw3YAiqSDR4Ba1FSzfYndBb4ko0rLGmztU6q5N6ooN7YKxyrlNiRPhxhSulIhoQ+9rqG/IJnpl5N7iu1UiNDQdiRMh9N456KqnUKWGTHWRGaurTkFW11LHLO4r7oa7fCO3pwvYZuV92jlFwNygnmPGjChjUbtjRRTl4bKCmcHx1gndQVSYzZnB2dTHBMBPx0fie/PstBPIYRSXvW5Xz+xhOlzBXSoU09ruhGn0FLPNAnFXitgkauPgBoM5f7Xy3TYS1aOKsKOayXhFZA3ZEqnTk58P3v8ZgvgmZGxOrE2i8a8hrWrYsRq3Ld99/iIQN9Ycwftd/A0pGA7CBJOHQegMzJfuycLiRwWpChcNolDdxOG0ZZmFgtnCa1q/og4p2RSHbOaQyY3wz8Jidm4uG/LgInZeLyOVj47PX+14t8DjrbNf3748POm4HsN6Z2+yM3I+8Q6SzLGZQ4MPQXvG+w7+qCupZ/FogPuNNJzLstuenmxwn+3n6XiJC4uKbcIcpT1KVIiNQwOpAyYZWoJhQNd2OyMamJ2uYNcCwzp439MHLAUe6CcDLszrDZSkK7zsyV7W3t6N9/YONYwF6Auy+8kIPwLXnR9TkLRJi+O3ASaeooMkW2KOhaP/7BJpTN8zyPgPOBAoYPEGAAA=";
private static final Logger log = LogManager.getLogger(DateEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List