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.text;
/*-
* #%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 io.ultreia.java4all.bean.JavaBean;
import io.ultreia.java4all.i18n.I18n;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.LayoutManager;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.TreeMap;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JToggleButton;
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.bean.BeanScopeAware;
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 org.nuiton.jaxx.widgets.text.actions.PasswordEditorReset;
import org.nuiton.jaxx.widgets.text.actions.PasswordEditorToggle;
public class PasswordEditor extends JPanel implements BeanScopeAware, JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_PROPERTY = "property";
public static final String PROPERTY_RESET_TIP = "resetTip";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_RESET_ENABLED = "reset.enabled";
public static final String BINDING_TEXT_EDITOR_ENABLED = "textEditor.enabled";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAM1UTU9TQRS9LbRAAQUlJJqYkKCCQV9jjCuMH3wFsQpBFsRunPYN7ZDHm2HmPvqIkYULd/4BF27dGP4DcWXixi3/wYSf4J3Xvr5WypcrmzApt+eeOffOuffbb8gYDXelrjh+IFD6ziYLQ0cHPoot7iw9W19fLm3yMs5xU9ZCodRQ/6TSkC5Cv9uMGwSnWCCmfJ0pb5nyDab8rNxS0ud+C9F0AXIGdz1uqpwjwuSJyWVj8q+byOlQBbpxV0fVne76+fH+YYrPfU4DhIrk91HZUxcgSKruLkBauAhXCptsh+U95ldInBZ+hQoatLFZjxnzim3xbdiDngJkFdNEhnDvn9oT0UVUoULoQknnMek14VY4Ggd5iM4KJdSkduddAmilouwsQneJMx9hyIp0rHCn/rgJoldpqbjG3TZUvbwWlOaG45pQ9v/hJN7Pyiikbwp8g6odsQShY2qU6yytSenNMG2Rfc2ETESEcLUNOhMg1WUhI01kzhZWrwfhehs8rnZBcM9t5x9oCFoVlSra2Gj771mUlYrHEa79pdVGExk3FLnl9kluIXc6iTsTo6SKVF9AYYTxkwfDenuVUHVXj5/santNBPywv6e/1o4OYyvbCR47K6tlaslXjVcWVtvluo8DFF7+JVPTRZoN7pEropGeOF356waS1JOK4cgylslZZKZKbJmew4Pvo29/dUF6AXKeZO4Cs/jn0IdVevyq9NxQPXkaiRuo9dI5RH9dCIMlelKuV5jwkdO4ZTaYR16BrFRsO+BJoG+DaJGVvGYspEZOnN7Ipu795aMfXz7dOoibmaIybp4nM2lo5g1khe8Jn0eboTH0HTdBvzI8cGUy0Z1mHGi+e+N5aQzXRHROHWtUN1l3Q5YDs6bZDteGeS/4rpn3bTtOb5pNam0aQg+P0wbfiZhj8s77MLB3P4iaY789hHhw1X+qboh8VVsULo9Xw1lCUxfjb1lG52DOemxX0i6BS49cMupYSfgurZnHx5hT9swR4x88Vh7qlwcAAA==";
private static final Logger log = LogManager.getLogger(PasswordEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List