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.status;
/*-
* #%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.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.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
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.context.DefaultJAXXContext;
import org.nuiton.jaxx.runtime.spi.UIHandler;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
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 = "H4sIAAAAAAAAAJ1Ty27TQBS9SZumTXkUkFiwQIUGiniMYR3EQ6kqWhkqUSQqsmESD45TZzzMXBN30wULdvwAC7ZsUP+hYoXEhm3+AamfwB07jSOUhEIWtnVz5sy555779ReUjIbbkfaZjAOMJOvwJGE6lhh0Bdt8vLOz1eyIFq4J09KBwkhD9isUodiARW9YNwis4RKTkzE5lskZMDn1qKsiKeQIUc2FisG9UJi2EIhwY+LhljHO9hBZS1SsB3eNVT3urh8f7vULYu1TESBRJH+W2r71DwR517MuFAMP4bzb4e+4E3LpkzgdSJ8aOm1r9ZAb84x3xVvYh7ILc4prIkO481/2pHQpVaIQ5qubLm+K8C7CzT/19wLPF2iYQY6xYfUwau2+TGtKpQxzCCVPhHwP4ZxVyqx6tiFR+ELnmLLiiEJLhKUclfU4QmSF6wFRwkyP/mUvbI0wGq5PMpeGyfJh5r4WGlDSMZURVibnyEbhOaGyEKxMDoG9JgW+P9jXX3pH/ePJz5C45b+dGgk5jUHpSFGrgdV2Nht7jEHoPOWq1oAFI0LakHQDVqcr3x4gST2pyEZgmdgTbtrEVir3D79dfP1zBorrUAkj7q1zi9+ABWxrciwKvUQ9fJSKO9Wbp+eSlYlQafLWrq+jWFI0z9z3OPLlZiA9GsqDhJxane7UUNjB1tH3zx+vHR67VSCd1ZOczB0rvYK5QIaBFOmmDJZg7GYsKiNiL8oTPi7zBfuuqEHyLqXPy2M9eBNpkXlgMVeS2L6upl3Yr+qJmbIlmUJygUh+A5f6PN49BQAA";
private static final Logger log = LogManager.getLogger(ClockWidget.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List