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 jaxx.runtime.swing.editor;
/*
* #%L
* JAXX :: Widgets
* %%
* Copyright (C) 2008 - 2015 CodeLutin
* %%
* 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.GridBagConstraints;
import java.awt.Insets;
import java.awt.LayoutManager;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.DefaultBoundedRangeModel;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JSlider;
import javax.swing.JSpinner;
import javax.swing.SpinnerDateModel;
import javax.swing.SpinnerNumberModel;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import jaxx.runtime.JAXXBinding;
import jaxx.runtime.JAXXContext;
import jaxx.runtime.JAXXObject;
import jaxx.runtime.JAXXObjectDescriptor;
import jaxx.runtime.JAXXUtil;
import jaxx.runtime.SwingUtil;
import jaxx.runtime.binding.SimpleJAXXObjectBinding;
import jaxx.runtime.context.DefaultJAXXContext;
import jaxx.runtime.swing.Table;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import static org.nuiton.i18n.I18n.t;
public class TimeEditor extends JPanel implements JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_BEAN = "bean";
public static final String PROPERTY_DATE = "date";
public static final String PROPERTY_LABEL = "label";
public static final String PROPERTY_PROPERTY = "property";
public static final String PROPERTY_TIME_MODEL = "timeModel";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_HOUR_ENABLED = "hour.enabled";
public static final String BINDING_HOUR_VALUE = "hour.value";
public static final String BINDING_MINUTE_ENABLED = "minute.enabled";
public static final String BINDING_MINUTE_MODEL_VALUE = "minuteModel.value";
public static final String BINDING_SLIDER_ENABLED = "slider.enabled";
public static final String BINDING_SLIDER_VALUE = "slider.value";
public static final String BINDING_TITLE_TEXT = "title.text";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAI1VT28bRRQfb20nTpo0bdqqqEFaIJWcUtZOi8IhCBryR0nkhKp2pQpfGHun9qTj2WVmtnFqgfgIfAS4c0Hixglx4MyBC+IrIMSBK+LN7K7HTra1rXjjeX9/7zfvvf3+L1SQAr11gvt9T0Rc0R7xDreePv20dULaaofItqChCgSKPzkHOU007w/lUqF3mjXtXkncK9tBLww44SPemzU0J9UZI7JLiFLozXGPtpSV+lC92Q8jkUYdgsqK+u0/fzvf+F9/5yDUDwHdFSjFneRlK8nXkEN9ha5Bphe4wjDvAAxBeQfwLmjZNsNSHuMe+QJ9hWZqqBhiAcEUenv6kk0M498PFZpdPXyEOWFVhVbHkMpTyOsRn4Kv1wDJrvkZhsa3CJ6hCEIi1JlCSxqbp/F6MV5rVWC4RZg+LFphvkUwH3OLr9dalDSGo8AnTKGr1uyAK9IhIyDyPlZEoUVjEinKvB0QWP18j/JIpZFWtFk/Ka0eUs6J0PZGbZ1mupj7DEpD705DyX5sPeK/2sAtRoDSWxn+RqctS5YkRRWDMq6N4juspcy5lvPVWFrV5zvjunw3iADy9bEYSZHjlkVzJ/sZMYoxXfp095xGMuprSpbH4xtpUo1At8fqhTHy7BjZPs81UUFEIAaCmhcn7zGo4pm7dW7mdECj/e/m8u8//fnjXjpoM5D7RqbpyJ6AAUhalurUV+Ip001TOcLhZhOVJGHQhWaJrGQAqydqAAf5rtqe28eyCyEKM3/8/MvNz3+7hJw9NMcC7O9hbX8A7dwVwELA/H748UOD6PLpLDyX4OsAqd1A0JcBV5htMdrhPTPUxTb805znFenD+fKgQ5S5//Lal33gZyWDnyHIVunXf5frPzxMOcoB5jdeaW55KnyGipQzyolZR8mmyVw/86EkkR/YjZK1Y1Da32EyIR+Y5+YFHi7B5BCupwN24MKAyt34AMVCiF48wncGnJy6SVsfR70WEWZ6y9V7Lvzdf3DPXTf2LzCLoOluaM4a6TIpr7kVd6MK5GkIW4YV/WsbJfMzCeP0d6UZTlbFfla6ZAinSJiWUtalJMumvOZJoo7sciuDTq+y8pqufqGNGeE+FnuUMGDz9sA263ai8o4Ojp80djO5GF2bUyCcfG0Lg5GImSmT1TMp2yy8Nnr4JBAN2n5eD3Eb1pBCzkb1dSjmQky50h5SX5DQbKbIqqahdsgzHDH1SRBxn/iP4V1Dhm21bjpro+rede+/r8PNm3BmEG28JcB/HtUDQFV6Bq3ynqQvwcZZX7fXuXSuM7NZidfuJFZypp/Oggg6b/FDeCdit0W5Dyg+uhA1p59zEPF/Qeu2sWwJAAA=";
private static final Log log = LogFactory.getLog(TimeEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List