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.font;
/*-
* #%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.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 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.binding.SimpleJAXXObjectBinding;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
import org.nuiton.jaxx.runtime.spi.UIHandler;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
import static io.ultreia.java4all.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 = "H4sIAAAAAAAAAKWUz08TQRTHp5UW2oIoGEw0RgwoJOIuevEA8QeQRrEKEUwIvTjtTtshy84wM0sXDxw8ePMf8ODVi+F/IJ5MvHjlfzDhT/DN7pYFbLcr7WHbzr75zPd933vz/Q/KSIFmmKgbjksVc4wt7HmGcB1Ft4mx/HxjY6WyRapqiciqoFwxgYJPKo3SZVSwTtalQka5BCQzIJmaZIYkc5Ftc+YQ5xRoroTyUu3ZRDYIUQpNd9xcldJcO4mc87grwrPaqm531q9PD49SZOlLGiGPg/w8pH3/PwBR1n0llKaWQiOlLbyLTRs7dRAnqFOHhIb02qKNpXyDt8kO2kf9JZTlWABMoQcXssfH+SiPKzQwubyKHWLPKnTvvP4mtepESaPGHGUU4bFGPzDBub87q9CwRWrYtVX4isCK1mvoHIyizbCKYgdqYZD+fzlaH5UN1lw6z7kacRYYswl2oh2DekfxFG00epefXF6H+AUsIJ9rGuIZsgleGq11HZiLVFms6QRHjp6JXnAV2KCjxk6CC2G6rXNvnn2ddXmHN+BxCVd8j0fOnOKvhrHiX/9b/QP9akT9GrVOqowywoVlhSY6j4ru9rcQFfT5ROc+18f4gR8P9sW35vFRq7nHQNx4t12n5hg6jQvGiVBUaxsOOttV1DZfYz5XRjlJbLgE/CGfile+FkaCelAR9IUmGS+wbAAt0390+GPs/e9LKF1Eeeg5q4h1/EuUUw0BjjHb8vjTZ764weYAPK9omVAvG+8xKDO6PG9hhccr1LGgKk88cGkq3qUTUQcrxz+/fr572HIqBRonk+yM3Mpsoix1bOoQ/yIIZ7zt4Be4JK7FogFuN9Ip/Z3n4UxM+8+ZdvkPVZiwiFjF1FFEX0DzgYxxrOD6qbiKgBV696yfmP71yIdfTwDP1fT444rta398cVCWcbzj+hTz4pQ+Wg2muQPjRgJGP3F0PlaPmMEaq7oydD3GnCSsnM/q4nISUEHB7bhO+TrxVE8ovVyMcehWIsKrngmrMVkkI7zrmbDZEwEabpdKGta2JzPiCnK754IkI8QVJBkhriDJCHEF6U6AW0SF49HBiTuJVMguhL/TMhZ2RQsAAA==";
private static final Logger log = LogManager.getLogger(FontSizor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List