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.demo;
/*-
* #%L
* JAXX :: Demo
* %%
* Copyright (C) 2008 - 2020 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.Component;
import java.awt.Container;
import java.awt.LayoutManager;
import java.awt.RenderingHints;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import javax.swing.Box.Filler;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JToolBar;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea;
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.DefaultJAXXBinding;
import org.nuiton.jaxx.runtime.context.DefaultJAXXContext;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
import org.nuiton.jaxx.runtime.swing.help.JAXXHelpUI;
import org.nuiton.jaxx.widgets.font.FontSizor;
public class DemoSources extends JPanel implements JAXXHelpUI, JAXXObject {
/*-----------------------------------------------------------------------*/
/*---------------- Constants for all javaBean properties ----------------*/
/*-----------------------------------------------------------------------*/
public static final String PROPERTY_CURRENT_SOURCE = "currentSource";
public static final String PROPERTY_INCOMING_CLASS = "incomingClass";
public static final String PROPERTY_SOURCES = "sources";
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_EDITOR_FONT_SIZE = "editor.font-size";
public static final String BINDING_FONT_SIZOR_FONT_SIZE = "fontSizor.fontSize";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAKVWz28bRRR+NtiJnaZNKZRSOESJSyu1HYM4IJQKSBqsELm0qiNaEVXtrHeSTJjdmc7M4g2IHjhw6z/QQ69cUP+HihMSF675H5D6J/Bm1/Ha8a9tk8MoO/u9b7739n1v/Od/UDIarkm9S8KIWxmSfRrHREeh5QEjm6v379/29lnbrjPT1lxZqSH9KxShuA1zfm/fWCDbTWSqp0x1x1TvMtVvykDJkIV9RCtNqBp7IJjZY8xauDI2uG1MvdVDrsQq0t2zRqoeddY/v396WGDrz4oAsUL5c5j21dcgyLJ+uwlF7lt4p7lPf6J1QcNdFKd5uIsJzbu9m4Ia8x0N2GN4AjNNKCuqkczC9TcqT0KXUMXKwmxt8w4NmfjEwuJx/T4LJFnHpSUj3WZGqSSubKHsafkj0xaWx8ZsMKHWElQWNs/DtgwwtUSDhTMuPeJSJslOH7IdaZdkerKFhQyZFieDzphUnYXTCSiyXJAmNzaDLDAfFWqX6AajvhP+rsPGxHSQi2xuSSnWqHbwSi+qmhJvUQ+53xvAY309uSZjh7zQCzhVw61agwvBNNbzfH9I9mYwprIjMUv+s0RNHx8vZof7u8wa4jCkcQQcJKhmuVl4f0Blq62lEO7NYGLlNMSmHbvDdxiJONHmILQ0tiy22F+U3G0lz1v4vIrPLramsM2HVB61OdqKZLbKOrywDSUdCfeFlsc72pnyLqJSOy6Pt6M7JgH+9uKJ/qPz6vDIg+dQ3FAPH4/qGzdoCKWlwm7gTtuZ1ICufeq3qFrZhophAmdVMosuT1be6iJRPao4mzXiBjV7yFaaOXz51/lH/74FxQZUhaR+gzr8t1CxexorJoUfq6++TsSd6sziuuBkWig93EMnWfjwlyX8SAHlIek2PLHYtR7VS7/GWLHLkyvWE/ji9qu/nz+99PKoagXUW8sTmVWu9AOUeSh4yJLZ1R1LI2fVnDIs8mU2c0ZNIRjhUNV1bz1ZP5tUmQvDlRFof1cWF/t5kqT77wsYMPVrHHFx+IhU8OhDugbLcUBZ0AMZ4Sw/fcOnli56PPTRu18OsRbcWs3BOO9JjfW7g1otc/fKjfRTLVKLg9OLLBtD/kEO8soOtq6lnki+b+vNicpS0cfRSVlKgfSZcK9vjSb5KAfJbHcCswk8S1N53PaDCelMZ8D7A8dAp9Gn5gRcC20poiBMzfQ9Z50J2V3KwXeO4kRYFZwabM9vQtcC/gSJV3JQzqQSzQlpZp3ZprRkHp7kJr5uJjdCLkHObvc0VScUNIe/lHgQBVN6Mw/VfAflJHfzPZwOU3T9D6GlZxTGCwAA";
private static final Logger log = LogManager.getLogger(DemoSources.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*--------------------------- Internal states ---------------------------*/
/*-----------------------------------------------------------------------*/
protected List