Package org.jdesktop.beansbinding

Examples of org.jdesktop.beansbinding.BeanProperty


        painterDemos.setCellRenderer(new DefaultTreeRenderer(
                DisplayValues.DISPLAY_INFO_DESCRIPTION));
        Converter<?, ?> painterConverter = new DisplayInfoConverter<Painter>();
        BindingGroup group = new BindingGroup();
        for (int i = 0; i < components.length; i++) {
            BeanProperty p = BeanProperty.create(
                    i == 0 ? "backgroundPainter" : "painter");
            Binding b = Bindings.createAutoBinding(READ,
                    painterDemos, BeanProperty.create("selectedElement_UNWRAP_NODE"),
                    components[i], p);
            b.setConverter(painterConverter);
View Full Code Here


                initComponents();
                // create the binding from List to JTable
                JTableBinding tb;
                tb = SwingBindings.createJTableBinding(AutoBinding.UpdateStrategy.READ_WRITE, feuilleModel.getNoteEleves(), table);
                // define the properties to be used for the columns
                BeanProperty nome = BeanProperty.create("eleve.nom");
                BeanProperty prenome = BeanProperty.create("eleve.prenom");
                BeanProperty notee = BeanProperty.create("note");

                BeanProperty envoi = BeanProperty.create("envoie");

                // configure how the properties map to columns
                tb.addColumnBinding(nome).setColumnName("Nom").setEditable(false);
                tb.addColumnBinding(prenome).setColumnName("Prénom").setEditable(false);
                JTableBinding.ColumnBinding col_note = tb.addColumnBinding(notee);
View Full Code Here

        ComponentDecorators.decorateWithAutoSelect(textFieldAoiX);
        ComponentDecorators.decorateWithAutoSelect(textFieldAoiY);
        ComponentDecorators.decorateWithAutoSelect(textFieldAoiWidth);
        ComponentDecorators.decorateWithAutoSelect(textFieldAoiHeight);

        BeanProperty actuatorIdProperty = BeanProperty.create("actuatorId");
        Bindings.createAutoBinding(UpdateStrategy.READ, feeder,
                actuatorIdProperty, locationButtonsPanelFeedStart,
                actuatorIdProperty).bind();
        Bindings.createAutoBinding(UpdateStrategy.READ, feeder,
                actuatorIdProperty, locationButtonsPanelFeedEnd,
View Full Code Here

TOP

Related Classes of org.jdesktop.beansbinding.BeanProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.