org.nuiton.jaxx.demo.fun.LabelStyleDemo Maven / Gradle / Ivy
package org.nuiton.jaxx.demo.fun;
/*-
* #%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.Color;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import java.awt.LayoutManager;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import javax.swing.BorderFactory;
import javax.swing.BoundedRangeModel;
import javax.swing.ButtonGroup;
import javax.swing.ButtonModel;
import javax.swing.JCheckBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JSlider;
import javax.swing.JTextField;
import javax.swing.border.Border;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.text.Document;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.nuiton.jaxx.demo.DemoPanel;
import org.nuiton.jaxx.runtime.JAXXContext;
import org.nuiton.jaxx.runtime.JAXXObjectDescriptor;
import org.nuiton.jaxx.runtime.JAXXUtil;
import org.nuiton.jaxx.runtime.binding.DefaultJAXXBinding;
import org.nuiton.jaxx.runtime.css.DataBinding;
import org.nuiton.jaxx.runtime.css.Pseudoclasses;
import org.nuiton.jaxx.runtime.swing.JAXXButtonGroup;
import org.nuiton.jaxx.runtime.swing.SwingUtil;
import org.nuiton.jaxx.runtime.swing.Table;
import org.nuiton.jaxx.runtime.swing.VBox;
import static io.ultreia.java4all.i18n.I18n.t;
public class LabelStyleDemo extends DemoPanel {
/*-----------------------------------------------------------------------*/
/*------------------ Constants for all public bindings ------------------*/
/*-----------------------------------------------------------------------*/
public static final String BINDING_BLUE_STYLE_BLUE_HAS_FOCUS_ADD = "blue.style.blue.hasFocus().add";
public static final String BINDING_BLUE_STYLE_BLUE_HAS_FOCUS_REMOVE = "blue.style.blue.hasFocus().remove";
public static final String BINDING_GREEN_STYLE_GREEN_HAS_FOCUS_ADD = "green.style.green.hasFocus().add";
public static final String BINDING_GREEN_STYLE_GREEN_HAS_FOCUS_REMOVE = "green.style.green.hasFocus().remove";
public static final String BINDING_RED_STYLE_RED_HAS_FOCUS_ADD = "red.style.red.hasFocus().add";
public static final String BINDING_RED_STYLE_RED_HAS_FOCUS_REMOVE = "red.style.red.hasFocus().remove";
/*-----------------------------------------------------------------------*/
/*--------------- Constants for all none public bindings ---------------*/
/*-----------------------------------------------------------------------*/
private static final String BINDING_$JLABEL5_FONT_SIZE = "$JLabel5.font-size";
private static final String BINDING_$JLABEL5_FOREGROUND = "$JLabel5.foreground";
private static final String BINDING_$JLABEL5_TEXT = "$JLabel5.text";
private static final String BINDING_$JRADIO_BUTTON0_ENABLED = "$JRadioButton0.enabled";
private static final String BINDING_$JRADIO_BUTTON1_ENABLED = "$JRadioButton1.enabled";
private static final String BINDING_$JRADIO_BUTTON2_ENABLED = "$JRadioButton2.enabled";
private static final String BINDING_$JRADIO_BUTTON3_ENABLED = "$JRadioButton3.enabled";
private static final String BINDING_$JRADIO_BUTTON4_ENABLED = "$JRadioButton4.enabled";
private static final String BINDING_$JRADIO_BUTTON5_ENABLED = "$JRadioButton5.enabled";
private static final String BINDING_$JRADIO_BUTTON6_ENABLED = "$JRadioButton6.enabled";
private static final String BINDING_$VBOX0_BACKGROUND = "$VBox0.background";
/*-----------------------------------------------------------------------*/
/*------------------------- Other static fields -------------------------*/
/*-----------------------------------------------------------------------*/
private static final String $jaxxObjectDescriptor = "H4sIAAAAAAAAAK2Xz28bRRTHx05sx0lI2kStqiKhQFyS0nTt/ESQqNSJG6AYguoICrkw9k7sTfYXs7PJplV74MCNf4ADcAEuqBcuvVY9IXHhmj+AG1L/BN7sbvwjWc9Os42ilT373ue975ud99Z//IcyDkVzFm0qpqsxy1T2sOcp1DWZZhDlbvn+/a36HmmwCnEaVLOZRVHwl0qj9A4aUdvrDkPKThVIxYBU5KRiSCpuWIZtmcTsAq1W0bDDjnTitAhhDM32dW44TrHWtlz1bJeGsSKzjor19/fzxylS+TGNkGdD+ldB9o2XAHRUD1ZRWlMZmqju4QNc1LHZhOSoZjZB0Gt8bUPHjvMZNsi36DHKVVHWxhRgDN08V3l8nI/ybIZGChViWJ9jk+glhmZOS1DhprLrmkoV14nuF43b27ZPyDKUV0/cGZruVwDnEOQo27iu+xrybe9cwV8s8a9j/DLavjVUuOvHhKwmeBW8kBKscqPxtu0gIx7U43KP3TasbWpEV3ttT7jz/Ptk770BSmAnJnswNV1TCfXtGMo0LB0ezVOohQhUpkkJMfmX14W+ixG+g3XdJfGuSxGuedU1jKOa9qDLv1v6yUb3ltRf7bXNFr5YtzywfEu8qdyKu9w4U+DldnrKKapf+lLvdk/UcWO/SS3XVDdapLFftzyGLvVk6a+H4RbbjmOFu/ewqlnrLoMUIeErPU5d90R+fkrviywWYi0WYy2WYi2WYy1WIizGu4rHnxRoDeJd4404wH0IXjYcZ4re7ucC7VLptMtO50rtoAx1YRlOfv9OzZvtPbAK2ux0/zbLw/iG3z15TH8/fHF80ltXIbmpOK+uMQKNzqaWTSjTeG7jQWN1maYXP8X26g7KO0SHGeTPmBlx5rXQErKHLC5yksJJykfYaQEtkzt+9vzyN/8MoPQmGtYtrG5ibv8xyrMWhYpZuurZH9z2kxs9HILrBZ4mgxyxZrJtrbHv8AZGXeJBfWbE9Wmn82TrxV8//XDt2UmNUpBdQcazU6fM1yirmbpmEn8ChcMlcuKM2A5xVaszOaJmCYJpkgvbZTgftvxrLUp+jpi880O7ffPh2aOvaE6QMFFnrz/yXI750pfJP33FQ412H4qYeAPQeeoWhcTgZDxc9z8F+3SkNCjBjNwxbHYU3Jidn5sK/68/YuiCgfcsyvepZuMGHB6G0sslvq6Zp9fnS5GptqvS08n7JZuOjJlaiQyZWjgbsXsKvMyWtEtUiixRFZ6UsEJ+k1HWq+WNT/wqCVXDp12r4Tp8ryXk86PReSDAefrOu+VKuRKlM5jXZwPFSj0VYX2Bx4iKEIzxVxGjXOFRomL44/5cIbI6PrLgAKCxNRUzPFXXTBUei1tnoqT4ddiOfwbCN6mJtaAzTGEGr6J1l5E+zIlYJl/+lV9+iyZcSky4IqErZ2BPM1xDgLkqgckc4PDV7NyQODVvSBH+FBCmpAhPExNEKqYTq7iWWIUcQaRiNrGKd6SeTc2MeTbjMXHFkEkkHAD8/i/RlDkZSotozRYT5BJP4cs/J8yjq/8KSEUJ0mTLotoDy2RYL+ta0zRgIgjkySCzBqZNzUxIuXjAX3Ibry6t/C6ovOmEPx/7lGxBpvi7FiWxxY8ntU9oIsK/AsKSzAl1gvctQXXjMXHNZkUikZF650ebAPWeBGrICV+wE3HiRMkRngr2R4qQmhbksJZYhRxBpEKKIFRxK7EKOYJIhRRBqOJ2YhVyBJEKKYJQxXpiFXIEkQopglBFJbEKOYJIhRRBqGIzsQo5gkgFJ/wPXWuoD/wYAAA=";
private static final Logger log = LogManager.getLogger(LabelStyleDemo.class);
private static final long serialVersionUID = 1L;
/*-----------------------------------------------------------------------*/
/*------------------------ Protected components ------------------------*/
/*-----------------------------------------------------------------------*/
protected JCheckBox backgroundCheckbox;
protected JAXXButtonGroup backgroundColor;
protected JSlider blue;
protected Table demoPanel;
protected JSlider dummySize;
protected JSlider green;
protected JSlider red;
protected JTextField text;
/*-----------------------------------------------------------------------*/
/*------------------------- Private components -------------------------*/
/*-----------------------------------------------------------------------*/
private LabelStyleDemo $DemoPanel0;
private JLabel $JLabel0;
private JLabel $JLabel1;
private JLabel $JLabel2;
private JLabel $JLabel3;
private JLabel $JLabel4;
private JLabel $JLabel5;
private JPanel $JPanel0;
private JRadioButton $JRadioButton0;
private JRadioButton $JRadioButton1;
private JRadioButton $JRadioButton2;
private JRadioButton $JRadioButton3;
private JRadioButton $JRadioButton4;
private JRadioButton $JRadioButton5;
private JRadioButton $JRadioButton6;
private Table $Table0;
private VBox $VBox0;
private VBox $VBox1;
/*-----------------------------------------------------------------------*/
/*---------------------------- Constructors ----------------------------*/
/*-----------------------------------------------------------------------*/
public LabelStyleDemo(LayoutManager param0, boolean param1) {
super(param0 ,param1);
}
public LabelStyleDemo(JAXXContext param0, LayoutManager param1, boolean param2) {
super(param0 ,param1 ,param2);
}
public LabelStyleDemo(LayoutManager param0) {
super(param0);
}
public LabelStyleDemo(JAXXContext param0, LayoutManager param1) {
super(param0 ,param1);
}
public LabelStyleDemo() {
}
public LabelStyleDemo(JAXXContext param0) {
super(param0);
}
public LabelStyleDemo(boolean param0) {
super(param0);
}
public LabelStyleDemo(JAXXContext param0, boolean param1) {
super(param0 ,param1);
}
/*-----------------------------------------------------------------------*/
/*--------------------------- Statics methods ---------------------------*/
/*-----------------------------------------------------------------------*/
public static JAXXObjectDescriptor $getJAXXObjectDescriptor() {
return JAXXUtil.decodeCompressedJAXXObjectDescriptor($jaxxObjectDescriptor);
}
/*-----------------------------------------------------------------------*/
/*----------------------- Public acessor methods -----------------------*/
/*-----------------------------------------------------------------------*/
public JCheckBox getBackgroundCheckbox() {
return backgroundCheckbox;
}
public JAXXButtonGroup getBackgroundColor() {
return backgroundColor;
}
public JSlider getBlue() {
return blue;
}
public Table getDemoPanel() {
return demoPanel;
}
public JSlider getDummySize() {
return dummySize;
}
public JSlider getGreen() {
return green;
}
public JSlider getRed() {
return red;
}
public JTextField getText() {
return text;
}
/*-----------------------------------------------------------------------*/
/*--------------------- Protected acessors methods ---------------------*/
/*-----------------------------------------------------------------------*/
protected JLabel get$JLabel0() {
return $JLabel0;
}
protected JLabel get$JLabel1() {
return $JLabel1;
}
protected JLabel get$JLabel2() {
return $JLabel2;
}
protected JLabel get$JLabel3() {
return $JLabel3;
}
protected JLabel get$JLabel4() {
return $JLabel4;
}
protected JLabel get$JLabel5() {
return $JLabel5;
}
protected JPanel get$JPanel0() {
return $JPanel0;
}
protected JRadioButton get$JRadioButton0() {
return $JRadioButton0;
}
protected JRadioButton get$JRadioButton1() {
return $JRadioButton1;
}
protected JRadioButton get$JRadioButton2() {
return $JRadioButton2;
}
protected JRadioButton get$JRadioButton3() {
return $JRadioButton3;
}
protected JRadioButton get$JRadioButton4() {
return $JRadioButton4;
}
protected JRadioButton get$JRadioButton5() {
return $JRadioButton5;
}
protected JRadioButton get$JRadioButton6() {
return $JRadioButton6;
}
protected Table get$Table0() {
return $Table0;
}
protected VBox get$VBox0() {
return $VBox0;
}
protected VBox get$VBox1() {
return $VBox1;
}
/*-----------------------------------------------------------------------*/
/*--------------------- Components creation methods ---------------------*/
/*-----------------------------------------------------------------------*/
protected void addChildrenToDemoPanel() {
demoPanel.add($Table0, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, 11, 1, new Insets(6, 3, 0, 0), 0, 0));
demoPanel.add($VBox1, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0, 11, 1, new Insets(3, 3, 3, 3), 0, 0));
}
protected void createBackgroundCheckbox() {
$objectMap.put("backgroundCheckbox", backgroundCheckbox = new JCheckBox());
backgroundCheckbox.setName("backgroundCheckbox");
backgroundCheckbox.setText(t("Show Background"));
}
protected void createBackgroundColor() {
$objectMap.put("backgroundColor", backgroundColor = new JAXXButtonGroup());
}
protected void createBlue() {
$objectMap.put("blue", blue = new JSlider());
blue.setName("blue");
blue.setValue(0);
blue.setMaximum(255);
blue.setValue(255);
blue.setPaintTicks(true);
blue.setMajorTickSpacing(50);
blue.setMinorTickSpacing(10);
}
protected void createDemoPanel() {
$objectMap.put("demoPanel", demoPanel = new Table());
demoPanel.setName("demoPanel");
}
protected void createDummySize() {
$objectMap.put("dummySize", dummySize = new JSlider());
dummySize.setName("dummySize");
dummySize.setValue(0);
dummySize.setMaximum(60);
dummySize.setMinimum(6);
dummySize.setValue(36);
dummySize.setPaintTicks(true);
dummySize.setMajorTickSpacing(6);
dummySize.setMinorTickSpacing(2);
}
protected void createGreen() {
$objectMap.put("green", green = new JSlider());
green.setName("green");
green.setValue(0);
green.setMaximum(255);
green.setValue(0);
green.setPaintTicks(true);
green.setMajorTickSpacing(50);
green.setMinorTickSpacing(10);
}
protected void createRed() {
$objectMap.put("red", red = new JSlider());
red.setName("red");
red.setValue(0);
red.setMaximum(255);
red.setValue(128);
red.setPaintTicks(true);
red.setMajorTickSpacing(50);
red.setMinorTickSpacing(10);
}
protected void createText() {
$objectMap.put("text", text = new JTextField());
text.setName("text");
text.setColumns(15);
text.setText(t("Data Binding"));
}
/*-----------------------------------------------------------------------*/
/*------------------------ Internal jaxx methods ------------------------*/
/*-----------------------------------------------------------------------*/
@Override
protected void $initialize() {
if (log.isDebugEnabled()) {
log.debug(this);
}
$DemoPanel0 = this;
super.$initialize();
}
@Override
protected void $initialize_01_createComponents() {
if (log.isDebugEnabled()) {
log.debug(this);
}
super.$initialize_01_createComponents();
$objectMap.put("$DemoPanel0", $DemoPanel0);
createDemoPanel();
// 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("Text:"));
createText();
// inline creation of $JLabel1
$objectMap.put("$JLabel1", $JLabel1 = new JLabel());
$JLabel1.setName("$JLabel1");
$JLabel1.setText(t("Red:"));
createRed();
// inline creation of $JLabel2
$objectMap.put("$JLabel2", $JLabel2 = new JLabel());
$JLabel2.setName("$JLabel2");
$JLabel2.setText(t("Green:"));
createGreen();
// inline creation of $JLabel3
$objectMap.put("$JLabel3", $JLabel3 = new JLabel());
$JLabel3.setName("$JLabel3");
$JLabel3.setText(t("Blue:"));
createBlue();
// inline creation of $JLabel4
$objectMap.put("$JLabel4", $JLabel4 = new JLabel());
$JLabel4.setName("$JLabel4");
$JLabel4.setText(t("Size:"));
createDummySize();
// inline creation of $JPanel0
$objectMap.put("$JPanel0", $JPanel0 = new JPanel());
$JPanel0.setName("$JPanel0");
SwingUtil.setComponentHeight($JPanel0,90);
$JPanel0.setLayout(new BorderLayout());
// inline creation of $VBox0
$objectMap.put("$VBox0", $VBox0 = new VBox());
$VBox0.setName("$VBox0");
$VBox0.setHorizontalAlignment(0);
$VBox0.setMargin(new Insets(0, 0, 0, 0));
$VBox0.setVerticalAlignment(0);
// inline creation of $JLabel5
$objectMap.put("$JLabel5", $JLabel5 = new JLabel());
$JLabel5.setName("$JLabel5");
// inline creation of $VBox1
$objectMap.put("$VBox1", $VBox1 = new VBox());
$VBox1.setName("$VBox1");
$VBox1.setSpacing(0);
createBackgroundCheckbox();
// inline creation of $JRadioButton0
$objectMap.put("$JRadioButton0", $JRadioButton0 = new JRadioButton());
$JRadioButton0.setName("$JRadioButton0");
$JRadioButton0.setSelected(true);
$JRadioButton0.setText(t("Red"));
// inline creation of $JRadioButton1
$objectMap.put("$JRadioButton1", $JRadioButton1 = new JRadioButton());
$JRadioButton1.setName("$JRadioButton1");
$JRadioButton1.setText(t("Orange"));
// inline creation of $JRadioButton2
$objectMap.put("$JRadioButton2", $JRadioButton2 = new JRadioButton());
$JRadioButton2.setName("$JRadioButton2");
$JRadioButton2.setText(t("Yellow"));
// inline creation of $JRadioButton3
$objectMap.put("$JRadioButton3", $JRadioButton3 = new JRadioButton());
$JRadioButton3.setName("$JRadioButton3");
$JRadioButton3.setText(t("Green"));
// inline creation of $JRadioButton4
$objectMap.put("$JRadioButton4", $JRadioButton4 = new JRadioButton());
$JRadioButton4.setName("$JRadioButton4");
$JRadioButton4.setText(t("Cyan"));
// inline creation of $JRadioButton5
$objectMap.put("$JRadioButton5", $JRadioButton5 = new JRadioButton());
$JRadioButton5.setName("$JRadioButton5");
$JRadioButton5.setText(t("Blue"));
// inline creation of $JRadioButton6
$objectMap.put("$JRadioButton6", $JRadioButton6 = new JRadioButton());
$JRadioButton6.setName("$JRadioButton6");
$JRadioButton6.setText(t("Purple"));
createBackgroundColor();
// inline creation of $DemoPanel0
setName("$DemoPanel0");
setLayout(new BorderLayout());
}
@Override
protected void $initialize_02_registerDataBindings() {
if (log.isDebugEnabled()) {
log.debug(this);
}
super.$initialize_02_registerDataBindings();
// register 17 data bindings
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$VBOX0_BACKGROUND, true, true) {
@Override
public void applyDataBinding() {
if (backgroundCheckbox != null) {
$bindingSources.put("backgroundCheckbox.getModel()", backgroundCheckbox.getModel());
backgroundCheckbox.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u0"));
backgroundCheckbox.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$VBOX0_BACKGROUND));
}
if (backgroundColor != null) {
backgroundColor.addPropertyChangeListener("selectedValue", this);
}
}
@Override
public void processDataBinding() {
if (backgroundCheckbox != null && backgroundColor != null) {
$VBox0.setBackground((Color)( backgroundCheckbox.isSelected() ? backgroundColor.getSelectedValue() : null));
}
}
@Override
public void removeDataBinding() {
if (backgroundCheckbox != null) {
ButtonModel $target = (ButtonModel) $bindingSources.remove("backgroundCheckbox.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u0"));
}
backgroundCheckbox.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$VBOX0_BACKGROUND));
}
if (backgroundColor != null) {
backgroundColor.removePropertyChangeListener("selectedValue", this);
}
}
public void $pr$u0(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JLABEL5_FONT_SIZE, true) {
@Override
public void applyDataBinding() {
if (dummySize != null) {
$bindingSources.put("dummySize.getModel()", dummySize.getModel());
dummySize.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u1"));
dummySize.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_FONT_SIZE));
}
}
@Override
public void processDataBinding() {
if (dummySize != null) {
if ($JLabel5.getFont() != null) {
$JLabel5.setFont($JLabel5.getFont().deriveFont((float) dummySize.getValue()));
}
}
}
@Override
public void removeDataBinding() {
if (dummySize != null) {
BoundedRangeModel $target = (BoundedRangeModel) $bindingSources.remove("dummySize.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u1"));
}
dummySize.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_FONT_SIZE));
}
}
public void $pr$u1(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JLABEL5_FOREGROUND, true, true) {
@Override
public void applyDataBinding() {
if (red != null) {
$bindingSources.put("red.getModel()", red.getModel());
red.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u2"));
red.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_FOREGROUND));
}
if (green != null) {
$bindingSources.put("green.getModel()", green.getModel());
green.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u2"));
green.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_FOREGROUND));
}
if (blue != null) {
$bindingSources.put("blue.getModel()", blue.getModel());
blue.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u2"));
blue.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_FOREGROUND));
}
}
@Override
public void processDataBinding() {
if (red != null && blue != null && green != null) {
$JLabel5.setForeground(new Color(red.getValue(), green.getValue(), blue.getValue()));
}
}
@Override
public void removeDataBinding() {
if (red != null) {
BoundedRangeModel $target = (BoundedRangeModel) $bindingSources.remove("red.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u2"));
}
red.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_FOREGROUND));
}
if (green != null) {
BoundedRangeModel $target = (BoundedRangeModel) $bindingSources.remove("green.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u2"));
}
green.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_FOREGROUND));
}
if (blue != null) {
BoundedRangeModel $target = (BoundedRangeModel) $bindingSources.remove("blue.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u2"));
}
blue.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_FOREGROUND));
}
}
public void $pr$u2(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JLABEL5_TEXT, true) {
@Override
public void applyDataBinding() {
if (text != null) {
$bindingSources.put("text.getDocument()", text.getDocument());
text.getDocument().addDocumentListener( JAXXUtil.getEventListener(DocumentListener.class, this, "$pr$u3"));
text.addPropertyChangeListener("document", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_TEXT));
}
}
@Override
public void processDataBinding() {
if (text != null) {
$JLabel5.setText(text.getText());
}
}
@Override
public void removeDataBinding() {
if (text != null) {
Document $target = (Document) $bindingSources.remove("text.getDocument()");
if ($target != null) {
$target.removeDocumentListener( JAXXUtil.getEventListener(DocumentListener.class, this, "$pr$u3"));
}
text.removePropertyChangeListener("document", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JLABEL5_TEXT));
}
}
public void $pr$u3(DocumentEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_RED_STYLE_RED_HAS_FOCUS_ADD, true) {
@Override
public void applyDataBinding() {
if (red != null) {
$bindingSources.put("red", red);
red.addFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u4"));
}
}
@Override
public void processDataBinding() {
if (red.hasFocus()) {
Object value = Pseudoclasses.applyProperty(LabelStyleDemo.this, red, "border", new DataBinding("red.border.0"), Pseudoclasses.wrap(red.getBorder()), 0);
if (!(value instanceof DataBinding)) {
red.setBorder((Border) value);
}
value = Pseudoclasses.applyProperty(LabelStyleDemo.this, red, "background", new Color(231, 173, 173), Pseudoclasses.wrap(red.getBackground()), 0);
if (!(value instanceof DataBinding)) {
red.setBackground((Color) value);
}
}
}
@Override
public void removeDataBinding() {
if (red != null) {
JSlider $target = (JSlider) $bindingSources.remove("red");
if ($target != null) {
$target.removeFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u4"));
}
}
}
public void $pr$u4(FocusEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_RED_STYLE_RED_HAS_FOCUS_REMOVE, true) {
@Override
public void applyDataBinding() {
if (red != null) {
$bindingSources.put("red", red);
red.addFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u5"));
}
}
@Override
public void processDataBinding() {
if (!(red.hasFocus())) {
Object value = Pseudoclasses.removeProperty(LabelStyleDemo.this, red, "border", new DataBinding("red.border.0"), Pseudoclasses.wrap(red.getBorder()), 0);
if (!(value instanceof DataBinding)) {
red.setBorder((Border) value);
}
value = Pseudoclasses.removeProperty(LabelStyleDemo.this, red, "background", new Color(231, 173, 173), Pseudoclasses.wrap(red.getBackground()), 0);
if (!(value instanceof DataBinding)) {
red.setBackground((Color) value);
}
}
}
@Override
public void removeDataBinding() {
if (red != null) {
JSlider $target = (JSlider) $bindingSources.remove("red");
if ($target != null) {
$target.removeFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u5"));
}
}
}
public void $pr$u5(FocusEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_GREEN_STYLE_GREEN_HAS_FOCUS_ADD, true) {
@Override
public void applyDataBinding() {
if (green != null) {
$bindingSources.put("green", green);
green.addFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u6"));
}
}
@Override
public void processDataBinding() {
if (green.hasFocus()) {
Object value = Pseudoclasses.applyProperty(LabelStyleDemo.this, green, "border", new DataBinding("green.border.0"), Pseudoclasses.wrap(green.getBorder()), 0);
if (!(value instanceof DataBinding)) {
green.setBorder((Border) value);
}
value = Pseudoclasses.applyProperty(LabelStyleDemo.this, green, "background", new Color(178, 231, 173), Pseudoclasses.wrap(green.getBackground()), 0);
if (!(value instanceof DataBinding)) {
green.setBackground((Color) value);
}
}
}
@Override
public void removeDataBinding() {
if (green != null) {
JSlider $target = (JSlider) $bindingSources.remove("green");
if ($target != null) {
$target.removeFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u6"));
}
}
}
public void $pr$u6(FocusEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_GREEN_STYLE_GREEN_HAS_FOCUS_REMOVE, true) {
@Override
public void applyDataBinding() {
if (green != null) {
$bindingSources.put("green", green);
green.addFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u7"));
}
}
@Override
public void processDataBinding() {
if (!(green.hasFocus())) {
Object value = Pseudoclasses.removeProperty(LabelStyleDemo.this, green, "border", new DataBinding("green.border.0"), Pseudoclasses.wrap(green.getBorder()), 0);
if (!(value instanceof DataBinding)) {
green.setBorder((Border) value);
}
value = Pseudoclasses.removeProperty(LabelStyleDemo.this, green, "background", new Color(178, 231, 173), Pseudoclasses.wrap(green.getBackground()), 0);
if (!(value instanceof DataBinding)) {
green.setBackground((Color) value);
}
}
}
@Override
public void removeDataBinding() {
if (green != null) {
JSlider $target = (JSlider) $bindingSources.remove("green");
if ($target != null) {
$target.removeFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u7"));
}
}
}
public void $pr$u7(FocusEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_BLUE_STYLE_BLUE_HAS_FOCUS_ADD, true) {
@Override
public void applyDataBinding() {
if (blue != null) {
$bindingSources.put("blue", blue);
blue.addFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u8"));
}
}
@Override
public void processDataBinding() {
if (blue.hasFocus()) {
Object value = Pseudoclasses.applyProperty(LabelStyleDemo.this, blue, "border", new DataBinding("blue.border.0"), Pseudoclasses.wrap(blue.getBorder()), 0);
if (!(value instanceof DataBinding)) {
blue.setBorder((Border) value);
}
value = Pseudoclasses.applyProperty(LabelStyleDemo.this, blue, "background", new Color(173, 178, 231), Pseudoclasses.wrap(blue.getBackground()), 0);
if (!(value instanceof DataBinding)) {
blue.setBackground((Color) value);
}
}
}
@Override
public void removeDataBinding() {
if (blue != null) {
JSlider $target = (JSlider) $bindingSources.remove("blue");
if ($target != null) {
$target.removeFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u8"));
}
}
}
public void $pr$u8(FocusEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_BLUE_STYLE_BLUE_HAS_FOCUS_REMOVE, true) {
@Override
public void applyDataBinding() {
if (blue != null) {
$bindingSources.put("blue", blue);
blue.addFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u9"));
}
}
@Override
public void processDataBinding() {
if (!(blue.hasFocus())) {
Object value = Pseudoclasses.removeProperty(LabelStyleDemo.this, blue, "border", new DataBinding("blue.border.0"), Pseudoclasses.wrap(blue.getBorder()), 0);
if (!(value instanceof DataBinding)) {
blue.setBorder((Border) value);
}
value = Pseudoclasses.removeProperty(LabelStyleDemo.this, blue, "background", new Color(173, 178, 231), Pseudoclasses.wrap(blue.getBackground()), 0);
if (!(value instanceof DataBinding)) {
blue.setBackground((Color) value);
}
}
}
@Override
public void removeDataBinding() {
if (blue != null) {
JSlider $target = (JSlider) $bindingSources.remove("blue");
if ($target != null) {
$target.removeFocusListener( JAXXUtil.getEventListener(FocusListener.class, this, "$pr$u9"));
}
}
}
public void $pr$u9(FocusEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JRADIO_BUTTON0_ENABLED, true) {
@Override
public void applyDataBinding() {
if (backgroundCheckbox != null) {
$bindingSources.put("backgroundCheckbox.getModel()", backgroundCheckbox.getModel());
backgroundCheckbox.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u10"));
backgroundCheckbox.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON0_ENABLED));
}
}
@Override
public void processDataBinding() {
if (backgroundCheckbox != null) {
$JRadioButton0.setEnabled(backgroundCheckbox.isSelected());
}
}
@Override
public void removeDataBinding() {
if (backgroundCheckbox != null) {
ButtonModel $target = (ButtonModel) $bindingSources.remove("backgroundCheckbox.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u10"));
}
backgroundCheckbox.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON0_ENABLED));
}
}
public void $pr$u10(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JRADIO_BUTTON1_ENABLED, true) {
@Override
public void applyDataBinding() {
if (backgroundCheckbox != null) {
$bindingSources.put("backgroundCheckbox.getModel()", backgroundCheckbox.getModel());
backgroundCheckbox.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u11"));
backgroundCheckbox.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON1_ENABLED));
}
}
@Override
public void processDataBinding() {
if (backgroundCheckbox != null) {
$JRadioButton1.setEnabled(backgroundCheckbox.isSelected());
}
}
@Override
public void removeDataBinding() {
if (backgroundCheckbox != null) {
ButtonModel $target = (ButtonModel) $bindingSources.remove("backgroundCheckbox.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u11"));
}
backgroundCheckbox.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON1_ENABLED));
}
}
public void $pr$u11(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JRADIO_BUTTON2_ENABLED, true) {
@Override
public void applyDataBinding() {
if (backgroundCheckbox != null) {
$bindingSources.put("backgroundCheckbox.getModel()", backgroundCheckbox.getModel());
backgroundCheckbox.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u12"));
backgroundCheckbox.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON2_ENABLED));
}
}
@Override
public void processDataBinding() {
if (backgroundCheckbox != null) {
$JRadioButton2.setEnabled(backgroundCheckbox.isSelected());
}
}
@Override
public void removeDataBinding() {
if (backgroundCheckbox != null) {
ButtonModel $target = (ButtonModel) $bindingSources.remove("backgroundCheckbox.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u12"));
}
backgroundCheckbox.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON2_ENABLED));
}
}
public void $pr$u12(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JRADIO_BUTTON3_ENABLED, true) {
@Override
public void applyDataBinding() {
if (backgroundCheckbox != null) {
$bindingSources.put("backgroundCheckbox.getModel()", backgroundCheckbox.getModel());
backgroundCheckbox.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u13"));
backgroundCheckbox.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON3_ENABLED));
}
}
@Override
public void processDataBinding() {
if (backgroundCheckbox != null) {
$JRadioButton3.setEnabled(backgroundCheckbox.isSelected());
}
}
@Override
public void removeDataBinding() {
if (backgroundCheckbox != null) {
ButtonModel $target = (ButtonModel) $bindingSources.remove("backgroundCheckbox.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u13"));
}
backgroundCheckbox.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON3_ENABLED));
}
}
public void $pr$u13(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JRADIO_BUTTON4_ENABLED, true) {
@Override
public void applyDataBinding() {
if (backgroundCheckbox != null) {
$bindingSources.put("backgroundCheckbox.getModel()", backgroundCheckbox.getModel());
backgroundCheckbox.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u14"));
backgroundCheckbox.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON4_ENABLED));
}
}
@Override
public void processDataBinding() {
if (backgroundCheckbox != null) {
$JRadioButton4.setEnabled(backgroundCheckbox.isSelected());
}
}
@Override
public void removeDataBinding() {
if (backgroundCheckbox != null) {
ButtonModel $target = (ButtonModel) $bindingSources.remove("backgroundCheckbox.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u14"));
}
backgroundCheckbox.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON4_ENABLED));
}
}
public void $pr$u14(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JRADIO_BUTTON5_ENABLED, true) {
@Override
public void applyDataBinding() {
if (backgroundCheckbox != null) {
$bindingSources.put("backgroundCheckbox.getModel()", backgroundCheckbox.getModel());
backgroundCheckbox.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u15"));
backgroundCheckbox.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON5_ENABLED));
}
}
@Override
public void processDataBinding() {
if (backgroundCheckbox != null) {
$JRadioButton5.setEnabled(backgroundCheckbox.isSelected());
}
}
@Override
public void removeDataBinding() {
if (backgroundCheckbox != null) {
ButtonModel $target = (ButtonModel) $bindingSources.remove("backgroundCheckbox.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u15"));
}
backgroundCheckbox.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON5_ENABLED));
}
}
public void $pr$u15(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
registerDataBinding(new DefaultJAXXBinding(this, BINDING_$JRADIO_BUTTON6_ENABLED, true) {
@Override
public void applyDataBinding() {
if (backgroundCheckbox != null) {
$bindingSources.put("backgroundCheckbox.getModel()", backgroundCheckbox.getModel());
backgroundCheckbox.getModel().addChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u16"));
backgroundCheckbox.addPropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON6_ENABLED));
}
}
@Override
public void processDataBinding() {
if (backgroundCheckbox != null) {
$JRadioButton6.setEnabled(backgroundCheckbox.isSelected());
}
}
@Override
public void removeDataBinding() {
if (backgroundCheckbox != null) {
ButtonModel $target = (ButtonModel) $bindingSources.remove("backgroundCheckbox.getModel()");
if ($target != null) {
$target.removeChangeListener( JAXXUtil.getEventListener(ChangeListener.class, this, "$pr$u16"));
}
backgroundCheckbox.removePropertyChangeListener("model", JAXXUtil.getDataBindingUpdateListener(org.nuiton.jaxx.demo.fun.LabelStyleDemo.this, BINDING_$JRADIO_BUTTON6_ENABLED));
}
}
public void $pr$u16(ChangeEvent event) {
if (log.isDebugEnabled()) {
log.debug(event);
}
propertyChange(null);
}
});
}
@Override
protected void $initialize_03_finalizeCreateComponents() {
if (log.isDebugEnabled()) {
log.debug(this);
}
super.$initialize_03_finalizeCreateComponents();
// inline complete setup of $DemoPanel0
add(demoPanel);
addChildrenToDemoPanel();
// inline complete setup of $Table0
$Table0.add($JLabel0, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add(text, new GridBagConstraints(1, 0, 1, 1, 1.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add($JLabel1, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add(red, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add($JLabel2, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add(green, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add($JLabel3, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add(blue, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add($JLabel4, new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add(dummySize, new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
$Table0.add($JPanel0, new GridBagConstraints(0, 5, 2, 1, 0.0, 1.0, 17, 1, new Insets(3, 3, 3, 3), 0, 0));
// inline complete setup of $JPanel0
$JPanel0.add($VBox0);
// inline complete setup of $VBox0
$VBox0.add($JLabel5);
// inline complete setup of $VBox1
$VBox1.add(backgroundCheckbox);
$VBox1.add($JRadioButton0);
$VBox1.add($JRadioButton1);
$VBox1.add($JRadioButton2);
$VBox1.add($JRadioButton3);
$VBox1.add($JRadioButton4);
$VBox1.add($JRadioButton5);
$VBox1.add($JRadioButton6);
// inline complete setup of $JRadioButton0
{ ButtonGroup $buttonGroup = backgroundColor; $JRadioButton0.putClientProperty("$buttonGroup", $buttonGroup); $buttonGroup.add($JRadioButton0); }
// inline complete setup of $JRadioButton1
{ ButtonGroup $buttonGroup = backgroundColor; $JRadioButton1.putClientProperty("$buttonGroup", $buttonGroup); $buttonGroup.add($JRadioButton1); }
// inline complete setup of $JRadioButton2
{ ButtonGroup $buttonGroup = backgroundColor; $JRadioButton2.putClientProperty("$buttonGroup", $buttonGroup); $buttonGroup.add($JRadioButton2); }
// inline complete setup of $JRadioButton3
{ ButtonGroup $buttonGroup = backgroundColor; $JRadioButton3.putClientProperty("$buttonGroup", $buttonGroup); $buttonGroup.add($JRadioButton3); }
// inline complete setup of $JRadioButton4
{ ButtonGroup $buttonGroup = backgroundColor; $JRadioButton4.putClientProperty("$buttonGroup", $buttonGroup); $buttonGroup.add($JRadioButton4); }
// inline complete setup of $JRadioButton5
{ ButtonGroup $buttonGroup = backgroundColor; $JRadioButton5.putClientProperty("$buttonGroup", $buttonGroup); $buttonGroup.add($JRadioButton5); }
// inline complete setup of $JRadioButton6
{ ButtonGroup $buttonGroup = backgroundColor; $JRadioButton6.putClientProperty("$buttonGroup", $buttonGroup); $buttonGroup.add($JRadioButton6); }
}
@Override
protected void $initialize_04_applyDataBindings() {
if (log.isDebugEnabled()) {
log.debug(this);
}
super.$initialize_04_applyDataBindings();
}
@Override
protected void $initialize_05_setProperties() {
if (log.isDebugEnabled()) {
log.debug(this);
}
super.$initialize_05_setProperties();
// apply 20 property setters
$JPanel0.setBorder(BorderFactory.createTitledBorder("Preview"));
$VBox1.setBorder(BorderFactory.createTitledBorder("Background"));
{ $JRadioButton0.putClientProperty("$value", Color.RED); Object $buttonGroup = $JRadioButton0.getClientProperty("$buttonGroup"); if ($buttonGroup instanceof JAXXButtonGroup) { ((JAXXButtonGroup) $buttonGroup).updateSelectedValue(); } }
{ $JRadioButton1.putClientProperty("$value", Color.ORANGE); Object $buttonGroup = $JRadioButton1.getClientProperty("$buttonGroup"); if ($buttonGroup instanceof JAXXButtonGroup) { ((JAXXButtonGroup) $buttonGroup).updateSelectedValue(); } }
{ $JRadioButton2.putClientProperty("$value", Color.YELLOW); Object $buttonGroup = $JRadioButton2.getClientProperty("$buttonGroup"); if ($buttonGroup instanceof JAXXButtonGroup) { ((JAXXButtonGroup) $buttonGroup).updateSelectedValue(); } }
{ $JRadioButton3.putClientProperty("$value", Color.GREEN); Object $buttonGroup = $JRadioButton3.getClientProperty("$buttonGroup"); if ($buttonGroup instanceof JAXXButtonGroup) { ((JAXXButtonGroup) $buttonGroup).updateSelectedValue(); } }
{ $JRadioButton4.putClientProperty("$value", Color.CYAN); Object $buttonGroup = $JRadioButton4.getClientProperty("$buttonGroup"); if ($buttonGroup instanceof JAXXButtonGroup) { ((JAXXButtonGroup) $buttonGroup).updateSelectedValue(); } }
{ $JRadioButton5.putClientProperty("$value", Color.BLUE); Object $buttonGroup = $JRadioButton5.getClientProperty("$buttonGroup"); if ($buttonGroup instanceof JAXXButtonGroup) { ((JAXXButtonGroup) $buttonGroup).updateSelectedValue(); } }
{ $JRadioButton6.putClientProperty("$value", new Color(160, 30, 255)); Object $buttonGroup = $JRadioButton6.getClientProperty("$buttonGroup"); if ($buttonGroup instanceof JAXXButtonGroup) { ((JAXXButtonGroup) $buttonGroup).updateSelectedValue(); } }
red.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
green.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
blue.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
}
@Override
protected void $initialize_06_finalizeInitialize() {
if (log.isDebugEnabled()) {
log.debug(this);
}
super.$initialize_06_finalizeInitialize();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy