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.config;
/*
* #%L
* JAXX :: Config
* %%
* Copyright (C) 2008 - 2014 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.Color;
import java.awt.Container;
import java.awt.GridLayout;
import java.awt.LayoutManager;
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.DefaultListSelectionModel;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.ListSelectionModel;
import javax.swing.ScrollPaneConstants;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.event.TableModelEvent;
import javax.swing.event.TableModelListener;
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.DefaultJAXXBinding;
import jaxx.runtime.context.DefaultJAXXContext;
import jaxx.runtime.swing.config.model.CategoryModel;
import jaxx.runtime.swing.config.model.ConfigTableModel;
import jaxx.runtime.swing.config.model.ConfigUIModel;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.jdesktop.swingx.JXTable;
import static org.nuiton.i18n.I18n.t;
public class ConfigCategoryUI extends JPanel implements JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_CATEGORY_MODEL = "categoryModel";
public static final String PROPERTY_SELECTION_MODEL = "selectionModel";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_RESET_ENABLED = "reset.enabled";
public static final String BINDING_SAVE_ENABLED = "save.enabled";
public static final String BINDING_TABLE_PANE_COLUMN_HEADER_VIEW = "tablePane.columnHeaderView";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAKVWz1MjRRRusoRfWXZXqAW22LUCq2uwZAJYXsRaN2ShEmogW0lgEQ7YyTRJs5PpsadDwqbW8k9Q/wK9e7HKmyfLg2cPXiz/Bcvy4NXydc9kJkMGE0sOIXS/73vfe93va775HcUdjpbOcbut8aYlaINou5mjo0LlnFTFU+JUObUF48j9GYmh2AlKGP66I9DDE13C0x48nWUNm1nE6kFv6mjKEZcmceqECIEehBFVx0mX/O3Ntt3kXVZfVBTrV3/+Efvc+OzrGEJtG9TdgVKSg1BBJaM6ilFDoBnIdIHTJrZqIINTqwZ6p+Va1sSOs48b5BP0KRrX0ZiNOZAJtDx8yYpD4du2QBNv7D7DFjHXBHo7pNRpQV6tyqwzWgPZ8lcWC1Jj/PIgb9uKYUyg8Tq2DJNwgdaHh+dcTMASbzCDmAKtXs+hIjymg/ye/CvAT1c97r1heXrjA54pgSsm8UjWhhNT9iEBzy2HmHBdKbM8rtfl6bU9Ep06ohQKCJAz3Up0XCGmOhpY7EW75yXDJ/vrV6irALUoIxd9wKQqVDIJNB8KLlU5M1XicIq4Qgi0yHhNO4eBeyGY7YLa2u6R6oIMXfIR3au1Lv9+EGa73Z1Y6EA310P58ZYfkugJEehuSGSZtEWGEyxDV/oSbvgJA7Y4J46c9NkQz1ZTCGbJEM2PHHXwhdKz4a1ztBi6CeAOWuAOwfiOnECWJiwLtHDSbyhF2HKtZOGKlUhCtfv33Owv3//23U7XPxKQ+25kaI/9wVzbnNkwglSmvu2aR1NQM72H7c0TNOleRuWN9yOElbxtEAf5XpNwTcK1HHbqQBEf//WHH+c+/vkGiu2gKZNhYwfL+Dzcojq0tc5Mo21/+EQputmakMYntcE4VXD1RY2zpgWuNt3JMpNx7XkuX95+1YY+3I/ogy+mMvnTX7Olb590ezEC2u5dGx70I36MxqhlUosoN/WMMtI9E7ZDmgYLDDHKIlHkTNrexL6vPh9HFX+nysxmw8oRbBB+SElLoOOORVpJdx5TIrXsuUnPRV9eeSdZknfzQB5AjQiwOmzhGuEZ5RZ5gKSWqXXGeAN3AetrK9BPKWRLNUp+e4r6h2yQ6Dj4whmrNh130uNn2ISZQaMCpk2gZCdQbDGNKVrNvVvEWF55pdCWWHXoS0DF1uFJmSAGFVfYOGvBRRx5N0px78wPUnsjssULHZVPtk5ZkruXkurmL+SMVLHpWtwW5s+YSauXAqU7geuBqTsCW8LRDreL5Xw2o5+WssWCrm9liqcZ/XnmoxJw3aszTl9CtRFsa5FsuUIxf1zYL4f49rchSeTZBQY9qA+j8NzgpmBFIhsvnxOBljqeI2uZg3LhtLhdyh9vg3r9NFvQD/b2ZQmzcBD+K5QxTdYiRnBMk7CbI7RWh5OPbbwH4TJHFjxXkCIAGRfy0R8VvEmi9LvPxRDax4klIw0pGg4t9DCnVjTqwDd6RomhztC7i7PePcRKvOZ5+xT2Z0Sgm27IqreXEIyZZWqXFX4+Aq8JakdWonb/UyWZQZUkHz1KRoYcYpOGKp0JK5Vv05VCE16h7la4zrl+9HVlqmdvCFsbM/Elg2cT3frAwAInK9QywK8e93GOyM+pIRiv/LMk476MZntzIJtc/uJfGFL/myENDP8Aa23wfKYMAAA=";
private static final Log log = LogFactory.getLog(ConfigCategoryUI.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List