Package ca.nengo.ui.configurable

Examples of ca.nengo.ui.configurable.PropertyInputPanel


     */
    private boolean processPropertiesInternal(boolean setPropertyFields, boolean showMessage) {
        Iterator<PropertyInputPanel> it = propertyInputPanels.iterator();

        while (it.hasNext()) {
            PropertyInputPanel inputPanel = it.next();
            Property property = inputPanel.getDescriptor();

            if (inputPanel.isValueSet()) {
                if (setPropertyFields) {

                    myConfigManager.setProperty(property.getName(), inputPanel.getValue());
                }
            } else {
                if (showMessage) {
                    UserMessages.showWarning(property.getName() + " is not set or is incomplete");
                }
View Full Code Here


        MutableAttributeSet properties = myConfigManager.getProperties();

        for (Property property : propDescriptors) {

            PropertyInputPanel inputPanel = property.getInputPanel();
            myPropertyPanel.add(inputPanel.getJPanel());

            /*
             * Try to get the configurer's current value and apply it to the
             * input panels
             */
            Object currentValue = properties.getAttribute(inputPanel.getName());
            if (currentValue != null) {
                inputPanel.setValue(currentValue);
            }

            propertyInputPanels.add(inputPanel);
        }

View Full Code Here

        try {
            if (templateList.getSelectedItem() != null) {
                getConfigurer().loadPropertiesFromFile((String) templateList.getSelectedItem());
                Iterator<PropertyInputPanel> it = propertyInputPanels.iterator();
                while (it.hasNext()) {
                    PropertyInputPanel panel = it.next();

                    Object currentValue = getConfigurer().getProperty(panel.getName());
                    if (currentValue != null && panel.isEnabled()) {
                        panel.setValue(currentValue);
                    }

                }
            }
        } catch (ClassCastException e) {
View Full Code Here

TOP

Related Classes of ca.nengo.ui.configurable.PropertyInputPanel

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.