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.runtime.swing;
/*-
* #%L
* JAXX :: Widgets
* %%
* Copyright (C) 2008 - 2016 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.Color;
import java.awt.Container;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
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.Icon;
import javax.swing.JLabel;
import javax.swing.Timer;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
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.SwingUtil;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
public class ClockWidget extends JLabel implements ActionListener, JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_DELAY = "delay";
public static final String PROPERTY_PATTERN = "pattern";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAJ1TPW8TQRAdO7GdOHwEkCgoUCCGgIA7qI34kKOIRAeRCBIRbrL2Lc45591ldw5fmhQUdPwBCloalP8QUSHR0Po/IOUnMHt38bmwTeCKu9Pq7Zs3b958+w0lo+Gu1B1HRAFK4XRZHDs6Ehj0uLPxdHt7s9XlbVzlpq0DhVJD+hSKUGzCgj88NwhO0yMmN2VyLZObMbkN2VNScDFCVPeganA/5GaXc0S4NfFy2xh3a4isxyrSWa2xqsfV+vnxwaDAVz8XAWJF8mep7Tv/QJB3PetBMfARLnpd9p65IRMdEqcD0aGGztqzRsiMecF6/B0cQMWDsmKayBDu/Zc9CV1CFSuEudqGx1o8vI9we5J+0yc1TiOU7b3Xgd/hqFRCUEYo+Txk+wgXrFDHinfWBfIO1zmmohgi1wJhMUelLY4Q2Uo6I4qzkq/sGWE03JykjWbp5LPMbS00oaQjOkZYnhwjm4SXhEozsDw5A7ZMAvxweKC/9o8HJ4OfIXFLf7s1knGagtJSUauB1XY+nXqEQeg+Z6rehHnDQ1qQZAFWpivfypCknlSkI7BMzjNmdomtVBkcfb+882sGimtQDSXz15jFr8M87mpyTIZ+rB4/ScSd6c/Re9HKRKi2WHuvo2UkKJnnHvoM2VIrED4N5VFMTq1Md2oo7HDz+MeXTzeOTtwqkM7aaW7mjpXeQDkQYSB4sijZDoxdjAVleOTLPODjIl+w36rKkncleV8d68FbqXnqgcVciyP7uZ50Yf9qp2ZKl2QKySUi+QNDDqefPAUAAA==";
private static final Log log = LogFactory.getLog(ClockWidget.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List