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.hidor;
/*-
* #%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.Container;
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.Action;
import javax.swing.Icon;
import javax.swing.JComponent;
import javax.swing.JToggleButton;
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 HidorButton extends JToggleButton implements JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_HIDE_TEXT = "hideText";
public static final String PROPERTY_HIDE_TIP = "hideTip";
public static final String PROPERTY_SHOW_TEXT = "showText";
public static final String PROPERTY_SHOW_TIP = "showTip";
public static final String PROPERTY_TARGET_VISIBLE = "targetVisible";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_HIDOR_ICON = "hidor.icon";
public static final String BINDING_HIDOR_TEXT = "hidor.text";
public static final String BINDING_HIDOR_TOOL_TIP_TEXT = "hidor.toolTipText";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAJ1Tu24TQRS9dmI7sQkkFHRIQUkwiLAraiMeSRQFZIhEIhThhrF3ZI+13hlm7uKlSUFBxw9Q0NKg/ENEhURD639AyidwZ9bxWpGdBFzMru+ee+bcx/n+BwpGw7rUbS+KBcrI67Ik8XQcoehx7/nTg4PdZpe3cIublhYKpYb0l8tDvgGVYBQ3CF6jTkx+yuRbJn/I5G/KnpIRj8aIanUoG/wQctPhHBHuTE1uGePvjZC1RMV6eNdE1ZPu+vXpwSDHt77kARJF8otU9r1/IMiqnq1DXgQI1+td9p75IYvaJE6LqE0FLdjYZsiMecl6/B0cQqkORcU0kSHc/6/2ODpHlSiEQkcEUiPcPSu+L4I2R+O5796OPTdipM9KuewiwgIyTZjXwohmyBGWrFrPVuBtSBlyNoadIx6+zxOSvZjB0kLHUKYj+xZl/y9l8ZLLFups2MGzsIbb02ZAM/eymWftzzWgoGMKI6xMXze7Ma8Ile7KyvRdsdc44MejQ/2tfzI4XZAZErd8UdaYF2haSkvFNQqr7Vq6HTGK0H/BVK0B84aHZCRnlOr5yveGSFJPKtIpWSZvh5kOsRVKg+MfN97+noH8NpRDyYJtZvHPYB47mjomwyBRj584cVf6c3QuWpkIs6IlI4SrDwOGbLkpooDG+SihHlXP79FI0tHuyc+vn9eOT/uUI4Wrl8nMelV4A0URhSLizkpDl0y0TkUZHgcys8AkU+Tss6yGa3bTnbcmVo/DTV1NYvtYc/rtW/XSHBUkp9AK719M9RclNsv5XgUAAA==";
private static final Logger log = LogManager.getLogger(HidorButton.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List