All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jaxx.demo.JListDemo Maven / Gradle / Ivy

package jaxx.demo;

import jaxx.demo.*;
import java.awt.*;
import java.awt.event.*;
import java.beans.*;
import java.io.*;
import java.lang.*;
import java.util.*;
import javax.swing.*;
import javax.swing.border.*;
import javax.swing.event.*;
import jaxx.runtime.swing.JAXXButtonGroup;
import jaxx.runtime.swing.HBox;
import jaxx.runtime.swing.VBox;
import jaxx.runtime.swing.Table;
import static org.nuiton.i18n.I18n._;
import static jaxx.runtime.Util.createImageIcon;

public class JListDemo extends jaxx.demo.DemoPanel {
    private static java.lang.String $jaxxObjectDescriptor = "H4sIAAAAAAAAAI2VS2/TQBSFb0KTtkkr2lIe4iEVyNppbUOBIh5qVdEoBURZVGTDJB61rib2MDNpzQYhsUWoKxZsgD1L9gixZMWW/4AQ/4AZx7ET90qQhSOfuefO+STr3k+/oCQFXNwjUWSJXqD8LrUad7e3H7T3aEetUdkRPlehgP6vUIRiC6peqksFl1tNY68n9vpq2OVhQIMh90oTKlI9Z1TuUqoUnOw7OlLWt1J5JeI9MeiWhsG6ffjzu3jovfxYBIi4TmVphIV/uTKCsSYUfU/BnL5pn9QZCXZ0DOEHOzrntNFWGZHyPunSZ/ACxptQ5kToZgou/T9q3CP2R1xBtbZGu+FDElC2qOBEHNbTitVo+lKZM87j6rKCSW9QquDMCJY80CGtx6TNaFY+UWs0SZuyJU1kwkdJWV81RVNp7XStsdURIWOmva3g9IghOxp1VWrmkzBBHQXnkESDY1M/l9rKtQ1Fu258yxGLOeK50ivm7WxevYqqy6h6DVWv59TxWF1axOUlXLZx2cFlF5fzhImcR0zkPGMi5yETGae0cUobp7RxShuntHFKG6e0cUobp7RxShundHBKB6d0cEoHp3RwSgendHBKB6d0cEoHp3RxShendHFKF6d0U0qRjCc9na1sOmfjs9CCkuhpWcFMKxvkj7TUH+GJGjeI1fev3u2//fzlxmBeF/Qd0yMlQ+tFz08uQk6F8s0Vx/tDuqd8Vt8kfKUFk5IyvZvi3TM/FGArkXUI3X/W2Cxjs+4RuautpfGfX7+devrjGBTXocJC4q0TU78Bk2pXaMqQeRG/fSdOMnUwoZ8zJpOCMUUjPfznbvoB8wO6QJTeFu2eorcijTs/hJtm+H74evP8mwvLw8izR8oy7NITKPe7x8sp2TvoMqpySXtemO0XbOMUzP8M5/wvg1OEquIHAAA=";
    private jaxx.demo.JListDemo $DemoPanel0 = this;
    private jaxx.runtime.swing.Item $Item10;
    private jaxx.runtime.swing.Item $Item11;
    private jaxx.runtime.swing.Item $Item12;
    private jaxx.runtime.swing.Item $Item13;
    private jaxx.runtime.swing.Item $Item14;
    private jaxx.runtime.swing.Item $Item15;
    private jaxx.runtime.swing.Item $Item16;
    private jaxx.runtime.swing.Item $Item17;
    private jaxx.runtime.swing.Item $Item18;
    private jaxx.runtime.swing.Item $Item19;
    private jaxx.runtime.swing.Item $Item20;
    private jaxx.runtime.swing.Item $Item21;
    private jaxx.runtime.swing.Item $Item22;
    private jaxx.runtime.swing.Item $Item23;
    private jaxx.runtime.swing.Item $Item24;
    private jaxx.runtime.swing.Item $Item25;
    private jaxx.runtime.swing.Item $Item26;
    private jaxx.runtime.swing.Item $Item27;
    private jaxx.runtime.swing.Item $Item28;
    private jaxx.runtime.swing.Item $Item29;
    private jaxx.runtime.swing.Item $Item30;
    private jaxx.runtime.swing.Item $Item31;
    private jaxx.runtime.swing.Item $Item32;
    private jaxx.runtime.swing.Item $Item33;
    private jaxx.runtime.swing.Item $Item34;
    private jaxx.runtime.swing.Item $Item35;
    private jaxx.runtime.swing.Item $Item36;
    private jaxx.runtime.swing.Item $Item37;
    private jaxx.runtime.swing.Item $Item38;
    private jaxx.runtime.swing.Item $Item39;
    private jaxx.runtime.swing.Item $Item4;
    private jaxx.runtime.swing.Item $Item40;
    private jaxx.runtime.swing.Item $Item41;
    private jaxx.runtime.swing.Item $Item42;
    private jaxx.runtime.swing.Item $Item43;
    private jaxx.runtime.swing.Item $Item44;
    private jaxx.runtime.swing.Item $Item5;
    private jaxx.runtime.swing.Item $Item6;
    private jaxx.runtime.swing.Item $Item7;
    private jaxx.runtime.swing.Item $Item8;
    private jaxx.runtime.swing.Item $Item9;
    private jaxx.runtime.swing.JAXXList $JAXXList3;
    private javax.swing.JLabel $JLabel1;
    private javax.swing.JScrollPane $JScrollPane2;
    private boolean allComponentsCreated;
    private boolean contextInitialized = true;
    java.util.Map $previousValues = new java.util.HashMap();

    /*---------------------------------------------------------------------------------*/
    /*-- Statics methods --------------------------------------------------------------*/
    /*---------------------------------------------------------------------------------*/

    public static jaxx.runtime.JAXXObjectDescriptor $getJAXXObjectDescriptor() {
        return jaxx.runtime.Util.decodeCompressedJAXXObjectDescriptor($jaxxObjectDescriptor);
    }

    /*---------------------------------------------------------------------------------*/
    /*-- Constructors -----------------------------------------------------------------*/
    /*---------------------------------------------------------------------------------*/

    public JListDemo() {
        super();
        $initialize();
    }

    public JListDemo(jaxx.runtime.JAXXContext parentContext) {
        super(parentContext);
        $initialize();
    }

    /*---------------------------------------------------------------------------------*/
    /*-- JAXXObject implementation ----------------------------------------------------*/
    /*---------------------------------------------------------------------------------*/

    public void applyDataBinding(String $binding) {
        super.applyDataBinding($binding);
        
        processDataBinding($binding);
    }

    public void processDataBinding(String $dest, boolean $force) {
        super.processDataBinding($dest, true);
    }

    public void removeDataBinding(String $binding) {
        super.removeDataBinding($binding);
    }

    /*---------------------------------------------------------------------------------*/
    /*-- protected acessors methods ---------------------------------------------------*/
    /*---------------------------------------------------------------------------------*/

    protected jaxx.demo.JListDemo get$DemoPanel0() {
        return $DemoPanel0;
    }

    protected jaxx.runtime.swing.Item get$Item10() {
        return $Item10;
    }

    protected jaxx.runtime.swing.Item get$Item11() {
        return $Item11;
    }

    protected jaxx.runtime.swing.Item get$Item12() {
        return $Item12;
    }

    protected jaxx.runtime.swing.Item get$Item13() {
        return $Item13;
    }

    protected jaxx.runtime.swing.Item get$Item14() {
        return $Item14;
    }

    protected jaxx.runtime.swing.Item get$Item15() {
        return $Item15;
    }

    protected jaxx.runtime.swing.Item get$Item16() {
        return $Item16;
    }

    protected jaxx.runtime.swing.Item get$Item17() {
        return $Item17;
    }

    protected jaxx.runtime.swing.Item get$Item18() {
        return $Item18;
    }

    protected jaxx.runtime.swing.Item get$Item19() {
        return $Item19;
    }

    protected jaxx.runtime.swing.Item get$Item20() {
        return $Item20;
    }

    protected jaxx.runtime.swing.Item get$Item21() {
        return $Item21;
    }

    protected jaxx.runtime.swing.Item get$Item22() {
        return $Item22;
    }

    protected jaxx.runtime.swing.Item get$Item23() {
        return $Item23;
    }

    protected jaxx.runtime.swing.Item get$Item24() {
        return $Item24;
    }

    protected jaxx.runtime.swing.Item get$Item25() {
        return $Item25;
    }

    protected jaxx.runtime.swing.Item get$Item26() {
        return $Item26;
    }

    protected jaxx.runtime.swing.Item get$Item27() {
        return $Item27;
    }

    protected jaxx.runtime.swing.Item get$Item28() {
        return $Item28;
    }

    protected jaxx.runtime.swing.Item get$Item29() {
        return $Item29;
    }

    protected jaxx.runtime.swing.Item get$Item30() {
        return $Item30;
    }

    protected jaxx.runtime.swing.Item get$Item31() {
        return $Item31;
    }

    protected jaxx.runtime.swing.Item get$Item32() {
        return $Item32;
    }

    protected jaxx.runtime.swing.Item get$Item33() {
        return $Item33;
    }

    protected jaxx.runtime.swing.Item get$Item34() {
        return $Item34;
    }

    protected jaxx.runtime.swing.Item get$Item35() {
        return $Item35;
    }

    protected jaxx.runtime.swing.Item get$Item36() {
        return $Item36;
    }

    protected jaxx.runtime.swing.Item get$Item37() {
        return $Item37;
    }

    protected jaxx.runtime.swing.Item get$Item38() {
        return $Item38;
    }

    protected jaxx.runtime.swing.Item get$Item39() {
        return $Item39;
    }

    protected jaxx.runtime.swing.Item get$Item4() {
        return $Item4;
    }

    protected jaxx.runtime.swing.Item get$Item40() {
        return $Item40;
    }

    protected jaxx.runtime.swing.Item get$Item41() {
        return $Item41;
    }

    protected jaxx.runtime.swing.Item get$Item42() {
        return $Item42;
    }

    protected jaxx.runtime.swing.Item get$Item43() {
        return $Item43;
    }

    protected jaxx.runtime.swing.Item get$Item44() {
        return $Item44;
    }

    protected jaxx.runtime.swing.Item get$Item5() {
        return $Item5;
    }

    protected jaxx.runtime.swing.Item get$Item6() {
        return $Item6;
    }

    protected jaxx.runtime.swing.Item get$Item7() {
        return $Item7;
    }

    protected jaxx.runtime.swing.Item get$Item8() {
        return $Item8;
    }

    protected jaxx.runtime.swing.Item get$Item9() {
        return $Item9;
    }

    protected jaxx.runtime.swing.JAXXList get$JAXXList3() {
        return $JAXXList3;
    }

    protected javax.swing.JLabel get$JLabel1() {
        return $JLabel1;
    }

    protected javax.swing.JScrollPane get$JScrollPane2() {
        return $JScrollPane2;
    }

    protected java.lang.String get$jaxxObjectDescriptor() {
        return $jaxxObjectDescriptor;
    }

    protected java.util.Map get$previousValues() {
        return $previousValues;
    }

    protected boolean getAllComponentsCreated() {
        return allComponentsCreated;
    }

    protected boolean getContextInitialized() {
        return contextInitialized;
    }

    /*---------------------------------------------------------------------------------*/
    /*-- ui creation methods ----------------------------------------------------------*/
    /*---------------------------------------------------------------------------------*/

    private void $completeSetup() {
        allComponentsCreated = true;
        
        addChildrenToDemoPanel();
        
        $JScrollPane2.getViewport().add($JAXXList3);
        
        java.util.List $JAXXList3$items = new java.util.ArrayList();
        $JAXXList3$items.add($Item4);
        $JAXXList3$items.add($Item5);
        $JAXXList3$items.add($Item6);
        $JAXXList3$items.add($Item7);
        $JAXXList3$items.add($Item8);
        $JAXXList3$items.add($Item9);
        $JAXXList3$items.add($Item10);
        $JAXXList3$items.add($Item11);
        $JAXXList3$items.add($Item12);
        $JAXXList3$items.add($Item13);
        $JAXXList3$items.add($Item14);
        $JAXXList3$items.add($Item15);
        $JAXXList3$items.add($Item16);
        $JAXXList3$items.add($Item17);
        $JAXXList3$items.add($Item18);
        $JAXXList3$items.add($Item19);
        $JAXXList3$items.add($Item20);
        $JAXXList3$items.add($Item21);
        $JAXXList3$items.add($Item22);
        $JAXXList3$items.add($Item23);
        $JAXXList3$items.add($Item24);
        $JAXXList3$items.add($Item25);
        $JAXXList3$items.add($Item26);
        $JAXXList3$items.add($Item27);
        $JAXXList3$items.add($Item28);
        $JAXXList3$items.add($Item29);
        $JAXXList3$items.add($Item30);
        $JAXXList3$items.add($Item31);
        $JAXXList3$items.add($Item32);
        $JAXXList3$items.add($Item33);
        $JAXXList3$items.add($Item34);
        $JAXXList3$items.add($Item35);
        $JAXXList3$items.add($Item36);
        $JAXXList3$items.add($Item37);
        $JAXXList3$items.add($Item38);
        $JAXXList3$items.add($Item39);
        $JAXXList3$items.add($Item40);
        $JAXXList3$items.add($Item41);
        $JAXXList3$items.add($Item42);
        $JAXXList3$items.add($Item43);
        $JAXXList3$items.add($Item44);
        $JAXXList3.setItems($JAXXList3$items);
    }

    private void $initialize() {
        if (allComponentsCreated || !contextInitialized) {
            return;
        }
        $objectMap.put("$DemoPanel0", this);
        $JLabel1 = new javax.swing.JLabel();
        $objectMap.put("$JLabel1", $JLabel1);
        $JLabel1.setName("$JLabel1");
        $JLabel1.setText(_("Supported Swing components:"));
        
        $JScrollPane2 = new javax.swing.JScrollPane();
        $objectMap.put("$JScrollPane2", $JScrollPane2);
        $JScrollPane2.setName("$JScrollPane2");
        
        $JAXXList3 = new jaxx.runtime.swing.JAXXList();
        $objectMap.put("$JAXXList3", $JAXXList3);
        $JAXXList3.setName("$JAXXList3");
        
        $Item4 =  new jaxx.runtime.swing.Item("$Item4", null, "JApplet", false);
        $objectMap.put("$Item4", $Item4);
        
        $Item5 =  new jaxx.runtime.swing.Item("$Item5", null, "JButton", false);
        $objectMap.put("$Item5", $Item5);
        
        $Item6 =  new jaxx.runtime.swing.Item("$Item6", null, "JCheckBox", false);
        $objectMap.put("$Item6", $Item6);
        
        $Item7 =  new jaxx.runtime.swing.Item("$Item7", null, "JCheckBoxMenuItem", false);
        $objectMap.put("$Item7", $Item7);
        
        $Item8 =  new jaxx.runtime.swing.Item("$Item8", null, "JColorChooser", false);
        $objectMap.put("$Item8", $Item8);
        
        $Item9 =  new jaxx.runtime.swing.Item("$Item9", null, "JComboBox", false);
        $objectMap.put("$Item9", $Item9);
        
        $Item10 =  new jaxx.runtime.swing.Item("$Item10", null, "JDesktopPane", false);
        $objectMap.put("$Item10", $Item10);
        
        $Item11 =  new jaxx.runtime.swing.Item("$Item11", null, "JDialog", false);
        $objectMap.put("$Item11", $Item11);
        
        $Item12 =  new jaxx.runtime.swing.Item("$Item12", null, "JEditorPane", false);
        $objectMap.put("$Item12", $Item12);
        
        $Item13 =  new jaxx.runtime.swing.Item("$Item13", null, "JFileChooser", false);
        $objectMap.put("$Item13", $Item13);
        
        $Item14 =  new jaxx.runtime.swing.Item("$Item14", null, "JFormattedTextField", false);
        $objectMap.put("$Item14", $Item14);
        
        $Item15 =  new jaxx.runtime.swing.Item("$Item15", null, "JFrame", false);
        $objectMap.put("$Item15", $Item15);
        
        $Item16 =  new jaxx.runtime.swing.Item("$Item16", null, "JInternalFrame", false);
        $objectMap.put("$Item16", $Item16);
        
        $Item17 =  new jaxx.runtime.swing.Item("$Item17", null, "JLabel", false);
        $objectMap.put("$Item17", $Item17);
        
        $Item18 =  new jaxx.runtime.swing.Item("$Item18", null, "JLayeredPane", false);
        $objectMap.put("$Item18", $Item18);
        
        $Item19 =  new jaxx.runtime.swing.Item("$Item19", null, "JList", false);
        $objectMap.put("$Item19", $Item19);
        
        $Item20 =  new jaxx.runtime.swing.Item("$Item20", null, "JMenu", false);
        $objectMap.put("$Item20", $Item20);
        
        $Item21 =  new jaxx.runtime.swing.Item("$Item21", null, "JMenuBar", false);
        $objectMap.put("$Item21", $Item21);
        
        $Item22 =  new jaxx.runtime.swing.Item("$Item22", null, "JMenuItem", false);
        $objectMap.put("$Item22", $Item22);
        
        $Item23 =  new jaxx.runtime.swing.Item("$Item23", null, "JOptionPane", false);
        $objectMap.put("$Item23", $Item23);
        
        $Item24 =  new jaxx.runtime.swing.Item("$Item24", null, "JPanel", false);
        $objectMap.put("$Item24", $Item24);
        
        $Item25 =  new jaxx.runtime.swing.Item("$Item25", null, "JPasswordField", false);
        $objectMap.put("$Item25", $Item25);
        
        $Item26 =  new jaxx.runtime.swing.Item("$Item26", null, "JPopupMenu", false);
        $objectMap.put("$Item26", $Item26);
        
        $Item27 =  new jaxx.runtime.swing.Item("$Item27", null, "JProgressBar", false);
        $objectMap.put("$Item27", $Item27);
        
        $Item28 =  new jaxx.runtime.swing.Item("$Item28", null, "JRadioButton", false);
        $objectMap.put("$Item28", $Item28);
        
        $Item29 =  new jaxx.runtime.swing.Item("$Item29", null, "JRadioButtonMenuItem", false);
        $objectMap.put("$Item29", $Item29);
        
        $Item30 =  new jaxx.runtime.swing.Item("$Item30", null, "JScrollBar", false);
        $objectMap.put("$Item30", $Item30);
        
        $Item31 =  new jaxx.runtime.swing.Item("$Item31", null, "JScrollPane", false);
        $objectMap.put("$Item31", $Item31);
        
        $Item32 =  new jaxx.runtime.swing.Item("$Item32", null, "JSeparator", false);
        $objectMap.put("$Item32", $Item32);
        
        $Item33 =  new jaxx.runtime.swing.Item("$Item33", null, "JSlider", false);
        $objectMap.put("$Item33", $Item33);
        
        $Item34 =  new jaxx.runtime.swing.Item("$Item34", null, "JSpinner", false);
        $objectMap.put("$Item34", $Item34);
        
        $Item35 =  new jaxx.runtime.swing.Item("$Item35", null, "JSplitPane", false);
        $objectMap.put("$Item35", $Item35);
        
        $Item36 =  new jaxx.runtime.swing.Item("$Item36", null, "JTabbedPane", false);
        $objectMap.put("$Item36", $Item36);
        
        $Item37 =  new jaxx.runtime.swing.Item("$Item37", null, "JTable", false);
        $objectMap.put("$Item37", $Item37);
        
        $Item38 =  new jaxx.runtime.swing.Item("$Item38", null, "JTextArea", false);
        $objectMap.put("$Item38", $Item38);
        
        $Item39 =  new jaxx.runtime.swing.Item("$Item39", null, "JTextField", false);
        $objectMap.put("$Item39", $Item39);
        
        $Item40 =  new jaxx.runtime.swing.Item("$Item40", null, "JTextPane", false);
        $objectMap.put("$Item40", $Item40);
        
        $Item41 =  new jaxx.runtime.swing.Item("$Item41", null, "JToggleButton", false);
        $objectMap.put("$Item41", $Item41);
        
        $Item42 =  new jaxx.runtime.swing.Item("$Item42", null, "JToolBar", false);
        $objectMap.put("$Item42", $Item42);
        
        $Item43 =  new jaxx.runtime.swing.Item("$Item43", null, "JTree", false);
        $objectMap.put("$Item43", $Item43);
        
        $Item44 =  new jaxx.runtime.swing.Item("$Item44", null, "JWindow", false);
        $objectMap.put("$Item44", $Item44);
        
        $DemoPanel0.removeDataBinding("top.name");
        
        $DemoPanel0.setName("$DemoPanel0");
        
        
        
        
        
        
        
        
        $completeSetup();
    }

    protected void addChildrenToDemoPanel() {
        if (!allComponentsCreated) {
            return;
        }
        demoPanel.add($JLabel1, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, 10, 0, new Insets(3, 3, 3, 3), 0, 0));
        demoPanel.add($JScrollPane2, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, 10, 0, new Insets(3, 3, 3, 3), 0, 0));
    }

    protected void createDemoPanel() {
        demoPanel = new jaxx.runtime.swing.Table();
        $objectMap.put("demoPanel", demoPanel);
        demoPanel.setName("demoPanel");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy