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 jaxx.runtime.swing.editor;
/*-
* #%L
* JAXX :: Widgets
* %%
* Copyright (C) 2008 - 2017 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.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 jaxx.runtime.JAXXBinding;
import jaxx.runtime.JAXXContext;
import jaxx.runtime.JAXXObject;
import jaxx.runtime.JAXXObjectDescriptor;
import jaxx.runtime.JAXXUtil;
import jaxx.runtime.SwingUtil;
import jaxx.runtime.binding.SimpleJAXXObjectBinding;
import jaxx.runtime.context.DefaultJAXXContext;
import jaxx.runtime.swing.BaseActionPanel;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import static org.nuiton.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 = "H4sIAAAAAAAAAKVUzU8TQRSfVkot3x+KGDEBRGNC0urBRFOifEiDpAoBTIi9ON0d6JBhZ5x5C8vF+Cf4J+jdi4k3T8aDZw9ejP+CMR68Gt/sblmKBRpo0t3N+/i93/vNvPfuJ8kYTca2aBDkte8B32b5xZn19aXqFnPgITOO5gqkJtEvlSbpCul09+0GyLVK2aYX4vTCnNxW0mPegeximXQY2BPM1BgDIFcbMxxjCqv77mKgfF1H3SfVDPXN71/p1+6rt2lCAoXserCV0ZOykk7ayiTNXSADWGmHFgT1NpGG5t4m8u22tjlBjXlCt9kL8pJky6RdUY1gQMZbbznECPMDBaR/YpYaNuMAl94y9Zi4BWSigbLZRQJ55nIEyZe4YPPhp1IhSDuQbI16rmAayGQriQtRdJJ/iToOUzAjhA3CPzD91DAUot/2nLc65GelFIx6SVafyzXeCKn35j1aFcy19v7E37lhKzZ15QxQDcsUagiTlIikTsIywEGESg8nxjYWgDlk67W2utKo4yF3ztTk7gozDA7xyAI2VUUq5IJlEcSKLa6heZZqG5VL+tEWYdYHkB6QwYaEyGoDx5KqCvsrcSZQx6FGeKQbOhoL9FeljyjrRpSlQ+t93IiDNLnScLg4IvlkRJI7nKqQjPbRDGS48v9UraArmqfhQ/NkAUPv36HBbx9/fCjVh6gba19sGnpgB+DlVloqvITclu6NJsgHLgqPqSpW8BCYCK8LekeaEFuN3UgO60UXz6bnF6ipIUQm+/3T56HnX8+RdIl0CEndErXxj0gOang0NSncQD2YDhl17Z7HZ5/lBqRd0D1UFkjPlEuBjla55+I53A9QhJEmIuwzqea+/BlcfT9dFyKFxC4fGZ6IkXlG2rknuMfCfRKviqb7o1MZ5rsyWQnNlkTKvjtUfG9vh887zTrtrkrtMr1MuQd2fAemIhqjFHC0qj4wbNpm3wu7sV/FEHy8BfDcBooOdpxtyPTpgbI73PAY5u7pYdq4E03IERjXW6HCkv10BpiuDen4Jpb9GHVawcqFWCfI3ApQp11ua1zZbXMmKGteO0ahm60cFsQsTo1hzUvHIEyeuQ+L8A/TP3sp/wgAAA==";
private static final Log log = LogFactory.getLog(FileEditor.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List