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;
/*-
* #%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.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 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.context.DefaultJAXXContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
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 = "H4sIAAAAAAAAAI1SPW8TQRAdX2I7dvgIWEQBQpSE1Gd6IwgyskhkQMJIRLhh7dvYl6z3lt05cmkQP4GfAD0NEh0VoqCmoEH8BYQoaBGzd2efAwfkit3T7MybN2/eq69QNBrW9lgUuTqU6I+4u31jZ+dub4/38SY3fe0rDDQkX8EBpwvz3iRuEC5327a8npbXm8FIBZLLqepGG6oGDwU3Q84R4dLRir4x9c7kuRGpUI9RJ6TyUF98/+Y89569dAAiRexmaZTV/1Vlk8y2wfE9hLPU6QmrCyYHREP7ckB8T9pYUzBj7rARfwxPodyGkmKawBDWjz9yjBHXRwphbmO7zXpcXEFYOcLUHFBftymC/v4D3xtwVCquKiEUPS7YIcIZS8m1NN0tiXzAdZZTVgyRa4mwkGUlw0wB2U46BYrSlvdtjHI0XDxCiJbiZkvJVCt0oahDCiMsdf/c4z16Sja49NsGLWD8+nOx9untlzet8dpmqPe53NQp15GcSgeK6Pu29elkZyH6on6bqUYXKoYLsmxsyeUcYp30mchRv0RLW+7eYmZIEMXy53fvFx99nAGnBVURMK/FbP4WVHCoSYVAeJG6vhkzOnEwR+eC5YZQ7bH+/kAHoSQznbrqMWSrPV96pO61iIRYzhFiwqZX+fCj1nm9ORajQOTO/zU9E6T4EEq+FL7ksYtTg+a6dl4ZHnpBZsQ8axbsXVWpWS7E50rutLuB5sm0NmctCu21HlO3fxvHRkp8/Q+QGoH8Asioz+yiBAAA";
private static final Log log = LogFactory.getLog(ClockWidget.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List