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

jaxx.demo.component.swing.JListDemo Maven / Gradle / Ivy

There is a newer version: 3.0-alpha-6
Show newest version
package jaxx.demo.component.swing;

/*-
 * #%L
 * JAXX :: Demo
 * %%
 * Copyright (C) 2008 - 2018 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.GridBagConstraints;
import java.awt.Insets;
import java.awt.LayoutManager;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import jaxx.demo.DemoPanel;
import jaxx.runtime.JAXXContext;
import jaxx.runtime.JAXXObjectDescriptor;
import jaxx.runtime.JAXXUtil;
import jaxx.runtime.swing.Item;
import jaxx.runtime.swing.JAXXList;
import jaxx.runtime.swing.Table;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import static org.nuiton.i18n.I18n.t;

public class JListDemo extends DemoPanel {

    /*-----------------------------------------------------------------------*/
    /*------------------------- Other static fields -------------------------*/
    /*-----------------------------------------------------------------------*/

    private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAI2VPW8TQRCG1ya24zgRwREhQJACuD6Hu/AlIwhKFBHLfAhTRLhh7VvFF53vlt01ORrET+AnQE+DREeFKKgpaBB/ASEKWsTs3fkcbwaFFInyzrwz86zsmbc/SEEKcn6PRpElhoHyBsxq3t7Zud/dYz21yWRPeFyFgiQ/uTzJd0jFzXSpyMVOS9vrqb2+EQ54GLDggLvRIjNSPfeZ7DOmFDk36ehJWW9n4UbEh2JUNRsKq/r618/8K/flmzwhEYfpLEBZOco1JplqkbznKlKFTs9o3afBLowhvGAX5p3T2oZPpbxHB+wpeUFKLVLkVEAxRS78P3JcI/ZHXJFKbZMNwgc0YP4qPF08rAuK1RuVsOQ+TGA1W55UOpfz2F1UpFR7RLs+A9/SBGRiiGM6s5wZpmvNFu3GnaoaJ8pqa1UnzWa5c7VmuydC39ezgeHUhGEcmnTN1PSHRY8KlrPIVKOwzq9mtmJtW7FB0uWQRYe4kXpJ/3fGVG1UdVB1DVUvo+oVVL2KqtdQ9bqhlhKKVVw26VLZxEtlky+VTcBUNglT2URMZZMxlU3IVMYpbZzSxiltnNLGKW2c0sYpbZzSxiltnNLGKR2c0sEpHZzSwSkdnNLBKR2c0sEpHZzSwSnXMkphfL1hZ1vjnT1eqrkOKYghyLClOofX/EMIJQt+yVjwumAc/bO48PXD9/dbo62eg94n0dQDRwm2LRchZ0J5uvXxZKUPlefX71Le6JCyZD5ctPhiLSODtdMwDAf9Tmi7pe3WHSr7UKJQ+vbx0+KTL8dIfovM+CF1t6jO3yZl1RfwCqHvRvzWejzR7P40/J7XsykypVgEJ6N6wwt8L2ArVMGN6Q4VuxnBMywjz5DN0i1//r3Qfrd+8ClO/zN9/ByFx6SYdItPXHq90JNW4ZIN3XB8pbC7ldN/5znnfwHsFrsNMAgAAA==";
    private static final Log log = LogFactory.getLog(JListDemo.class);
    private static final long serialVersionUID = 1L;

    /*-----------------------------------------------------------------------*/
    /*--------------------------- Internal states ---------------------------*/
    /*-----------------------------------------------------------------------*/

    private boolean allComponentsCreated;

    /*-----------------------------------------------------------------------*/
    /*------------------------- Private components  -------------------------*/
    /*-----------------------------------------------------------------------*/

    private JListDemo $DemoPanel0 = this;
    private Item $Item0;
    private Item $Item1;
    private Item $Item10;
    private Item $Item11;
    private Item $Item12;
    private Item $Item13;
    private Item $Item14;
    private Item $Item15;
    private Item $Item16;
    private Item $Item17;
    private Item $Item18;
    private Item $Item19;
    private Item $Item2;
    private Item $Item20;
    private Item $Item21;
    private Item $Item22;
    private Item $Item23;
    private Item $Item24;
    private Item $Item25;
    private Item $Item26;
    private Item $Item27;
    private Item $Item28;
    private Item $Item29;
    private Item $Item3;
    private Item $Item30;
    private Item $Item31;
    private Item $Item32;
    private Item $Item33;
    private Item $Item34;
    private Item $Item35;
    private Item $Item36;
    private Item $Item37;
    private Item $Item38;
    private Item $Item39;
    private Item $Item4;
    private Item $Item40;
    private Item $Item5;
    private Item $Item6;
    private Item $Item7;
    private Item $Item8;
    private Item $Item9;
    private JAXXList $JAXXList0;
    private JLabel $JLabel0;
    private JScrollPane $JScrollPane0;
    private Table $Table0;

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

    public JListDemo(LayoutManager param0, boolean param1) {
        super(param0 ,param1);
        $initialize();
    }

    public JListDemo(JAXXContext param0, LayoutManager param1, boolean param2) {
        super(param0 ,param1 ,param2);
        $initialize();
    }

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

    public JListDemo(JAXXContext param0, LayoutManager param1) {
        super(param0 ,param1);
        $initialize();
    }

    public JListDemo() {
        $initialize();
    }

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

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

    public JListDemo(JAXXContext param0, boolean param1) {
        super(param0 ,param1);
        $initialize();
    }

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

    public static JAXXObjectDescriptor $getJAXXObjectDescriptor() {
        return JAXXUtil.decodeCompressedJAXXObjectDescriptor($jaxxObjectDescriptor);
    }

    /*-----------------------------------------------------------------------*/
    /*--------------------- Protected acessors methods  ---------------------*/
    /*-----------------------------------------------------------------------*/

    protected Item get$Item0() {
        return $Item0;
    }

    protected Item get$Item1() {
        return $Item1;
    }

    protected Item get$Item10() {
        return $Item10;
    }

    protected Item get$Item11() {
        return $Item11;
    }

    protected Item get$Item12() {
        return $Item12;
    }

    protected Item get$Item13() {
        return $Item13;
    }

    protected Item get$Item14() {
        return $Item14;
    }

    protected Item get$Item15() {
        return $Item15;
    }

    protected Item get$Item16() {
        return $Item16;
    }

    protected Item get$Item17() {
        return $Item17;
    }

    protected Item get$Item18() {
        return $Item18;
    }

    protected Item get$Item19() {
        return $Item19;
    }

    protected Item get$Item2() {
        return $Item2;
    }

    protected Item get$Item20() {
        return $Item20;
    }

    protected Item get$Item21() {
        return $Item21;
    }

    protected Item get$Item22() {
        return $Item22;
    }

    protected Item get$Item23() {
        return $Item23;
    }

    protected Item get$Item24() {
        return $Item24;
    }

    protected Item get$Item25() {
        return $Item25;
    }

    protected Item get$Item26() {
        return $Item26;
    }

    protected Item get$Item27() {
        return $Item27;
    }

    protected Item get$Item28() {
        return $Item28;
    }

    protected Item get$Item29() {
        return $Item29;
    }

    protected Item get$Item3() {
        return $Item3;
    }

    protected Item get$Item30() {
        return $Item30;
    }

    protected Item get$Item31() {
        return $Item31;
    }

    protected Item get$Item32() {
        return $Item32;
    }

    protected Item get$Item33() {
        return $Item33;
    }

    protected Item get$Item34() {
        return $Item34;
    }

    protected Item get$Item35() {
        return $Item35;
    }

    protected Item get$Item36() {
        return $Item36;
    }

    protected Item get$Item37() {
        return $Item37;
    }

    protected Item get$Item38() {
        return $Item38;
    }

    protected Item get$Item39() {
        return $Item39;
    }

    protected Item get$Item4() {
        return $Item4;
    }

    protected Item get$Item40() {
        return $Item40;
    }

    protected Item get$Item5() {
        return $Item5;
    }

    protected Item get$Item6() {
        return $Item6;
    }

    protected Item get$Item7() {
        return $Item7;
    }

    protected Item get$Item8() {
        return $Item8;
    }

    protected Item get$Item9() {
        return $Item9;
    }

    protected JAXXList get$JAXXList0() {
        return $JAXXList0;
    }

    protected JLabel get$JLabel0() {
        return $JLabel0;
    }

    protected JScrollPane get$JScrollPane0() {
        return $JScrollPane0;
    }

    protected Table get$Table0() {
        return $Table0;
    }

    /*-----------------------------------------------------------------------*/
    /*------------------------ Internal jaxx methods ------------------------*/
    /*-----------------------------------------------------------------------*/

    private void $completeSetup() {
        allComponentsCreated = true;
        if (log.isDebugEnabled()) {
            log.debug(this);
        }
        // inline complete setup of $DemoPanel0
        add($Table0);
        // inline complete setup of $Table0
        $Table0.add($JLabel0, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, 10, 0, new Insets(3, 3, 3, 3), 0, 0));
        $Table0.add($JScrollPane0, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, 10, 0, new Insets(3, 3, 3, 3), 0, 0));
        // inline complete setup of $JScrollPane0
        $JScrollPane0.getViewport().add($JAXXList0);
        // inline complete setup of $JAXXList0
        java.util.List $JAXXList0$items = new java.util.ArrayList();
        $JAXXList0$items.add($Item0);
        $JAXXList0$items.add($Item1);
        $JAXXList0$items.add($Item2);
        $JAXXList0$items.add($Item3);
        $JAXXList0$items.add($Item4);
        $JAXXList0$items.add($Item5);
        $JAXXList0$items.add($Item6);
        $JAXXList0$items.add($Item7);
        $JAXXList0$items.add($Item8);
        $JAXXList0$items.add($Item9);
        $JAXXList0$items.add($Item10);
        $JAXXList0$items.add($Item11);
        $JAXXList0$items.add($Item12);
        $JAXXList0$items.add($Item13);
        $JAXXList0$items.add($Item14);
        $JAXXList0$items.add($Item15);
        $JAXXList0$items.add($Item16);
        $JAXXList0$items.add($Item17);
        $JAXXList0$items.add($Item18);
        $JAXXList0$items.add($Item19);
        $JAXXList0$items.add($Item20);
        $JAXXList0$items.add($Item21);
        $JAXXList0$items.add($Item22);
        $JAXXList0$items.add($Item23);
        $JAXXList0$items.add($Item24);
        $JAXXList0$items.add($Item25);
        $JAXXList0$items.add($Item26);
        $JAXXList0$items.add($Item27);
        $JAXXList0$items.add($Item28);
        $JAXXList0$items.add($Item29);
        $JAXXList0$items.add($Item30);
        $JAXXList0$items.add($Item31);
        $JAXXList0$items.add($Item32);
        $JAXXList0$items.add($Item33);
        $JAXXList0$items.add($Item34);
        $JAXXList0$items.add($Item35);
        $JAXXList0$items.add($Item36);
        $JAXXList0$items.add($Item37);
        $JAXXList0$items.add($Item38);
        $JAXXList0$items.add($Item39);
        $JAXXList0$items.add($Item40);
        $JAXXList0.setItems($JAXXList0$items);
    }

    private void $initialize() {
        if (allComponentsCreated) {
            return;
        }
        if (log.isDebugEnabled()) {
            log.debug(this);
        }
        $objectMap.put("$DemoPanel0", $DemoPanel0);
        // inline creation of $Table0
        $objectMap.put("$Table0", $Table0 = new Table());
        
        $Table0.setName("$Table0");
        // inline creation of $JLabel0
        $objectMap.put("$JLabel0", $JLabel0 = new JLabel());
        
        $JLabel0.setName("$JLabel0");
        $JLabel0.setText(t("Supported Swing components:"));
        // inline creation of $JScrollPane0
        $objectMap.put("$JScrollPane0", $JScrollPane0 = new JScrollPane());
        
        $JScrollPane0.setName("$JScrollPane0");
        // inline creation of $JAXXList0
        $objectMap.put("$JAXXList0", $JAXXList0 = new JAXXList());
        
        $JAXXList0.setName("$JAXXList0");
        // inline creation of $Item0
        $objectMap.put("$Item0", $Item0 = new Item("$Item0", null, "JApplet", false));
        // inline creation of $Item1
        $objectMap.put("$Item1", $Item1 = new Item("$Item1", null, "JButton", false));
        // inline creation of $Item2
        $objectMap.put("$Item2", $Item2 = new Item("$Item2", null, "JCheckBox", false));
        // inline creation of $Item3
        $objectMap.put("$Item3", $Item3 = new Item("$Item3", null, "JCheckBoxMenuItem", false));
        // inline creation of $Item4
        $objectMap.put("$Item4", $Item4 = new Item("$Item4", null, "JColorChooser", false));
        // inline creation of $Item5
        $objectMap.put("$Item5", $Item5 = new Item("$Item5", null, "JComboBox", false));
        // inline creation of $Item6
        $objectMap.put("$Item6", $Item6 = new Item("$Item6", null, "JDesktopPane", false));
        // inline creation of $Item7
        $objectMap.put("$Item7", $Item7 = new Item("$Item7", null, "JDialog", false));
        // inline creation of $Item8
        $objectMap.put("$Item8", $Item8 = new Item("$Item8", null, "JEditorPane", false));
        // inline creation of $Item9
        $objectMap.put("$Item9", $Item9 = new Item("$Item9", null, "JFileChooser", false));
        // inline creation of $Item10
        $objectMap.put("$Item10", $Item10 = new Item("$Item10", null, "JFormattedTextField", false));
        // inline creation of $Item11
        $objectMap.put("$Item11", $Item11 = new Item("$Item11", null, "JFrame", false));
        // inline creation of $Item12
        $objectMap.put("$Item12", $Item12 = new Item("$Item12", null, "JInternalFrame", false));
        // inline creation of $Item13
        $objectMap.put("$Item13", $Item13 = new Item("$Item13", null, "JLabel", false));
        // inline creation of $Item14
        $objectMap.put("$Item14", $Item14 = new Item("$Item14", null, "JLayeredPane", false));
        // inline creation of $Item15
        $objectMap.put("$Item15", $Item15 = new Item("$Item15", null, "JList", false));
        // inline creation of $Item16
        $objectMap.put("$Item16", $Item16 = new Item("$Item16", null, "JMenu", false));
        // inline creation of $Item17
        $objectMap.put("$Item17", $Item17 = new Item("$Item17", null, "JMenuBar", false));
        // inline creation of $Item18
        $objectMap.put("$Item18", $Item18 = new Item("$Item18", null, "JMenuItem", false));
        // inline creation of $Item19
        $objectMap.put("$Item19", $Item19 = new Item("$Item19", null, "JOptionPane", false));
        // inline creation of $Item20
        $objectMap.put("$Item20", $Item20 = new Item("$Item20", null, "JPanel", false));
        // inline creation of $Item21
        $objectMap.put("$Item21", $Item21 = new Item("$Item21", null, "JPasswordField", false));
        // inline creation of $Item22
        $objectMap.put("$Item22", $Item22 = new Item("$Item22", null, "JPopupMenu", false));
        // inline creation of $Item23
        $objectMap.put("$Item23", $Item23 = new Item("$Item23", null, "JProgressBar", false));
        // inline creation of $Item24
        $objectMap.put("$Item24", $Item24 = new Item("$Item24", null, "JRadioButton", false));
        // inline creation of $Item25
        $objectMap.put("$Item25", $Item25 = new Item("$Item25", null, "JRadioButtonMenuItem", false));
        // inline creation of $Item26
        $objectMap.put("$Item26", $Item26 = new Item("$Item26", null, "JScrollBar", false));
        // inline creation of $Item27
        $objectMap.put("$Item27", $Item27 = new Item("$Item27", null, "JScrollPane", false));
        // inline creation of $Item28
        $objectMap.put("$Item28", $Item28 = new Item("$Item28", null, "JSeparator", false));
        // inline creation of $Item29
        $objectMap.put("$Item29", $Item29 = new Item("$Item29", null, "JSlider", false));
        // inline creation of $Item30
        $objectMap.put("$Item30", $Item30 = new Item("$Item30", null, "JSpinner", false));
        // inline creation of $Item31
        $objectMap.put("$Item31", $Item31 = new Item("$Item31", null, "JSplitPane", false));
        // inline creation of $Item32
        $objectMap.put("$Item32", $Item32 = new Item("$Item32", null, "JTabbedPane", false));
        // inline creation of $Item33
        $objectMap.put("$Item33", $Item33 = new Item("$Item33", null, "JTable", false));
        // inline creation of $Item34
        $objectMap.put("$Item34", $Item34 = new Item("$Item34", null, "JTextArea", false));
        // inline creation of $Item35
        $objectMap.put("$Item35", $Item35 = new Item("$Item35", null, "JTextField", false));
        // inline creation of $Item36
        $objectMap.put("$Item36", $Item36 = new Item("$Item36", null, "JTextPane", false));
        // inline creation of $Item37
        $objectMap.put("$Item37", $Item37 = new Item("$Item37", null, "JToggleButton", false));
        // inline creation of $Item38
        $objectMap.put("$Item38", $Item38 = new Item("$Item38", null, "JToolBar", false));
        // inline creation of $Item39
        $objectMap.put("$Item39", $Item39 = new Item("$Item39", null, "JTree", false));
        // inline creation of $Item40
        $objectMap.put("$Item40", $Item40 = new Item("$Item40", null, "JWindow", false));
        // inline creation of $DemoPanel0
        setName("$DemoPanel0");
        
        $completeSetup();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy