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.file;
/*-
* #%L
* JAXX :: Widgets File
* %%
* Copyright (C) 2008 - 2021 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.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.io.File;
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.JDialog;
import javax.swing.JTextField;
import javax.swing.JToolBar;
import org.apache.commons.lang3.StringUtils;
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.swing.SwingUtil;
import static io.ultreia.java4all.i18n.I18n.t;
public class FileEditor extends BaseActionPanel implements JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_ACCEPT_ALL_FILE_FILTER_USED = "acceptAllFileFilterUsed";
public static final String PROPERTY_DIRECTORY_ENABLED = "directoryEnabled";
public static final String PROPERTY_EXTS = "exts";
public static final String PROPERTY_EXTS_DESCRIPTION = "extsDescription";
public static final String PROPERTY_FILE_ENABLED = "fileEnabled";
public static final String PROPERTY_SHOW_RESET = "showReset";
public static final String PROPERTY_START_PATH = "startPath";
public static final String PROPERTY_TITLE = "title";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_BOUTON_XSL_LOCATION_ENABLED = "boutonXslLocation.enabled";
public static final String BINDING_PATH_FIELD_ENABLED = "pathField.enabled";
public static final String BINDING_PATH_FIELD_TEXT = "pathField.text";
public static final String BINDING_RESET_BUTTON_ENABLED = "resetButton.enabled";
public static final String BINDING_TOOLBAR_VISIBLE = "toolbar.visible";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAKWUzU4UQRDHe1cWXL5BxZsSASFRZ9VEYwJ+8LVRsgoCJkQu9s40bJNmuu2uYYcLBw/efAEPXr0Y3oF4MvHilXcw4RGsnhkYILvLCiQMpLr61//6d1f9+EtyRpO7Uq87fsBB+s4GDUNHBz7wTebMTa6szJc3mAszzLiaK5CaxD+ZLMmukg7vKG6AOKslJBViUsGSCgmpMC03lfSZfww0XiLtBrYFMxXGAMhY3c2uMYWlo8zxUAU6Oaum6lpn/f78YD/DZr5mCQkVyu/Csu/8ByCtuqVEstwD0l/aoFu0IKi/juI099exoC4bmxbUmDd0k30kO6StRFoV1QgDcu9c9kS4CBUqIH3DU9SwSRe49Beoz8R9IKOnC6lyb52Bcda4YE4RP7MeLmqlIk4rkOvUdZmCSSHsKv4C0+8Mw7L6bAWOrcqZklIw6qe7ej2u8S1IvT3r07Jgno13p+sd9rzaS3kDVMMChQpi0iNi49K0HHAQkW/X0mALC8GcivXY2KFZaMWp5bypyOoiMwxO6WgDLKqMUshVqyJ0TBUFOHPLGJ6i2mbl03q0JUwFgMYCuXJiQxy1iTfSUxXWV+RMoI8DJ/EoN1o4eUBfWQZIWTGiJF16WMdQkqTJ7XovFDvCSTsifZyZVZLTAYaBDNVvRttPi5gVd9JQ/U6yx0SJn3Z39Pfqwf7x9hk8a9exSYFvWWmpmAZutfXEvRMAF4XXVI2v4oUxET0tXB1trHwpyUT1qCJ+r5bkvKSmgrRc2/7ez4EPfy6RbJG0C0m9IrX5r0geKnijFSm8UD1/EYnrrF7Gb6+VCaRV0G28ECDdEx4FOljmvofX9yxEl0Ybu3Qkanf+4Ne3LyN7h05lUONwMztTt3LvSSv3BfdZNGqSKVJztHQowwJPpiOi1tDI2L/tKmkCJ/o+rFV/V1lqj+kFyn2ws6B/IpYxSAH7tBwAQyvs7sdRYfa/JxH8ZhPw/BpeBdjZYFOenh/UtsUNTzCPzo9p4W7cbnUYt5qRwtJhdwFM55p0A5PY3sCdZlj5iHWGzc2AOuykXObKjq4LoWz4bQOHRpq5LEhUnJthw6UGhLEL12EJ/wCrvjpOUQkAAA==";
private static final Logger log = LogManager.getLogger(FileEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List