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.BorderLayout;
import java.awt.Container;
import java.awt.LayoutManager;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JToolBar;
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 org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import static org.nuiton.i18n.I18n.t;
public class FontSizor extends JPanel implements JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_DEFAULT_FONT_SIZE = "defaultFontSize";
public static final String PROPERTY_FONT_SIZE = "fontSize";
public static final String PROPERTY_SHOW_DEFAULT_FONT_SIZE = "showDefaultFontSize";
public static final String PROPERTY_SHOW_FONT_SIZE = "showFontSize";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_DEFAULT_SIZE_ENABLED = "defaultSize.enabled";
public static final String BINDING_DEFAULT_SIZE_VISIBLE = "defaultSize.visible";
public static final String BINDING_DOWN_SIZE_ENABLED = "downSize.enabled";
public static final String BINDING_UP_SIZE_ENABLED = "upSize.enabled";
/*-----------------------------------------------------------------------*/
/*--------------- Constants for all none public bindings ---------------*/
/*-----------------------------------------------------------------------*/
private static final String BINDING_$JLABEL0_TEXT = "$JLabel0.text";
private static final String BINDING_$JLABEL0_VISIBLE = "$JLabel0.visible";
private static final String BINDING_$JTOOL_BAR0_OPAQUE = "$JToolBar0.opaque";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAKWUTU8TQRiAp5W2tAURqg0oGERuJq3ReBGiCKQBUpFYDsTGxGl3SpcsM8PMLF08GH+CP0HvXky8eTIePHvwYvwLxnjwanxnd9ul2m43tIdt+3487/e+/YESUqBrB9hxCsKmyjwkha0He3uPagekrtaJrAuTKyaQ94nFUbyKskZHLhW6Xi1r96LvXlxjh5xRQk95L5VRRqoTi8gmIUqhuW6PupTFSke95HBbtKmdpHpRX//6GX9lvHwTR8jhkF0WSpkf5BVUMlJGcdNQaAoiHeOihek+pCFMug/5jmvZmoWl3MaH5Ai9QKkySnIsAKbQQvSSXYbr73CFRhe3djAl1k2FZrsylS2IWygxqirmcyY4d32SCqWamBoWEdDoMIcNzyrwmzBIA9uW8i0ISHRJBV1moWQxrALb0YZvpP9PBvKcbLLW+r+cyYCzyphFMA08xrRH6RQtH+gyi1u7YL+KBVR/UUMcv4q2XBumg6wM1qJeyFyX9aqtFKPaaqZjnPXLbce92q1O2ryPBiZSxjV3IlNdUVypbyvQla7mw8YWgo0NVipWRQlhg1ih6er/S/4YVN56T/+z3hroav/kc18/fH9fau90HmJf6ml66iRh17hgHJbE1KEnvIW2lWkVH2K+VEVpSSy4Z/deZ3skVvHVkBzE8was3QsbWDYBkUh9+/gp/+zLORQvoQwsj1HC2n4TpVVTQBeYZTj8/oqb0VhrFJ4XdG7QeAufMJgXOr9sYIXnayY1oL33HGjCbI8mdDKppT//zlXerbQbEYPEZvqaB81IPEFJk1omJe55+5fb85yzXBLbYMGF9rrZmP7OcH+Nb7jPYq9Kx2tMGETsYJMqol8ry14a81jBS6VmKwJFa+/bbjX61x0XfjkCPN3QF4trlpv73bODkozjI9ul3Do7ZcSsewfYhzEXgZEiVNdjDIkZa7C6Lf2uhzQnCivtsgZ0OQooq+CFtmvyXeKooVBavBnSoflIhO2hCZWQKqIR9oYmPB2KAAt3bErTn+1QzQgbyMLQA4lGCBtINELYQKIRwgYymABvEeWfR59OLEbK4ngA4S/8Txig5AoAAA==";
private static final Log log = LogFactory.getLog(FontSizor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List