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.runtime.swing;
/*-
* #%L
* JAXX :: Widgets
* %%
* Copyright (C) 2008 - 2016 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.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.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
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.SwingUtil;
import org.nuiton.jaxx.runtime.binding.SimpleJAXXObjectBinding;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
import static org.nuiton.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 = "H4sIAAAAAAAAAJ1TPW8TQRAdO7Ed2wQCQtSWEnCAcAe1ER9JFBlkiEQiFOGGtW9lr3W+XXbn8KVJQUHHH6CgpUH5DxEVEg2t/wNSfgKz54vPQnZiuOI+5t68fTPz5ttvyBkNG1J3nCAUKAOnx6LI0WGAos+d508PDnZbPd7GbW7aWiiUGkZXJgvZJpS9cdwgOM0GMbkjJtcyuQmTuyX7SgY8mCCqNaBk8NDnpss5IqzPTG4b4+6NkbVIhTo5a6rqaWf9/PhgmOHbn7MAkSL5BSr77j8QpFUvNiArPIRrjR57z1yfBR0Sp0XQoYKWbWzLZ8a8ZH3+Do6g0IC8YprIEO79V3tiupgqUgi5rvCkRrg9S7wZkBSnblGbIdJvpeLsPEKxf1hngedzyr8/d36SktIsI9Mdjq+FES2fI1y1RTu2Ec6mlD5nE0cukVy+zyOqfiWFjfo1gTJdObAo+309jRfibKH+DsfwNKzh1qxqyDpOap10ipkm5HRIYYTV2a61xntFqJHlVmdbzh4TAz8cH+mvg9Phmc8WSFzloqyJlaKhKy0VTUhYbVdGJgtR+O4LpmpNKBru0z7G+1Y9X/legiT1pGI0Jcvk1JnpEluuMDz5fuPtrwXI7kDJl8zbYRb/DIrY1dQx6XuRevwkFndpsET3FSsTYVG0ZYBw+aHHkFVaIvBonI8i6lH1/B6NJR3vnv748unmyVmfMqRwbZ7MtFe5N5AXgS8CHm9ksmxTN7CsDA89mW7StN3K2GdJJTarxPe1qdVj4tRqFNrHeqzfvt2Zm6OMtClk4f2Lqf4AAHmr26UFAAA=";
private static final Log log = LogFactory.getLog(HidorButton.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List