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 - 2017 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 = "H4sIAAAAAAAAAJVVzW8bRRQfu/6IkyZNG1oVNZUWSCW7lLXTonAIgqb5UBI5AdVGqvCFsXdqTxjPLjOzzaZWEX8CfwLcuSBx6wlx6JkDl6r/QlVx4Ip4M7v22MmiuFGy2Xmfv/eb997+8hrlpUDvHeEockXIFe0Td3/j0aMv2keko7aI7AgaKF+g+CeTRdkWmvNGcqnQB626dq8m7tVNvx/4nPAx7/U6mpXqhBHZI0QpdHPSoyNltTFSr0dBKIZRR6DSov7095vsj94PP2cRigJAdwlKcc7zspXk6ihLPYWuQKYnuMow7wIMQXkX8M5r2SbDUh7iPvkOfY+KdVQIsIBgCr0/fckmhvGPAoVmVva/xJywmkIrE0jlMeR1iUfB122CZNu8BoHxLYBnIPyACHWi0KLG5mq8bozXWuUZbhOmDwtWmGsTzCfc4uu1FiWN4cD3CFPosjXb44p0yRiInIcVUWjBmISKMncLBFY/16c8VMNIy9osSkprBJRzIrS9UVunYg9zj0Fp6MNpKNmNrcf8V5q4zQhQej3F3+i0ZcmSpKhiUMaVcXz79SFzjuV8JZbW9PnWpC7X80OA/M5EjKTIScuCuZPdlBiFmC59un1KIxn1NCVLk/GNNKlGoBsT9cIYuXaMbJ9nWigvQhADQa2zk/cQVPHMXT81czqg0f57bemv569+2xkOWhFyX001HdsTMABJy1Kd+lI8Zbppqgc4WG+hkiQMutAskeUUYI1EDeAg32Xbc7tY9iBEvvjy9z+uffPnBZTdQbPMx94O1vZ70M49ASz4zIuCz+8bRBePZ+C5CH9ZILXnC/rU5wqzDUa7vG+GutCBf5rznCIRnC8OukSZ+y9XnkXAz3IKPyOQ7dKLf5Yav94fcpQBzO/+r7nlKf81KlDOKCdmHSWbJnX9zAWShJ5vN0rajkHD/g6SCfnEPNfP8HABDPvxoN4acHLsJM17GPbbRJgZLdfuOPB7994dZ7XyDOyfYBZCa13VzDSHK6NccarOWg30RcL1tMFOnR9QuR0fDHkawoZhRb9tomR+zsM4/V1phpNVsZuWLhnCKRLOdzAj3MNihxIGpdwY2M7bTFTuwd7hV83tMUrKmpJkNZUrriTqwK7CMuj04itX0rkYX5tTIBxe2/xgzO8t6U9Wz3nZZgBcgCmP50BqvoUud9YIm7TzrZWVHsMtfSTpU3jPrq7CB6ePj3yhjRoB7sACA/lazeKvmbbbIo9xyNQDP+Qe8R7Cd4eMmm/V9N9azbnt3P1Yd+AiwD4d8l7NXsPiqc58W1bitXseKxnTTyd+CJ238Cl8E7HTptwDOJ+diZrRz1mI+B9sfVKxbAkAAA==";
private static final Log log = LogFactory.getLog(TimeEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List